- Posts: 135
- Thank you received: 0
title of page
15 years 1 month ago - 15 years 1 month ago #23102
by chaka
title of page was created by chaka
Last edit: 15 years 1 month ago by chaka.
Please Log in or Create an account to join the conversation.
15 years 1 month ago #23108
by nicolas
Replied by nicolas on topic Re: title of page
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.
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.
15 years 1 month ago #23112
by chaka
Replied by chaka on topic Re: title of page
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:
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.
15 years 1 month ago #23124
by nicolas
Replied by nicolas on topic Re: title of page
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.
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.
15 years 1 month ago #23155
by chaka
Replied by chaka on topic Re: title of page
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?
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.
15 years 1 month ago #23177
by nicolas
Replied by nicolas on topic Re: title of page
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
to:
in components/com_hikashop/views/category/view.html.php
and:
to:
in the file components/com_hikashop/views/category/tmpl/listing.php
We'll include the modifications for next version.
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
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:
Code:
$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));
and:
Code:
$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');
}
Code:
$name = $this->params->get('page_title');
We'll include the modifications for next version.
Please Log in or Create an account to join the conversation.
15 years 1 month ago #23182
by chaka
Replied by chaka on topic Re: title of page
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.
15 years 1 month ago #24277
by chaka
Replied by chaka on topic Re: title of page
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:
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.
15 years 1 month ago #24309
by nicolas
Replied by nicolas on topic Re: title of page
Here is a zip of the whole category view files.
This attachment is hidden for guests.
This attachment is hidden for guests.
Please log in or register to see it.
Please Log in or Create an account to join the conversation.
15 years 1 month ago #24315
by chaka
Replied by chaka on topic Re: title of page
thanks nicolas
Please Log in or Create an account to join the conversation.
Time to create page: 0.232 seconds