Mini Frontpage Pro Formatting/Link
- Posted by Peter (8) Offline
				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 11 months ago								#1
				by Peter
			
		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.
Please Log in or Create an account to join the conversation.
- Posted by TemplatePlazza (5366) 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 :
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 :
change that to			
						
								3 years 11 months ago								#2
				by TemplatePlazza
			
		and for your questions :
Did you mean you want to use Link A, Link B, Link C instead of single article 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?
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>"; ?>after you have created template override, find this part :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)
echo JHtmlString::truncate(strip_tags($item->introtext), $introtext_truncate);change that to
echo $item->introtext;Please Log in or Create an account to join the conversation.
- Posted by Peter (8) Offline
				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 11 months ago								#3
				by Peter
			
		Please Log in or Create an account to join the conversation.
- Posted by TemplatePlazza (5366) Offline
				You can add that code anywhere inside the loop (foreach ($list as $item) : )			
						
								3 years 11 months ago								#4
				by TemplatePlazza
			
		Please Log in or Create an account to join the conversation.
- Posted by Peter (8) Offline
				anyway you can give me an approximate code line # so I'm in the right area?			
						
								3 years 11 months ago								#5
				by Peter
			
		Please Log in or Create an account to join the conversation.
- Posted by TemplatePlazza (5366) 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 11 months ago								#6
				by TemplatePlazza
			
		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 Log in or Create an account to join the conversation.