548 Posts
joomleb
7 years ago
5
Topic

Hi guys, a Customer need:


1
- He added a Joomla User Profile Tab using the standard joomla Custom Fields;


2
- As far as I understandCustom Fields save all into the #_fields_values table as:

--- field_id (the id assigned to the created custom filed)

--- item_id (the id of the associated item like a user id / an article id etc.)

--- value


3
 - Now, I want use SEBLOD User Form to read and store there ( #_fields_values ) the values he yet stored and shared with other components, and then add some few fields using SEBOD. So creating a new field I can set Storage as:

-- Format / Object: Standard / Free / value

-- Parameters: #_fields_values


But, Please, How to add at the same time of "value" also the field_id / item_id needed in the same row of that table ?

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

You could add a field for id and item_id. 

But in general, I would not recommend a mixture of Seblod and Joomla custom fields, e.g. you can only use one storage object at once so also other Seblod fields would need to use free storage.

548 Posts
joomleb
7 years ago
1
Level 2

Hi Klas, always thanks for your suggestions!


1
- Please, What do you mean with "you can only use one storage object at once so also other Seblod fields would need to use free storage"  ?!?

That all the other fields into the same User Form should be as "free storage"... ?!? But in that User Form there are also standard joomla User fileds, like name / password etc.


2 - Do you mean for each value field create two hidden fields to write in the same table row ? Like:

--- value Name + hidden field_id (the id assigned to the created custom filed) + hidden item_id (the id of the associated item like a user id / an article id etc.)

--- value Surname + hidden field_id (the id assigned to the created custom filed) + hidden item_id (the id of the associated item like a user id / an article id etc.)

But, Please, How to connect the value with the two fields and constrict the two fields to write in the same table row ?

1283 Posts
Bucklash
7 years ago
0
Level 3

Hi

For '1':

When storing, you can save seblod stuff, and wrote own code to store custom_fields.  

or the other way round i suppose....  but mixing custom fields with seblod seems to be using two systems to do the same thing, and that seems a bit silly :)

4229 Posts
Kadministrator
7 years ago
0
Level 1

Exactly as Bucklash wrote :)

As I said - you can't have user object and free object in one content type. 

Free object fields will write in the specified column in one database row, so if you have id field, value field and item_id field, each will write in it's column. BUT you can't write to 3 rows at the same time as you would need for 3 custom fields.

So in short - forget it and use Seblod only.

548 Posts
joomleb
7 years ago
0
Level 1

Hi guys, 

thanks for your answers :)

Get a VIP membership