Category Quickie!

2 posts by 2 authors in: Forums > CMS Builder
Last Post: March 30, 2010   (RSS)

By Perchpole - March 30, 2010

Hello, All -

I'm using $selectedCategoryNum = @$_REQUEST['category']; to pull in the URL category - which obviously returns a number.

Ideally I'd also like to display the title of the category as a header somewhere on the page.

However if I echo $selectedCategoryNum I'll just get a number.

So, what would be the most efficient way to derive the corresponding title of the category from the returned number?

(NB: I'm currently using a foreach loop coupled with getlistlabels - which works but seems a bit OTT to display a single header!)

:os

Perch