10 years ago
5
Topic

Olá! Sou novo no seblod e estou tentando entender ainda como funciona. Estou desenvolvendo um site (news) em joomla + k2, e gostaria de saber como faço para alterar um item (artigo) do k2, pelo seblod. Quero criar um campo no artigo que seja de drop down com escolha condicionada á opção anterior (tipo estado e cidade).

Get a Book for SEBLOD
10 years ago
0
Level 1

Sorry, posted in Portuguese .....

Hello! I'm new in SEBLOD and am still trying to understand how it works. I'm developing a website (news) in joomla + k2, and I wonder how do I change an item (article) of k2 at SEBLOD. I want to create a field in the item which is conditional on the drop down choice to the previous option (like state and city).

175 Posts
webcastor
10 years ago
2
Level 1

Hello Lael!

K2 is a component that uses a different storage (table) than Joomla. SEBLOD on the other hand uses Joomla tables and enhances the content.

What you could try to do is create content type which is free (Object: Free in Form&Content type), and create fields that are connected to columns in your #__k2_items table (storage). I haven't tried this, so I do not guarantee success, but it is there and I am quite confident it will work.

However, be prepared for different table structure than Joomla, even more so regarding custom fields. which might be stored as JSON in extra_fields or in a #__k2_extra_fields (I suppose it stores field definitions, haven't used it in ages).

10 years ago
0
Level 2

thanks, I'll try and then return

10 years ago
0
Level 2

Webcastor, I created two fields of dynamic selection (state, city). I saved the form with free object. The fields were created and saved in the table k2_extra_fields, however, they do not appear in the table and not in the K2 item form.

175 Posts
webcastor
10 years ago
0
Level 1

You should do it the other way around - you have to map K2 columns as SEBLOD fields (storage should be Standard | Free (K2_items) | column name) and make a content type with Object: free

Get a Book for SEBLOD