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.
3 years 4 weeks ago #1 by Peter

Please Log in or Create an account to join the conversation.

  • Posted by TemplatePlazza (5261) Offline
Hi, You can do that all by adding template override actually. Please follow this video if you don't know how to do that


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;
3 years 4 weeks ago #2 by TemplatePlazza

Please Log in or Create an account to join the conversation.

For #1 - can I add <?php $articleLinks = json_decode($item->urls); echo "<a href="/.$articleLinks->urla.">Link A</a>"; ?> anywhere in the override code?
3 years 4 weeks ago #3 by Peter

Please Log in or Create an account to join the conversation.

  • Posted by TemplatePlazza (5261) Offline
You can add that code anywhere inside the loop (foreach ($list as $item) : )
3 years 4 weeks ago #4 by TemplatePlazza

Please Log in or Create an account to join the conversation.

anyway you can give me an approximate code line # so I'm in the right area?
3 years 4 weeks ago #5 by Peter

Please Log in or Create an account to join the conversation.

  • Posted by TemplatePlazza (5261) Offline
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
3 years 4 weeks ago #6 by TemplatePlazza

Please Log in or Create an account to join the conversation.

Powered by Kunena Forum