47 Posts
sebg
8 years ago
Topic

Hello,

I create a variation of seb_one template.

$cck->renderField('art_catid') displays the title and the name of the category

$cck->getValue('art_catid') displays the number of the category.

Is it possible to display the title of the category with 'art_catid' ? When I use 'cat_title', I have unusual results...

Thanks,
Seb

Get a Book for SEBLOD
47 Posts
sebg
8 years ago
0
Level 1

Anybody knows ? Is there a bug ?

How can I only displays the name of the category ?

8 years ago
6
Level 1

Hello,

for a select, a checkbox, ..., => the syntaxe for each option is text=value.

So $cck->getText('art_catid'); must give you the name of the category.


Best regards.

Lionel


47 Posts
sebg
8 years ago
5
Level 2

Many thanks, Lionel.

Could you help to find these function in the code ? I don't find the file, and when I search the Seblod API, the link is broken in th forum.


47 Posts
sebg
8 years ago
0
Level 4

Wow ! Thank you !

12 Posts
vimal
7 years ago
2
Level 4

Hi Alex, 

I am also caught in a similar situation, seems like this will also workout for me, but the link posted by you is dead, gives a 404. Could you please re-post the link or let me know where to find it.? 

Just for details, I am trying to build a page which would list all the subcategories that fall under a particular category, with images of the category and name under it. So I think, i could do this by getting the subcategory names under the category, the category image, and the category name. Not sure, if that would work out thought. 

Any suggestion would be much appreciated though. 

Thanks a lot.

Vimal

12 Posts
vimal
7 years ago
0
Level 6

Hi Sebg,


Thanks for the response. I'm going through it, but would be back if I fail to accomplish what I am seeking....

Thanks again.

Get a VIP membership