Rendering SQL types(inline edit/admin panel edit/create)
Hello David.
I need to make multi language content for the blog/news. Currently when you specify SQL type "text" or "varchar" the fuel cms inline edit/admin panel edit will render it as text area with edit tools( short cuts for some html tags ex h3,h2,img). I want to make tabs if the content is multi language.
The solution I see is to make sql column name for example :content_eng and content_da and make the backend logic to render them as tabs(by inserting some js and html) if content_(something) is detected and it is not single.
I need to find the file which is responsible for the rendering( to give a hint, when you specify the" image" column name it will render the html as "upload" input, I think I need to find this file)
Could you please give me some suggestions on how it is better to do?
Best regards, Arthur
Comments
As an FYI, the 1.0 branch has some features to help with multiple languages as well as creating tabs using the form_builder syntax. Most of it is centered around the pages module but may be worth checking out:
https://github.com/daylightstudio/FUEL-CMS/tree/1.0
$fields[$key]['type'] => 'file'
I could make everything using JS, but that's very dirty way. What do you think?