OS Property support center

BUG: SEF urls

  • sti
  • Topic Author
  • Offline
  • Platinum Member
  • Platinum Member
More
11 years 8 months ago #17822 by sti
Replied by sti on topic Re: BUG: SEF urls
i see the issue now. cause u never asked to update the location module...


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
  • Platinum Member
More
11 years 8 months ago #17823 by sti
Replied by sti on topic Re: BUG: SEF urls
extensions.joomla.org/extensions/search-.../tags-a-clouds/18853

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
  • Platinum Member
More
11 years 8 months ago #17824 by sti
Replied by sti on topic Re: BUG: SEF urls
www.SAMPLEsitecom/ property / for-rent / proepertyname

it should be

/mainpropertycategory/ property-type/ propertyname.

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

More
11 years 8 months ago #17825 by Mr. Dam
Replied by Mr. Dam on topic Re: BUG: SEF urls
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

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

More
11 years 8 months ago #17830 by Mr. Dam
Replied by Mr. Dam on topic Re: BUG: SEF urls
Please go online Skype and tell me more details about you request.

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

  • sti
  • Topic Author
  • Offline
  • Platinum Member
  • Platinum Member
More
11 years 8 months ago #18128 by sti
Replied by sti on topic Re: BUG: SEF urls
if you have so many version. maybe you can provide a tutorial to create and adjust our own sef urls

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

More
11 years 8 months ago #18143 by Mr. Dam
Replied by Mr. Dam on topic Re: BUG: SEF urls
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

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

  • sti
  • Topic Author
  • Offline
  • Platinum Member
  • Platinum Member
More
11 years 8 months ago #18144 by sti
Replied by sti on topic Re: BUG: SEF urls

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.

More
11 years 8 months ago #18208 by Mr. Dam
Replied by Mr. Dam on topic Re: BUG: SEF urls
Hi,
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.

Moderators: Mr. DamNguyen Phu Quan