Webmastersite.net
Register Log In

Link to specific {CATURL}
How to re-write this?

Comments on Link to specific {CATURL}

mrowton
Forum Regular

Usergroup: Customer
Joined: Feb 19, 2004
Location: Michigan

Total Topics: 57
Total Comments: 185
mrowton
Posted Aug 18, 2007 - 5:12 AM:

In the past I could put
<a href="index.php?action=displaycat&catid=3">
In my template and it would get rewritten to /catname

I think I remember you talking about how the example is no longer going to get re-written. My question is, if I want to hard code a link to a specific category, do I have to:
<a href="catname">Catname</a>
The con is that I used to be able to move the category to the top, or change parents and the links would automatically work and get re-written correctly. Now if I change a cat location I would have to go around and change all the links to it.
Paul
developer

Usergroup: Administrator
Joined: Dec 20, 2001
Location: Diamond Springs, California

Total Topics: 61
Total Comments: 7868
Paul
Posted Aug 19, 2007 - 1:16 AM:

{CATURL} is the URL of a category. If for some reason you're trying to put a specific non-dynamic link then you can copy and paste it from your browser address bar.

The con is that I used to be able to move the category to the top, or change parents and the links would automatically work and get re-written correctly. Now if I change a cat location I would have to go around and change all the links to it.

Why would you be writing non-dynamic links?

I can make an equivilant of FUNC_SHOWFIELDVALUE that works with object methods... to get the url of a specific category id it'd be {FUNC_SHOWOBJECTMETHOD[category <,> 3 <,> url]}
Search thread for
Download thread as
  • 0/5
  • 1
  • 2
  • 3
  • 4
  • 5



This thread is closed, so you cannot post a reply.