Mini Frontpage Pro Formatting/Link

1) How can I get the article title to link to the assigned link in the "Images and Links" settings of the Article instead of the article details?

2) Is it possible to show html (small image w/ link) in the Intro Text? - It shows in the details page but not the intro text (and it is within the intro chars limit)

Thanks.
11 responses Add Yours
       
  • Replied by admin on Thursday, November 25 2021, 12:15 AM · Hide· #1
    Hi, You can do that all by adding template override actually. Please follow this video if you don't know how to do that https://www.youtube.com/watch?v=tMB97xfYQfY

    and for your questions :
    1) How can I get the article title to link to the assigned link in the "Images and Links" settings of the Article instead of the article details?
    Did you mean you want to use Link A, Link B, Link C instead of single article link?
    https://www.dropbox.com/s%2Fl287gjxhtks2x2x%2Farticles%2520edit%2520-%2520j39%2520-%2520administration%25202021-11-25%252007-12-12.png?raw=1
    if so, you can add this code in your template override :
    <?php $articleLinks = json_decode($item->urls); echo "<a href="/.$articleLinks->urla.">Link A</a>"; ?>

    2) Is it possible to show html (small image w/ link) in the Intro Text? - It shows in the details page but not the intro text (and it is within the intro chars limit)
    after you have created template override, find this part :
    echo JHtmlString::truncate(strip_tags($item->introtext), $introtext_truncate); 


    change that to
    echo $item->introtext; 
    Please post rating at the Joomla! Extensions Directory - http://extensions.joomla.org/profile/profile/details/264
  •  
  • Replied by piranhapete9 on Thursday, November 25 2021, 02:49 AM · Hide· #2
    For #1 - can I add <?php $articleLinks = json_decode($item->urls); echo "<a href="/.$articleLinks->urla.">Link A</a>"; ?> anywhere in the override code?
  •  
  • Replied by admin on Thursday, November 25 2021, 02:51 AM · Hide· #3
    You can add that code anywhere inside the loop (foreach ($list as $item) : )
    Please post rating at the Joomla! Extensions Directory - http://extensions.joomla.org/profile/profile/details/264
  •  
  • Replied by piranhapete9 on Thursday, November 25 2021, 03:11 AM · Hide· #4
    anyway you can give me an approximate code line # so I'm in the right area?
  •  
  • Replied by admin on Thursday, November 25 2021, 03:14 AM · Hide· #5
    You can put it at lines 207
    https://www.dropbox.com/s%2Fni47q7hiimkd8xs%2Fdefault.php%25202021-11-25%252010-13-12.png?raw=1
    it will show the link after the introtext
    Please post rating at the Joomla! Extensions Directory - http://extensions.joomla.org/profile/profile/details/264
  •  
  • Replied by piranhapete9 on Thursday, November 25 2021, 03:28 AM · Hide· #6
    hmmmm...it throws an error when I put in that code so I'm obviously doing something wrong.
  •  
  • Replied by admin on Thursday, November 25 2021, 03:31 AM · Hide· #7
    Can you tell me what theme do you use?
    Please post rating at the Joomla! Extensions Directory - http://extensions.joomla.org/profile/profile/details/264
  •  
  • Replied by piranhapete9 on Thursday, November 25 2021, 03:35 AM · Hide· #8
    Default w/ card.min skin
  •  
  • Replied by admin on Thursday, November 25 2021, 03:38 AM · Hide· #9
    what error message did you get
    Please post rating at the Joomla! Extensions Directory - http://extensions.joomla.org/profile/profile/details/264
  •  
  • Replied by piranhapete9 on Thursday, November 25 2021, 03:42 AM · Hide· #10
    blank white screen w/ "error" in top left corner
  •  
  •  
    Replied by admin on Thursday, November 25 2021, 12:49 PM · Hide· #11
    Can you share temporary access to your website so I can have a look on it directly? If you can, you can share it in the Your Site Details tab below. Only you and support staffs who are able to see it.
    Please post rating at the Joomla! Extensions Directory - http://extensions.joomla.org/profile/profile/details/264
Your Response
Please login first in order for you to submit comments