Field and Storage in Seblod 2.0
This is a general overview about storage in seblod 2.0. Mastering storage will benefit developer and 3rd party joomla component to take benefit in seblod
Field and Storage 101 - It all starts here
Storage is one of the heart of SEBLOD 2.0 Extension because it control:
1. Where the value of custom field will be stored. The possibilites are:
- In current core joomla table (for example in 'fulltext' field in #_content table)
- In additional field within core joomla table (yes, seblod can add new field in core table)
- Or In Independent Table
2. The format of the data in table field. Current possibilites as GA Version(Nov. 2011) are:
- Standard Format. Just as you type, most recommended data for simple storing.
- JSON Format. Save a value in a field table by using the JSON syntax.
- Custom Format. Similar to JSON Format. It using custom SEBLOD type of format, recommended to store multiple data on single table field. The format is ::[FIELDNAME]::[DATA]. It allow the compatibility with SEBLOD 1.x on Joomla 1.5 .
(This storage plugins included by default in SEBLOD 2.0 . in the future you can create your own storage format)
Please note that: introtext in Articles and description in categories should be set in custom format, because it stored integration element for seblod 2.x
Storing Format
Custom Format
The data will be stored in SEBLOD Custom Format:
::field_name::[VALUES]
Standard Format
The data will be stored in the way a field usually store a value
JSON Format
The data stored in JSON Format
The benefit is the same as using Custom Format PLUS if you parse the data with scripting technology such as PHP or Javascript it would be easier to parse since both have built-in function to parse JSON.
The benefit is the same as using Custom Format PLUS if you parse the data with scripting technology such as PHP or Javascript it would be easier to parse since both have built-in function to parse JSON.
Storing Values
Store value in core field of Joomla core table
This is most basic setting for a simple content type, just use Format: Standard , Location: Article, and Fill the field with current core field, and Seblod will store any value to the field.
Store value in additional field of joomla core table
This setting will make seblod create new field in core joomla table (#_content) and store the value in the created field
Store value in a field of independent table of joomla table
When you set a field that not exist in joomla core field, seblod will create a new independent table. This can be useful for developer if you like to create component, plugin, or module to display various ‘add-on’ data/field based on specific article id.
Independent table name can be different if the field is bind/exclusively attached to specific content type (marked with padlock icon), a different document will be created to explain this
Store it EVERYWHER… Sky is the limit !
Feel free to explore all the possibilities of seblod storage, but if you set the location to ‘FREE’, you’ll have the ability to store the value in ANY Table
Conclusion
You have learn the basic thing about storage in Seblod. For Designer, this might not impact your workflow much, but I believe many of joomla developer will benefit from this flexibility. Have question ? don’t post here or email me.. post in on forum as many of Seblod Expert (especially Octopoos Team) can gives you detail a whole lot more
Happy Storing
Related Links
Related Video
December 14, 2011
2861
December 13, 2011
Viktor Iwan
