disable title link and readmore button

  • matador
  • Topic Author
  • Offline
  • New Member
  • New Member
More
8 years 5 months ago - 8 years 5 months ago #1848 by matador
Hi
how can i disble link title article in search resul and can change readmore text so
readmore: title article

sorry for my bad english
thanks


sorry for was for
CP 2.0 for J1.5 Priority Support

thanks
Last edit: 8 years 5 months ago by matador.

Please Log in or Create an account to join the conversation.

More
8 years 5 months ago - 8 years 5 months ago #1849 by andrea_4g
Replied by andrea_4g on topic disable title link and readmore button
The option to use the article title as read more is available in Custom Properties for Joomla 3.x. Previous version don't have such option.

To disable the link of the article title you need to make a modification to the code in file:
components/com_customproperties/views/show/view.html.php at line 175
from
Code:
$text .= "<div class=\"cp_title\">\n" . "<a href=\"" . JRoute::_( $row->href) . "\">" . htmlspecialchars($row->title) . "</a>\n" . "</div>\n";
to:
Code:
$text .= "<div class=\"cp_title\">\n".htmlspecialchars($row->title)."</div>\n";

== Notice ==
This modification will be overwritten if you update Custom Properties.
Last edit: 8 years 5 months ago by andrea_4g. Reason: added line number
The following user(s) said Thank You: matador

Please Log in or Create an account to join the conversation.

Time to create page: 0.173 seconds