Jump to content

custom read more link in joomla


mannyee

Recommended Posts

  • 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. 

Archived

This topic is now archived and is closed to further replies.

×
×
  • 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.