Keyword

[SOLVED] Change Generic page title

  • Krikor Boghossian
  • Krikor Boghossian's Avatar Topic Author
  • Offline
  • Platinum Member
More
9 years 10 months ago #144775 by Krikor Boghossian
Change Generic page title was created by Krikor Boghossian
You can create a new empty K3 categories menu item.
Leave the category selection empty and this way all orphan tags, search and date listings will be rendered from that menu item.

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

  • Krikor Boghossian
  • Krikor Boghossian's Avatar Topic Author
  • Offline
  • Platinum Member
More
9 years 10 months ago #144806 by Krikor Boghossian
Replied by Krikor Boghossian on topic Change Generic page title
mydomain/search?searchword= means that the search/date results are being rendered through the home page. So you get back to initial issue.

However you can edit your template and hide all the module positions when the option is K2 ( JRequest::getCmd('option'); ) and the task is search ( JRequest::getCmd('task'); )

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

  • Krikor Boghossian
  • Krikor Boghossian's Avatar Topic Author
  • Offline
  • Platinum Member
More
9 years 10 months ago #144822 by Krikor Boghossian
Replied by Krikor Boghossian on topic Change Generic page title
You can override the generic.php file, more info here - getk2.org/documentation/tutorials/174-templating-with-k2-and-the-concepts-of-sub-templates

Use the same method as described in my previous post but omit the option.

Eg: Use
if  ( JRequest::getCmd('task') == 'search')
or date and then print the language string you want to display.

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

More
9 years 10 months ago #144877 by Lefteris
Replied by Lefteris on topic Change Generic page title
@jozsefke

You can try the following code:
<?php
$year =  JRequest::getInt('year');
$month = JRequest::getInt('month');
$month = str_pad($month, 2, "0", STR_PAD_LEFT);
$day = '01';
$date = $year.'-'.$month.'-'.$day;
echo date('Y F', strtotime($date));
?>

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

  • Krikor Boghossian
  • Krikor Boghossian's Avatar Topic Author
  • Offline
  • Platinum Member
More
9 years 10 months ago #144904 by Krikor Boghossian
Replied by Krikor Boghossian on topic Change Generic page title
We 're glad you sorted it out :)

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


Powered by Kunena Forum