10 years ago
1
Topic

Hello,

Not lucky with my first question on the forum, but maybe get luckier with this simple (for you) one :D

So I won't talk about my title field which stayed always empty if I used Standard Article Title, then I used the existing article_title instead to make it work.

But I'm going to talk about the storage in general. If I use for my field "writer" :
1) a standard storage or a custom or a json whats are the pro and cons.
2) for a standard storage, if i use article or free whats going to happen..?

I'm really lost.. A simple link or a few words or whatever and I will be eternally grateful to you !
Thanks in advance



Get a Book for SEBLOD
154 Posts
WebOne
10 years ago
0
Level 1

1) Standard - if you're going to store a single value, this will be stored in the table #___yourcontenttypetable and field eg. writer for that content type. The preferred option for many apps.
Custom - generally if you have multiple values stored for one field (will be stored in custom Seblod format - may be difficult to retrieve later using standard external php database requests for tables etc, allows for compatibility with earlier Seblod versions I understand, and also is used by FieldX storage)
JSON - a method of storing data in a table, that I think is better used with some AJAX applications. PHP has a JSON storage retrieval method built-in. I've seen some example recommending its use with a custom tags storage etc.  Rule of thumb - if you know what JSON is and why you want to use it, then use it.

2) You want to try to use standard article storage mostly. If you have more advanced applications where you have setup other database tables and want to work with those. Maybe you plan on using two or three tables for your application with some database joins, then you will be using FREE.  You can also use free when you want to make a normal field with standard storage and then maybe make a "dummy" (second) field which points to that same storage area. This can help if you want to make a cascading dropdown list (for example). Or create search options etc.




Get a VIP membership