65 Posts
Wissner
7 years ago
Topic

Hi,

I want to make a content type with a category selection. The specific manager who shall use this content type must not have the full list of categories, but only a 6 of them. I can not use the standard category list of joomla, but must create a own select list. 

So I tried to make a simple select list, with the categories listed like 

new=25
old=26
young=27

The selection shall be stored into the catid of #_content

But when I try this, this ist stored nowhere, and in the catid of #_content is written a 0

So I fear, that after the writing of my content_type, the catid is changed to zero. Is there an other way to get my catid written into #_content -> catid

thank you

Wolfgang

Get a Book for SEBLOD
4229 Posts
Kadministrator
7 years ago
1
Level 1

You need to set correct storage for the field - Standard-Article-catid (exactly the same as in standard article category field)

65 Posts
Wissner
7 years ago
0
Level 2

Thank you, that s great. I have missunderstood the thing with data storage. Thought that custom-article-catid is the correct syntax, because the standard storage thing is in #__cck_store_form_mycontent  and the custom storage is in the #_content table.   :-)

Thank you Klas

Get a Book for SEBLOD