- Posts: 46
- Thank you received: 0
OS Property support center
SOLVED!!Categories urls with plg_sh404sef_osproper
- Benjamin
- Topic Author
- Offline
- Senior Member
-
Less
More
10 years 4 months ago - 10 years 3 months ago #56168
by Benjamin
SOLVED!!Categories urls with plg_sh404sef_osproper was created by Benjamin
Hello,
I have a problem of creation of URLs of the categories menus with the plg_sh404sef_osproperty.
I use componen sh404sef and joomla 3. When I do not use the plg_sh404sef_osproperty in component sh404sef then all is well.
The problem is this: the links show the ID of category instead of showing the titles category.
example: …./A-vendre.html? catIds [0] =1&catIds [1] =2
* Also these links are not visible in the instrument panel of the component sh404sef.
I have already to click several times on “Optimize SEF URLS”
I left an image to show you what I say.
Help it PLEASE is very important for me for me. Thank you
I have a problem of creation of URLs of the categories menus with the plg_sh404sef_osproperty.
I use componen sh404sef and joomla 3. When I do not use the plg_sh404sef_osproperty in component sh404sef then all is well.
The problem is this: the links show the ID of category instead of showing the titles category.
example: …./A-vendre.html? catIds [0] =1&catIds [1] =2
* Also these links are not visible in the instrument panel of the component sh404sef.
I have already to click several times on “Optimize SEF URLS”
I left an image to show you what I say.
Help it PLEASE is very important for me for me. Thank you
Attachments:
Last edit: 10 years 3 months ago by Benjamin.
Please Log in or Create an account to join the conversation.
- Mr. Dam
-
- Offline
- Administrator
-
Less
More
- Posts: 13056
- Thank you received: 1696
10 years 4 months ago #56206
by Mr. Dam
Replied by Mr. Dam on topic Categories urls with plg_sh404sef_osproperty
Hi,
First of all, you don't need to use Sh404sef with OS Property because OS Property supports Joomla Native Sef urls.
So please exclude OS Property out of Sh404sef and select option to use router file of OS Property. The issue will be solved.
Thanks
Dam
First of all, you don't need to use Sh404sef with OS Property because OS Property supports Joomla Native Sef urls.
So please exclude OS Property out of Sh404sef and select option to use router file of OS Property. The issue will be solved.
Thanks
Dam
Please Log in or Create an account to join the conversation.
- Benjamin
- Topic Author
- Offline
- Senior Member
-
Less
More
- Posts: 46
- Thank you received: 0
10 years 4 months ago #56218
by Benjamin
Replied by Benjamin on topic Categories urls with plg_sh404sef_osproperty
Thank you very much Prejudice for your prompt response.
My problem is that the reference number does not appear in the links if I use the router of joomla. Is there a solution so that the reference numbers appears in URLs SEF?
Thank you very much
My problem is that the reference number does not appear in the links if I use the router of joomla. Is there a solution so that the reference numbers appears in URLs SEF?
Thank you very much
Please Log in or Create an account to join the conversation.
- Mr. Dam
-
- Offline
- Administrator
-
Less
More
- Posts: 13056
- Thank you received: 1696
10 years 4 months ago #56254
by Mr. Dam
Replied by Mr. Dam on topic Categories urls with plg_sh404sef_osproperty
Hi,
You mean the Reference number of properties aren't shown on the Sef urls?
Thanks
Dam
You mean the Reference number of properties aren't shown on the Sef urls?
Thanks
Dam
Please Log in or Create an account to join the conversation.
- Benjamin
- Topic Author
- Offline
- Senior Member
-
Less
More
- Posts: 46
- Thank you received: 0
10 years 4 months ago #56272
by Benjamin
Replied by Benjamin on topic Categories urls with plg_sh404sef_osproperty
YES DAM
Thanks
Thanks
Please Log in or Create an account to join the conversation.
- Mr. Dam
-
- Offline
- Administrator
-
Less
More
- Posts: 13056
- Thank you received: 1696
10 years 4 months ago #56273
by Mr. Dam
Replied by Mr. Dam on topic Categories urls with plg_sh404sef_osproperty
Hi,
You can edit the field "alias" to add the Ref number. Because OS Property use aliases of properties in the Sef urls
Thanks
Dam
You can edit the field "alias" to add the Ref number. Because OS Property use aliases of properties in the Sef urls
Thanks
Dam
Please Log in or Create an account to join the conversation.
- Benjamin
- Topic Author
- Offline
- Senior Member
-
Less
More
- Posts: 46
- Thank you received: 0
10 years 4 months ago #56274
by Benjamin
Replied by Benjamin on topic Categories urls with plg_sh404sef_osproperty
How to edit the field "alias" ? PLEASE. Do you want to say each alias manually?
Please Log in or Create an account to join the conversation.
- Mr. Dam
-
- Offline
- Administrator
-
Less
More
- Posts: 13056
- Thank you received: 1696
10 years 4 months ago #56275
by Mr. Dam
Replied by Mr. Dam on topic Categories urls with plg_sh404sef_osproperty
Yes, if you have a few properties, you can modify aliases manually. But if you have a lot of properties. You can make the modification on source code to change alias. Please follow these steps
- Open file: components > com_osproperty > helpers > helper.php
- find
$db->setQuery("Select pro_name from #__osrs_properties where id = '$id'");
$pro_name = $db->loadResult();
$pro_alias = mb_strtolower($pro_name);
$pro_alias = str_replace(" ","-",$pro_alias);
$pro_alias = str_replace("'","",$pro_alias);
$pro_alias = str_replace("\"","",$pro_alias);
and replace by
$db->setQuery("Select ref,pro_name from #__osrs_properties where id = '$id'");
$pro_name = $db->loadObject();
$pro_alias = mb_strtolower($pro_name->ref." ".$pro_name->pro_name);
$pro_alias = str_replace(" ","-",$pro_alias);
$pro_alias = str_replace("'","",$pro_alias);
$pro_alias = str_replace("\"","",$pro_alias);
After that, new properties will be add the aliases with format "ref + property name", with old properties, you still need to modify the aliases manually.
Thanks
Dam
- Open file: components > com_osproperty > helpers > helper.php
- find
$db->setQuery("Select pro_name from #__osrs_properties where id = '$id'");
$pro_name = $db->loadResult();
$pro_alias = mb_strtolower($pro_name);
$pro_alias = str_replace(" ","-",$pro_alias);
$pro_alias = str_replace("'","",$pro_alias);
$pro_alias = str_replace("\"","",$pro_alias);
and replace by
$db->setQuery("Select ref,pro_name from #__osrs_properties where id = '$id'");
$pro_name = $db->loadObject();
$pro_alias = mb_strtolower($pro_name->ref." ".$pro_name->pro_name);
$pro_alias = str_replace(" ","-",$pro_alias);
$pro_alias = str_replace("'","",$pro_alias);
$pro_alias = str_replace("\"","",$pro_alias);
After that, new properties will be add the aliases with format "ref + property name", with old properties, you still need to modify the aliases manually.
Thanks
Dam
Please Log in or Create an account to join the conversation.
- Benjamin
- Topic Author
- Offline
- Senior Member
-
Less
More
- Posts: 46
- Thank you received: 0
10 years 4 months ago #56279
by Benjamin
Replied by Benjamin on topic Categories urls with plg_sh404sef_osproperty
Thank you very much that work well.
I have a remark compared to the theme 1 of version 2.7.3. There are no more the fields “Hits” and “Conversion of currencies” which are very useful for us in Africa. I do not know if it is necessary that I open another topic compared to that in order to help all those which are in the need. Can you explain us how to add these parameters to theme 1? Thank you in advance.
I have a remark compared to the theme 1 of version 2.7.3. There are no more the fields “Hits” and “Conversion of currencies” which are very useful for us in Africa. I do not know if it is necessary that I open another topic compared to that in order to help all those which are in the need. Can you explain us how to add these parameters to theme 1? Thank you in advance.
Please Log in or Create an account to join the conversation.
- Mr. Dam
-
- Offline
- Administrator
-
Less
More
- Posts: 13056
- Thank you received: 1696
10 years 4 months ago #56282
by Mr. Dam
Replied by Mr. Dam on topic Categories urls with plg_sh404sef_osproperty
Hi Benjamin,
There aren't any difference in theme1 between 2.7.4 and 2.7.3. But if you want to turn on Hits field, please follow these steps
1. Open file: components > com_osproperty > templates > theme1 > details.html.tpl.php
find
/*
if($configClass == 1){
?>
<li class="propertyinfoli meta-block"><strong><?php echo JText::_('OS_TOTAL_VIEWING')?>: </strong><span><?php echo $row->hits?></span></li>
<?php
}
*/
and change to
if($configClass == 1){
?>
<li class="propertyinfoli meta-block"><strong><?php echo JText::_('OS_TOTAL_VIEWING')?>: </strong><span><?php echo $row->hits?></span></li>
<?php
}
It will show the "hits" for you
By the way, theme1 doesn't have field "Currency convert"
Thanks
Dam
There aren't any difference in theme1 between 2.7.4 and 2.7.3. But if you want to turn on Hits field, please follow these steps
1. Open file: components > com_osproperty > templates > theme1 > details.html.tpl.php
find
/*
if($configClass == 1){
?>
<li class="propertyinfoli meta-block"><strong><?php echo JText::_('OS_TOTAL_VIEWING')?>: </strong><span><?php echo $row->hits?></span></li>
<?php
}
*/
and change to
if($configClass == 1){
?>
<li class="propertyinfoli meta-block"><strong><?php echo JText::_('OS_TOTAL_VIEWING')?>: </strong><span><?php echo $row->hits?></span></li>
<?php
}
It will show the "hits" for you
By the way, theme1 doesn't have field "Currency convert"
Thanks
Dam
Please Log in or Create an account to join the conversation.
Moderators: Mr. Dam, Nguyen Phu Quan
Support
Documentation
Information
Copyright © 2025 Joomla Extensions by Joomdonation. All Rights Reserved.
joomdonation.com is not affiliated with or endorsed by the Joomla! Project or Open Source Matters.
The Joomla! name and logo is used under a limited license granted by Open Source Matters the trademark holder in the United States and other countries.
The Joomla! name and logo is used under a limited license granted by Open Source Matters the trademark holder in the United States and other countries.