- Posts: 4
- Thank you received: 0
Changing search result display
- macio
- Topic Author
- Offline
- New Member
Less
More
12 years 6 months ago #706
by macio
Changing search result display was created by macio
Hi,
I was wondering if I can change the display of the search results not to show the article title or at least not to show it as a link ?
I've already changed that in the articles options but CP shows them in default.
Cheers
Maciek
I was wondering if I can change the display of the search results not to show the article title or at least not to show it as a link ?
I've already changed that in the articles options but CP shows them in default.
Cheers
Maciek
Please Log in or Create an account to join the conversation.
- andrea_4g
- Offline
- Administrator
Less
More
- Posts: 1122
- Thank you received: 163
12 years 6 months ago - 12 years 6 months ago #707
by andrea_4g
Replied by andrea_4g on topic Re: Changing search result display
There's no such parameter in CP config, nor the component honours main Joomla's setting. We are taking note for a future release.
If you need it quick, it's a very modification.
Edit file components/com_custom_properties/views/show/view.html.php
Change the following function
to
If you need it quick, it's a very modification.
Edit file components/com_custom_properties/views/show/view.html.php
Change the following function
Code:
function showTitle( $row, $params ){
$text = "";
$show_category = $params->get('show_category');
$text .= "<h2 class=\"cp_title\">\n";
$text .= "<a href=\"" . JRoute::_( $row->href) . "\">" . htmlspecialchars($row->title) . "</a>\n";
$text .= "</h2>\n";
if ($row->category && $show_category){
$text .= '(<span class="cp_category">' . htmlspecialchars($row->category) . '</span>)';
}
return $text;
}
Code:
function showTitle( $row, $params ){
$text = "";
$show_category = $params->get('show_category');
$text .= "<h2 class=\"cp_title\">\n";
$text .= htmlspecialchars($row->title) ;
$text .= "</h2>\n";
if ($row->category && $show_category){
$text .= '(<span class="cp_category">' . htmlspecialchars($row->category) . '</span>)';
}
return $text;
}
Last edit: 12 years 6 months ago by andrea_4g.
Please Log in or Create an account to join the conversation.
- macio
- Topic Author
- Offline
- New Member
Less
More
- Posts: 4
- Thank you received: 0
12 years 5 months ago #734
by macio
Replied by macio on topic Re: Changing search result display
Thank You,
It works for me !
It works for me !
Please Log in or Create an account to join the conversation.
Time to create page: 0.153 seconds