mannyee Posted July 5, 2010 Share Posted July 5, 2010 hi guys!! i've built a news article carousel moduel in joomla (sth. like the default mod_newsflash). i want each articles to have a read more .....link like the default one in joomla. how do i create one so that i can use in the carousel? Link to comment https://forums.phpfreaks.com/topic/206787-custom-read-more-link-in-joomla/ Share on other sites More sharing options...
aschulz90 Posted July 22, 2010 Share Posted July 22, 2010 if you really built it custom than I'd say you'd need some kinda code like this (pretending $article is the object currently being edited) <?php $buttonStart = "<div class=\"readmore\"><a href=\"index.php?option=com_content&view=article&id=".$article->id."&catid=".$article->catid."\">"; $buttonText = "Read More"; $buttonEnd = "</a></div>: echo $buttonStart.$buttonText.$buttonEnd; ?> If your looking to get the itemId, which is important, your going to need much more customization. A link might be helpful, or share some of the relevant code. Link to comment https://forums.phpfreaks.com/topic/206787-custom-read-more-link-in-joomla/#findComment-1089757 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.