[Tiki-users] How to get category name by its id
Ilya Perminov <[email protected]>
| Newsgroups | gmane.comp.cms.tiki.user |
|---|---|
| Message-ID | <CAD63mQY9_tjrnf1Aw8sd90V-0-Aw_wY8JRVrRnMt8fDbcHuwxA@mail.gmail.com> |
Hi,
What's the best way of showing the name of a category with a given Id?
{category id="4" sub="n" showlinks="n" categoryshowlink="n"
maxRecords="0" showTitle="y"}
works, but feels hackish and includes hard coded word "category" to the output.
{LIST(cache="y")}
{output template="debug"}
{filter field="object_id" exact="4"}
{LIST}
returns no results, so it looks like categories do not get into the
unified index. Do I need to enable something?
Thanks,
Ilya