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? Quote Link to comment 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. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.