154 Posts
WebOne
8 years ago
1
Topic

Hi!

WIth reference to :

https://www.seblod.com/resources/tutorials/create-content-dynamiclly-using-code

I have added code successfully in the Afterstore field so that it is creating content dynamically

However one of the fields I need to auto create from the original form is a GroupX field.

I realize in the array the column name needs to equal the groupx data as you would find it in the database (encoded)

'some_db_column_name'=> groupx data in original format (encoded)

Let's say the groupx field in the form is mygroupx_field

can anyone suggest a way of encoding the  group(x) field values back in the required format so that the data in the table can be saved properly when creating the content dynamically?

Thank you!

Get a VIP membership
4229 Posts
Kadministrator
7 years ago
0
Level 1

You can use CCK_Content::getSyntax_Group amd other mehods from that class if you need them.

Get a Book for SEBLOD