how to get category value from xml params?
Posted
by
C-link Nepal
on Stack Overflow
See other posts from Stack Overflow
or by C-link Nepal
Published on 2014-08-22T07:01:00Z
Indexed on
2014/08/22
10:20 UTC
Read the original article
Hit count: 145
I have the following field in xml:
<field
name="cat1"
type="category"
extension="COM_CONTENT"
label="MOD_ITEM_CAT1"
description="MOD_ITEM_CAT_DESC" />
Now, I wanted to get selected value:
echo $params->get('cat1');
Which shows me 8 (the value of selected option) not it's title.
I've category title people
and it should show people instead of 8.
So, how to extract the title of the category?
© Stack Overflow or respective owner