I've been a Jumi user for awhile now. It makes adding custom php scripts a snap in Joomla.
You used to be able to make fairly simple arrays inside your Joomla content. They recently updated Jumi though so the old method of making arrays doesn't work anymore
An example of the old Jumi method for adding an array to your Joomla content for your custom php script to use.
{jumi [modules/mod_jumi/jumi_instrument.php]
0. Model [25th Anniversary]
1. Size [12" wide, 1" thick, 37" long]
2. Weight [7 lbs, 0 oz]
3. Body Wood [Chambered basswood]
}
Basically the old plugin recognized the first set of square brackets was your custom php script and then the remaining sets of square bracketed items become your array for your php script.
The new Jumi has changed the method for creating arrays. It's not a whole lot different but different enough it will confuse my non-technically inclined content maintainers.
I've never really liked the way I had to create those arrays anyways. If one of my content maintainers accidentally delete a opening or closing square bracket then it would mess things up.
K2 seems to be a perfect solution for entering the data.
I really want to use K2 and the extra fields to store the data. I noticed if I create the extra fields in K2 then it gets stored in a field in the db.
[{"id":"1","value":"25th Anniversary"},{"id":"2","value":"12\" wide, 1\" thick, 37\" long"},{"id":"3","value":"7 lbs, 0 oz"},{"id":"4","value":"Chambered basswood"}]
Is there a simple pre built K2 method or K2 function I can call to clean that up and parse or explode that into a php array?
I could take the time to write my own but If there is something simple using already written K2 code that would be awesome!
You used to be able to make fairly simple arrays inside your Joomla content. They recently updated Jumi though so the old method of making arrays doesn't work anymore
An example of the old Jumi method for adding an array to your Joomla content for your custom php script to use.
{jumi [modules/mod_jumi/jumi_instrument.php]
0. Model [25th Anniversary]
1. Size [12" wide, 1" thick, 37" long]
2. Weight [7 lbs, 0 oz]
3. Body Wood [Chambered basswood]
}
Basically the old plugin recognized the first set of square brackets was your custom php script and then the remaining sets of square bracketed items become your array for your php script.
The new Jumi has changed the method for creating arrays. It's not a whole lot different but different enough it will confuse my non-technically inclined content maintainers.
I've never really liked the way I had to create those arrays anyways. If one of my content maintainers accidentally delete a opening or closing square bracket then it would mess things up.
K2 seems to be a perfect solution for entering the data.
I really want to use K2 and the extra fields to store the data. I noticed if I create the extra fields in K2 then it gets stored in a field in the db.
[{"id":"1","value":"25th Anniversary"},{"id":"2","value":"12\" wide, 1\" thick, 37\" long"},{"id":"3","value":"7 lbs, 0 oz"},{"id":"4","value":"Chambered basswood"}]
Is there a simple pre built K2 method or K2 function I can call to clean that up and parse or explode that into a php array?
I could take the time to write my own but If there is something simple using already written K2 code that would be awesome!