placing category name in title of html page

5 posts by 2 authors in: Forums > CMS Builder
Last Post: October 20, 2009   (RSS)

Re: [pchell] placing category name in title of html page

By Chris - October 20, 2009

Hi pchell,

I have a couple of questions for you:

How does your articlelist.php page know which category to display? Are you linking to "articlelist.php?category=2"?

Also, how is your Articles' "category" field configured? Do you have a hard-coded list of options or are you using "Get options from database (advanced)"?
All the best,
Chris

Re: [chris] placing category name in title of html page

By (Deleted User) - October 20, 2009

Chris,

I am linking to the articles with this code "[font "Verdana"]"articlelist.php?category=2"

[font "Verdana"]As far as the categories are concerned, its a static hard coded dropdown list that I created to choose from. Currently it has 3 categories in it.

[font "Verdana"]Thanks!

[font "Verdana"]

Re: [pchell] placing category name in title of html page

By Chris - October 20, 2009

Hi pchell,

How about this?

<title>Category <?php echo htmlspecialchars($_REQUEST['category']) ?> articles</title>

I hope that helps. Please let me know if you have any more questions.
All the best,
Chris

Re: [chris] placing category name in title of html page

By (Deleted User) - October 20, 2009

Thanks again Chris,

That worked great!