- Posts: 448
- Thank you received: 2
BUG: SEF urls
- sti
- Topic Author
- Offline
- Platinum Member
-
on the other case: from your demo
menu name is not fetching..
osproperty.ext4joomla.com/index.php/additions-remodels
Please Log in or Create an account to join the conversation.
- sti
- Topic Author
- Offline
- Platinum Member
-
- Posts: 448
- Thank you received: 2
create aplugin for this n link the tag module. solved.
Please Log in or Create an account to join the conversation.
- sti
- Topic Author
- Offline
- Platinum Member
-
- Posts: 448
- Thank you received: 2
it should be
/mainpropertycategory/ property-type/ propertyname.
Please Log in or Create an account to join the conversation.
- Mr. Dam
-
- Offline
- Administrator
-
- Posts: 13020
- Thank you received: 1688
They said it's better for SEO.
Some others want www.sitename.com/property-type/property-name
Only you want to have the category names in the link. But i can help you.
I will make one version sh404sef extension with category name and send to you.
so the format you want is : www.sitename/categoryname/property-type/propertyname right?
Thanks
Dam
Please Log in or Create an account to join the conversation.
- Mr. Dam
-
- Offline
- Administrator
-
- Posts: 13020
- Thank you received: 1688
Please Log in or Create an account to join the conversation.
- sti
- Topic Author
- Offline
- Platinum Member
-
- Posts: 448
- Thank you received: 2
Please Log in or Create an account to join the conversation.
- Mr. Dam
-
- Offline
- Administrator
-
- Posts: 13020
- Thank you received: 1688
If you dont have experience in php + joomla developing, you had better to use the existing sh404sef plugin.
Here is the link that you can read and modify the sh404sef extension for OS Property:
anything-digital.com/sh404sef/faqs/how-d...or-my-component.html
Thanks
Dam
Please Log in or Create an account to join the conversation.
- sti
- Topic Author
- Offline
- Platinum Member
-
- Posts: 448
- Thank you received: 2
damdt wrote: If you want to make the sef links for OS Property, you must know about php develoment. When you have php Joomla development experience, you can read the source code of the sh404sef extension for OS Property component and you can make the change (alias or something like that).
If you dont have experience in php + joomla developing, you had better to use the existing sh404sef plugin.
Here is the link that you can read and modify the sh404sef extension for OS Property:
anything-digital.com/sh404sef/faqs/how-d...or-my-component.html
Thanks
Dam
One time u said this:
But some customers ask me to make www.sitename.com/propertyname
They said it's better for SEO.
Some others want www.sitename.com/property-type/property-name
Only you want to have the category names in the link. But i can help you.
I will make one version sh404sef extension with category name and send to you.
so the format you want is : www.sitename/categoryname/property-type/propertyname right?
Thanks
Dam
and other time you asking to to code myself. so which is which ?
are you going to provide the custom version for me still.?
Please Log in or Create an account to join the conversation.
- Mr. Dam
-
- Offline
- Administrator
-
- Posts: 13020
- Thank you received: 1688
The sef link is in : components > com_sh404sef > sef_ext > com_osproperty.php
The sef for the property details is in line 135
case 'property_details':
if ( is_numeric($id) ) {
$database = JFactory::getDbo();
$database->setQuery( "Select a.*,b.type_name from #__osrs_properties as a inner join #__osrs_types as b on b.id = a.pro_type where a.id = '$id'");
// if (shTranslateUrl($option, $shLangName))
$row = $database->loadObject( );
//else $row = $database->loadObject( false );
$title[] = "property";
$title[] = $row->type_name;
$title[] = $row->pro_name;
shRemoveFromGETVarsList('task');
shRemoveFromGETVarsList('id');
}
break;
if you want to add category name in the link :
case 'property_details':
if ( is_numeric($id) ) {
$database = JFactory::getDbo();
$database->setQuery( "Select a.*,b.type_name,c.category_name from #__osrs_properties as a inner join #__osrs_types as b on b.id = a.pro_type inner join #__osrs_categories as c on c.id = a.category_id where a.id = '$id'");
// if (shTranslateUrl($option, $shLangName))
$row = $database->loadObject( );
//else $row = $database->loadObject( false );
$title[] = "property";
$title[] = $row->type_name;
$title[] = $row->category_name;
$title[] = $row->pro_name;
shRemoveFromGETVarsList('task');
shRemoveFromGETVarsList('id');
}
break;
if you don't want to show property type name, please remove : $title[] = $row->type_name;
Thanks
Dam
Please Log in or Create an account to join the conversation.
Support
Documentation
Information
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.