I have data on my directory that has no URL and the similar links function just points back to the base URL of the directory - having no external URL to go to, I guess that's fair enough. My question is, how do I make those URL's point to the similar link's detail page within the directory instead? I assumed that this would be easy but I can't make it work - can you shed some light please?
Just in case I haven't described this very well, let me put it another way:
<!-- BEGIN SIMILAR --> <a href="{TRACKLINKURL}" {EXTERNALLINKS}>{LINKTITLE}</a>, <!-- END SIMILAR -->
and change to:
<!-- BEGIN SIMILAR --> <IF {LINKURL}><a href="{TRACKLINKURL}" {EXTERNALLINKS}>{LINKTITLE}</a>, <OTHERWISE> <a href="{LINKDETAILSURL}">{LINKTITLE}</a></IF><!-- END SIMILAR -->
I am guessing that due to different switches being enabled / disabled, that it didn't work. I note that it's displayed other stuff such as comments that are not switched on.
Comments on Similar links question
Forum Regular
Usergroup: Customer
Joined: Jan 19, 2007
Total Topics: 32
Total Comments: 130
Hi,
I have data on my directory that has no URL and the similar links function just points back to the base URL of the directory - having no external URL to go to, I guess that's fair enough. My question is, how do I make those URL's point to the similar link's detail page within the directory instead? I assumed that this would be easy but I can't make it work - can you shed some light please?
Just in case I haven't described this very well, let me put it another way:
The similar links on this page www.abc-directory.co.uk/lin...consulting-ltd-866453.html all point to http://www.abc-directory.co.uk how do I make them point to their own relevant details pages?
Thanks,
Jez.
Expert
Usergroup: Customer
Joined: Aug 19, 2005
Location: England
Total Topics: 391
Total Comments: 1303
On the details template (details.tpl), search for
and change to:
<a href="{LINKDETAILSURL}">{LINKTITLE}</a></IF><!-- END SIMILAR -->
Forum Regular
Usergroup: Customer
Joined: Jan 19, 2007
Total Topics: 32
Total Comments: 130
Is there any chance that you could re post that with the characters and not the ascii codes?
I am assuming that's why it didn't work for me
Thanks.
Expert
Usergroup: Customer
Joined: Aug 19, 2005
Location: England
Total Topics: 391
Total Comments: 1303
Is there any chance that you could re post that with the characters and not the ascii codes?
I am assuming that's why it didn't work for me
Thanks.
Hi Jez
Sorry, I thought putting it in a quote box would allow them, obviously not! So I have attached a txt file for you.
Jill
Attached Files:
Forum Regular
Usergroup: Customer
Joined: Jan 19, 2007
Total Topics: 32
Total Comments: 130
Hi Jill,
Thanks for taking the time to do that.
I am guessing that due to different switches being enabled / disabled, that it didn't work. I note that it's displayed other stuff such as comments that are not switched on.
Here's what happened:
www.abc-directory.co.uk/lin...consulting-ltd-866453.html
Jez.
developer
Usergroup: Administrator
Joined: Dec 20, 2001
Location: Diamond Springs, California
Total Topics: 61
Total Comments: 7868
Use the code tag for posting html/php, not the quote tag.
babrees' example needs IF changed to <IF, but I'll make links without a url automatically default to the details page, everywhere.
Expert
Usergroup: Customer
Joined: Aug 19, 2005
Location: England
Total Topics: 391
Total Comments: 1303
OOPS! Sorry Jez, I should've checked for typos!
Forum Regular
Usergroup: Customer
Joined: Jan 19, 2007
Total Topics: 32
Total Comments: 130
Thanks Jill - you have been a great help. Thanks also Paul.
Jez.