Jump to content

custom read more link in joomla


mannyee

Recommended Posts

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
Share on other sites

  • 3 weeks later...

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
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.