|
#1
|
|||
|
|||
|
Hi,
Im using sef for hotproperty, because that looks much better. But, I have a pretty big problem. When two properties have the same name, the generated sef link points to one of those properties. To overcome this issue, I'd like to add the property id to the string again. I think this has to be done in the sef_ext.php, but how exactly? Please help me. Kind regards, Menno |
|
#2
|
|||
|
|||
|
Quote:
For the time being I am being creative when i name my properties, but as the site grows, I'm running out of options. Right now I have a few appartments in "Kolonaki" (it's an area in Athens), and i'm running out of names/titles, it goes like: Appartment in Kolonaki - Penthouse in Kolonaki - renovated apartment in Kolonaki, u get the idea. I'm also using SEF advanced, and i think that a uniqe id per property in the url could solve this. Another idea i had was the custom allias setting in latest SEF advance that can give custom urls per object, but i haven't play with this yet, and turning on/off seo to see the real non-sef url each time u publish a property is not practical i think. Maybe the developers should come with a solution to this.. can't be that hard Thanks. Kimon. |
|
#3
|
|||
|
|||
|
Indeed.
By the way, I'm using Xaneon extensions and not SEF Advance. I've got a modified search, using the GET method. That way you can search, go to a property and use the back button to return to your search results. When using SEF Advance, the search function doesn't work anymore. I get the http://www.mydomain.com/advsearchr/stringwithvariables with the message that there are no results. When I turn on the debug mode, I can see the non SEF results and the string it shows there, DOES give me the search results. No idea where it goes wrong. Damn... paid 40 dollars for it. Xaneon does it for free and somehow doesn't 'sef' the search function. So... no sefs for the search function (the results showing aren't sef either, that is a pity), but at least it works. Are you using GET or POST? |
|
#4
|
|||
|
|||
|
By the way... don't think it's hard either... can't be more than 4 or 5 lines of code?
|
|
#5
|
|||
|
|||
|
Alex? Dknight? Anybody?
I could really really use this. Since agents add their own properties, they aren't aware of the fact that someone else uses the same name. Actually... I'd like to get rid of the name thing and let it display the suburb and the property id.... |
|
#6
|
|||
|
|||
|
Done some hacking myself.
Here is the code to let it display: /suburb/id instead of /name Quote:
Last edited by vanwel; 10-21-2005 at 09:39 PM. |
|
#7
|
|||
|
|||
|
Ok. This gives a nice link, but the link doesn't work right....
I'll keep trying.. |
|
#8
|
|||
|
|||
|
Update:
Go to the bottom of the sef document and find the view proeprty again. Replace that part with the following: Quote:
Works for me. It highly depends on the number of /example/example/ you have. I just fiddled a little bit and it worked, thank god. |
|
#9
|
|||
|
|||
|
Bump...
Nice all that, and many thanks for sharing, but I would like some insight from the developers b4 messing with HP files, Alex maybe... I'm afraid that I might come up with brokken SEO links if I hack the files, and then an upgrade comes out. I also found an intresting post here: http://forum.joomla.org/index.php/topic,14060.0.html , from someone facing a similar prob. Looks like Joomla has an integrated machanism to prevent this...with the reverse way, preventing naming at the first place , I guess it works only with the core thow.Anyway, property naming problem is present with adv. SEF, because of the limited ways the properties can be named, if you have to follow the "Property type - Area" naming schema, like I do. In my case I must be able to have properties with the same name. Also, implementing a mechanism like the one mentioned above, wouldn't help in my case. It would only forbid me publishing properties to prevent url errors. When I turn off SEF I can see that the default URL contains some sort of id#, can't this be included at the SEF generated links somehow? I thought that SEF support for individual components was comming from the (individual) developers, so giving an option about url rewright conditions can't be THAT hard.. Or at least I think so so, please....Thanks anyway. PS. Plz, plz, plz, forgive my English. |
|
#10
|
|||
|
|||
|
Hi,
I understand that you don't like to go away and hack into the files. But my solution is working pretty well and the SEF is displaying the id numbers like you want to! Check my site at www dot b0gtrad3r dot nl |
|
#11
|
|||
|
|||
|
Quote:
|
|
#12
|
|||
|
|||
|
Quote:
- replace 'dot' with '.' - replace '0' with 'o' - replace '3' with 'e' I don't want to create irrelevant forum links to my site. Hence the 'coding'... |
|
#13
|
|||
|
|||
|
URL obfuscating? Interesting
__________________
Alex, Custom vBulletin/Joomla! Developer For sale: Joomla.cc & Joomla.ws |
|
#14
|
|||
|
|||
|
Yes, I don't want people searching for my company name and finding this forum for my own website, although I don't think that is a big chance
![]() By the way, Alex, what do you think of my solution? Seems to work alright?
|
|
#15
|
|||
|
|||
|
Quote:
From sakic.net: What's new in version 4.2?.... "- A trailing slash "/" get appended to URLs to create a folder effect When calling URL without extension or trailing slash, one gets appended automatically to make appearance of a real folder." |
|
#16
|
|||
|
|||
|
My version of sef_ext.php
Url is: mydomain.com/hotproperty/type_name/property_name/property_id/
|
|
#17
|
|||
|
|||
|
Hmmm... So, you are using the advanced search with the GET method?
And can you order your search results by price, suburb etc? Also with sef enabled? That would be nice... |
|
#18
|
|||
|
|||
|
Discovered a nasty thing.
When someone puts a " ' " in the name of the property, you get a sef url with a '%' which doesn't work. How to solve this? |
|
#19
|
|||
|
|||
|
I would still like to have some insight from the developers about all this
Afrer all, it is a problem that all users of HP will have to deal with when using SEF advance and having many properies at the db. Right now, the url rewright scheme, without property id in it, demands unique property names, and that can be a problem when dealing with properies. Thanks anyway. |
|
#20
|
|||
|
|||
|
WHY JUST NOT USE MY SOLUTION???
|
|
#21
|
|||
|
|||
|
Quote:
Like if the links created with the modified sef, and allready stored at the search engines worldwide will still work, or result nasty 404 error codes that will penaltise my site ranking and lead my visitors to my 404 page. Isn't that a good enough reason? Anyway, it's not a development site, and i will not mess with the core of HP without asking the developers first about it. What's the reason to be ungry anyway? I believe that your sollution most probbably works ok, and I thank you for the time and the efort you put into it, but what is wrong about trying to be in the safe side? You should not be mad about it... Thanks for the input anyway. |
|
#22
|
|||
|
|||
|
Hello...
Really good hack for sef advance.. My questions is: Is there anyway to hack the sef_ext.php file to show in the url: type, country, suburb, name, and ID of the property? for example: /Hotproperty/Houses/Argentina/Buenos_Aires/3_Bed_Apartment/122.html I was trying to doit, but i could not make it work. Any help?.. Thanks. Best regards from argentina. |
|
#23
|
|||
|
|||
|
I purchased your software, purchased SEF Advanced and now it's useless to me.
I can't use this if having two names the same confuses your script. |
|
#24
|
|||
|
|||
|
the file to edit is /components/com_hotproperty/sef_ext.php
and if still doesn't work go to sh404SEF Configuration, select "By component"-tab and select "Do not override sef_ext" for hotproperty.
Last edited by Yatko; 11-25-2008 at 04:08 AM. |
|
#25
|
|||
|
|||
|
Quote:
$database->setQuery( "SELECT t.name AS type_name, p.suburb AS property_suburb, p.id AS property_id FROM #__hp_properties AS p" change to: $database->setQuery( "SELECT t.name AS type_name, p.country AS property_country, p.suburb AS property_suburb, p.id AS property_id FROM #__hp_properties AS p" |
|
#26
|
|||
|
|||
|
Quote:
Thank's |
![]() |
| Thread Tools | |
| Display Modes | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Extension allows Hot Property users to display availability status | herohat | Hot Property Discussions | 3 | 07-16-2006 06:14 PM |
| Unique Property Reference Number | SteveB | Hot Property Troubleshooting and Problems | 9 | 02-17-2006 09:45 AM |
| Property listing display | goldenway | Hot Property Troubleshooting and Problems | 5 | 10-12-2005 11:58 PM |
| visible unique number for each property | Lumbo | Hot Property Discussions | 1 | 08-17-2005 02:34 PM |
| is any way to display more fields in property manager | bytefantasma | Hot Property Troubleshooting and Problems | 3 | 07-12-2005 06:29 AM |