Also passing news category with printNewsTitleLink

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:
<h3><?php printNewsTitleLink(); ?></h3>

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

Comments

  • acrylian Administrator, Developer
    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.
  • 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...
Sign In or Register to comment.