read data within a text field

giusebos

Member
I would like to read this information:
Code:
 {"robots":"index, follow","author":"calispera","rights":"xxx","xreference":"refesterna","metatitle":"titolo"}
these data are within the "_content" table within the "metadata" field of joomla.
is there a chance to read them, write them and edit them with fabrik?
 
With js:
JavaScript:
var jdata = {"robots":"index, follow","author":"calispera","rights":"xxx","xreference":"refesterna","metatitle":"titolo"};
var robots = jdata.robots;
var author = jdata.author;
var rights = jdata.rights;
var xreference = jdata.xreference;
var metatitle = jdata.metatitle;
console.log(robots);
console.log(author);
console.log(rights);
console.log(xreference);
console.log(metatitle);
 
something does not go, for example:
"author":"calispera"

calispera is different for each item ....
then also:
xxx
refesterna
titolo
 
if the fields are not filled I have this
Code:
{"robots":" ","author":" ","rights":" ","xreference":" ","metatitle":" "}
 
My example code work properly. Need to change and use for your needs. Your first question is part from big question.
Try to make your question as descriptive as possible in order to get a complete and correct answer.
 
We are in need of some funding.
More details.

Thank you.

Members online

Back
Top