1283 Posts
Bucklash
8 years ago
2
Topic

Hi folks

RE: afterstore, JCckContent, and joomla_category.

Am I trying to do something with JCckContent that isn't possible?

If I use afterstore in a joomla_category form, and then, using JCckContent, dynamically create content based upon joomla_article or joomla_user_group I achieve success.
If I use afterstore in a joomla_category form, and again using JCckContent,  dynamically create content based upon joomla_category, I receive a warning...
In the content type created with JCckContent, I reference the category that contains the afterstore field, is this  possible to do?

...Warning message:

"Error loading component: , Component not found
    "Error loading component: , Component not found
	

Code:

$newClasses = new JCckContent( 
             array('joomla_category') 
         );
         $addNewClasses = $newClasses->create(
             'tp_classes',
             array(
                 'title'=> 'Classes',
                 'alias'=> $config['pk'] . '-classes',
                 'parent_id'=> $config['pk']
             ),
             array(
                // nothing to put here yet, though will have in the future  
             )
         );
	

      

Hope it makes sense :)

As always, any tips, advice or suggestions gratefully received 

Thanks

Bucklash

forms-content-types/auto-create-content

fields-plug-ins/beforestore-plugin-code-pack-change-value

changing-the-joomla-message-after-a-submission-of-a-seblod-form

insert-content-type-from-custom-extension

Need some help?

2 replies have been added to this thread, and the topic is marked as solved.
You should subscribe to a club in order to read all posts.