Message
  • EU e-Privacy Directive

    This website uses cookies to manage authentication, navigation, and other functions. By using our website, you agree that we can place these types of cookies on your device.

    View Privacy Policy

Welcome, Guest
Username: Password: Remember me
  • Page:
  • 1

TOPIC: disable title link and readmore button

disable title link and readmore button 6 years 4 months ago #1848

  • matador
  • matador's Avatar
  • OFFLINE
  • Fresh Boarder
  • Posts: 15
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: 6 years 4 months ago by matador.
The administrator has disabled public write access.

disable title link and readmore button 6 years 4 months ago #1849

  • andrea_4g
  • andrea_4g's Avatar
  • OFFLINE
  • Administrator
  • Posts: 1121
  • Thank you received: 163
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
	$text .=  "<div class=\"cp_title\">\n" .
        		"<a href=\"" . JRoute::_( $row->href) . "\">" . htmlspecialchars($row->title) . "</a>\n" .
      		"</div>\n";
to:
	$text .=  "<div class=\"cp_title\">\n".htmlspecialchars($row->title)."</div>\n";

== Notice ==
This modification will be overwritten if you update Custom Properties.
Last Edit: 6 years 4 months ago by andrea_4g. Reason: added line number
The administrator has disabled public write access.
The following user(s) said Thank You: matador
  • Page:
  • 1
Time to create page: 0.207 seconds