title of page

  • Posts: 135
  • Thank you received: 0
13 years 3 months ago #23102

hi

update my hikashop and i have configurate the title of page here



now the titles of page in menu category/listing is gone instead show the name of category.





another thing the link of activation of new user dont show the msg of success only the front page

Last edit: 13 years 3 months ago by chaka.

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

  • Posts: 82863
  • Thank you received: 13372
  • MODERATOR
13 years 3 months ago #23108

You should check the hikashop options of your menu (id 183), there is an option to select whether you want to display the category name or the menu title.

I don't know about the activation link. I just tried on our demo website which has the latest version and there is no such problem.

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

  • Posts: 135
  • Thank you received: 0
13 years 3 months ago #23112

ok nicolas but this option only show the name of menu

before update hikashop use it this title of page in the option menu joomla for title of page




in this option i have : " Cotizaloaqui.com : Zapatos y sandalias adomicilio en nicaragua" like title of page more Descriptive for user and search engine

i cant write a menu name too long .

I know nicolas that your team had you reasons for this but in term SEO i think is a disadvantage for page with title more Descriptive for user and search engine

:blush:

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

  • Posts: 82863
  • Thank you received: 13372
  • MODERATOR
13 years 3 months ago #23124

What I'm saying is that you can still have your title displayed, you just need to change an option...
You should check the hikashop options of your menu (id 183), there is an option to select whether you want to display the category name or the menu title.
What you're looking at on your screenshot is not the hikashop options of your menu but the joomla options screen.

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

  • Posts: 135
  • Thank you received: 0
13 years 3 months ago #23155

ok nicolas i am bad explain this sorry :blush: . step by step now

i update my hikashop 1.5.2. to 1.5.3 essential after my title of page show the name of category like this




this is the menu content option hikashop id 183 in this part i active "use the name of menu ......"



i check yes this option but now only show the same name of my left menu




dont show the title of page i setup in menu joomla this :




before update hikashop show it the title of page not the menu name ..



this option are of your talking about?

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

  • Posts: 82863
  • Thank you received: 13372
  • MODERATOR
13 years 3 months ago #23177

Yes, that's the option.
So now it's displaying the title of the menu. But what you would like is that it displays the title of the page, which is not the case anymore.

The modifications are not small to do that... You need to change the code

$title = $this->params->get('page_title');
			$document	=& JFactory::getDocument();
			if((empty($title) && !empty($element->category_name)) || !$this->params->get('use_module_name')){
				$this->params->set('page_title',strip_tags(@$element->category_name));
			}
			if(!empty($element->category_keywords)){
				$document->setMetadata('keywords', $element->category_keywords);
			}
			if(!empty($element->category_meta_description)){
				$document->setMetadata('description', $element->category_meta_description);
			}
			$use_module = $this->params->get('use_module_name');
			if(!empty($use_module)){
				$document->setTitle($this->params->get('title'));
			}else{
				$document->setTitle($this->params->get('page_title'));

to:
$use_module = $this->params->get('use_module_name');
			$title = $this->params->get('page_title');
			if(empty($title)){
				$title = $this->params->get('title');
			}
			if(empty($use_module) && !empty($element->category_name)){
				$title = $element->category_name;
			}
			$this->params->set('page_title',$title);
			$document	=& JFactory::getDocument();
			if(!empty($element->category_keywords)){
				$document->setMetadata('keywords', $element->category_keywords);
			}
			if(!empty($element->category_meta_description)){
				$document->setMetadata('description', $element->category_meta_description);
			}
			$document->setTitle(strip_tags($title));
in components/com_hikashop/views/category/view.html.php
and:
$use_module = $this->params->get('use_module_name');
		if(!$this->module && !empty($use_module)){
			$name = $this->params->get('title');
		}else{
			$name = $this->params->get('page_title');
		}
to:
$name = $this->params->get('page_title');
in the file components/com_hikashop/views/category/tmpl/listing.php

We'll include the modifications for next version.

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

  • Posts: 135
  • Thank you received: 0
13 years 3 months ago #23182

ok nicolas thanks. i wait it for the next version. i dont touch code :(

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

  • Posts: 135
  • Thank you received: 0
13 years 2 months ago #24277

hi nicolas

i try change the code but i cant do it . i dont know nothing about php :(

i search that pieces of code but i dont find them

please can you post the files to download ?? please :blush:

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

  • Posts: 82863
  • Thank you received: 13372
  • MODERATOR
13 years 2 months ago #24309

Here is a zip of the whole category view files.

File Attachment:

File Name: category.zip
File Size:56 KB

Attachments:

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

  • Posts: 135
  • Thank you received: 0
13 years 2 months ago #24315

thanks nicolas

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

Time to create page: 0.073 seconds
Powered by Kunena Forum