Keyword

Page title on search results page

  • Sebastian van Greunen
  • Sebastian van Greunen's Avatar Topic Author
  • Offline
  • Junior Member
More
13 years 5 months ago #96321 by Sebastian van Greunen
Page title on search results page was created by Sebastian van Greunen
Hi fans

 

can anyone please tell me how to show a page title above the item lists. I assume it is a conent or component heading but it does not show. I would like the title to say:

 

"search results for: (whatever the search keywords were)". Is this at all possible?

 

thanks
Attachments:

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

More
13 years 5 months ago #96322 by Simon Wells
Replied by Simon Wells on topic Page title on search results page
Hi,

 

You can add any specific code you like in to the generic.php file.

Try checking the com_search pages and borrow the relevant code and adapt it.

 

Feel free to come back and share your success.

Simon

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

  • Sebastian van Greunen
  • Sebastian van Greunen's Avatar Topic Author
  • Offline
  • Junior Member
More
13 years 5 months ago #96323 by Sebastian van Greunen
Replied by Sebastian van Greunen on topic Page title on search results page
Thanks Simon, I simply had to add ,1 after 'show page title' & adjust the css.

<?php if ( $this->params->get( 'show_page_title', 1 ) ) : ?>

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

More
11 years 10 months ago #96324 by Denise Montana
Replied by Denise Montana on topic Re: Page title on search results page
Joomla 2.5.8
K2 2.6.1

I'm trying to do the same thing -- add a heading to a page of search results. I made the adjustment to the generic.php file that is described here but it didn't do anything on the front end. Does anyone know of a solution for this in the newest versions of Joomla and K2?

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


Powered by Kunena Forum