Plugin Author
berkux
(@berkux)
Hi,
depending on what Text is in the JSON you might try one of the following:
“{street}”: Default-display of a datafield. If HTML is in the datafield-text, the HTML-tags are converted. E.g. “<” is converted to “<” etc.
“{street:html}”: If HTML is in the datafield any you want to display this as HTML the “:html” reconverts the html-converted text back to html.
“{street:htmlAndLinefeed2htmlLinefeed}”: Same as “{street:html}” plus “\n”-Linefeeds are converted to HTML-Linebreaks
“{street:purejsondata}”: In some cases the reconversion of the htmlalized datafield-text is not optimal. This is useful if the datafield-text HTML-Code is not fully htmlalized. E.g. Tags and specialchars (which should be HTML-Code, but are not) are in the datafield-text. “:purejsondata” gives access to the pure datafield-text without any manipulation.`
Bernhard
Hi,
Thank for you answer.
Where I should write {street} in template text ? have you got an example of use ?
Plugin Author
berkux
(@berkux)
Hi,
that depends on the JSON you have.
Can you post and URL with the JSON?
Bernhard
Plugin Author
berkux
(@berkux)
try this:
[jsoncontentimporter url=https://gooformation2.hop3team.com/formations/devenir-un-manager.json basenode=training]
{goals:html}{description:html}
[/jsoncontentimporter]
It is working thank you. It will be same if I will use JCI pro ?
[jsoncontentimporterpro url=https://gooformation2.hop3team.com/formations/devenir-un-manager.json basenode=training]
{goals:html}{description:html}
[/jsoncontentimporterpro]
-
This reply was modified 4 years, 9 months ago by
beucherm.
https://gooformation2.hop3team.com/formations/devenir-un-manager.json
on this json. how I can do to get only a value statistic or statistic success display with good html:
“statistic”: 100.0,
“statistic_success”: 100.0,
what is the difference with pro ?
possible to have an answer please ? it will be really helpful
Plugin Author
berkux
(@berkux)
Hi,
try
[jsoncontentimporter url=https://gooformation2.hop3team.com/formations/devenir-un-manager.json basenode=training]
{goals:html}{description:html}
statistic: {statistic}, statistic: {statistic_success}
[/jsoncontentimporter]
Questions on the pro plugin not here, please.
Only at
https://jsoncontentimporter.freshdesk.com/widgets/feedback_widget/new?searchArea=no
Bernhard
Thank you so much for your help.
Last question . What is the short code to get this information ( level is different )
https://gooformation2.hop3team.com/formations/devenir-un-manager.json
“name”: “Demandeur d’emploi”
it is already use at a different level if you check the JSON file. I don’t know how to do
possible to have a last help ?
Plugin Author
berkux
(@berkux)
Try
[jsoncontentimporter url=https://gooformation2.hop3team.com/formations/devenir-un-manager.json]
{subloop:training:-1}
training.name: {training.name}
{/subloop:training}
[/jsoncontentimporter]
it is working. but I don’t understand the logic.
If I would like to display :
“description”: “CHAPITRE 1 : Fixer un objectif et mobiliser ses équipes pour l’atteindre.\nCHAPITRE 2 : Communiquer efficacement auprès de ses équipes.\nCHAPITRE 3 : Mener des entretiens individuels motivants.\nCHAPITRE 4 : Animer une réunion de travail.\nCHAPITRE 5 :Développer la culture du feedback et savoir recadrer positivement.\nCHAPITRE 6 : Accompagner le changement.\nCHAPITRE 7 : Anticiper les conflits et se positionner en médiateur.\nCHAPITRE 8 : R
code should be
[jsoncontentimporter url=https://gooformation2.hop3team.com/formations/devenir-un-manager.json] {subloop:training:-3} {training.description} {/subloop:training} [/jsoncontentimporter]
Where is my mistake ?