Member
Member
n20capri   24-01-2011, 22:38
#1

On my news page, the link to each news article looks and works fine - displaying the article title and linking to the actual article...url is as follows:

index.php?p=news&title=article1

and the link code looks like this:

However, I'd like to also pass the category name...I know it's not necessary however, I'm doing some other things with the category name when it's passed. Want the link to still display the article title but want the actual link to look like this:

index.php?p=news&category=testimonials&title=article1

I played around with some things but I can't seem to find it.

Any insight?
Thanks,
Mike

Administrator
Administrator
acrylian   25-01-2011, 10:31
#2

It is of course not done because an article by standard can be in numerous categories. So how should the function know what to use.

It is possible but you will have to create a bunch custom functions - all that print a single article link - for this using getNewsURL() like this:
getNewsURL().'&category=';

Review the documentation about getNewsURL() and the object model.

Member
Member
n20capri   26-01-2011, 18:48
#3

Ahhh right numerous categories...I don't currently have any like that but I see whatcha mean...

Hmmmmmm. Guess I'll have to figure something else out...

  
Powered By MyBB, © 2002-2026 MyBB Group.
Made with by Curves UI.