Viewing 2 replies - 1 through 2 (of 2 total)
  • Thread Starter fndpena

    (@fndpena)

    Someone?
    I really wish someone could help me with this… Seems simples but I don’t know much about json. I can get the main tags just fine with the standard code {datafield}. I’ve tried the “subloop” and “subloop-array” stuff but I don’t think I’m doing it right…

    Plugin Author berkux

    (@berkux)

    Hi fndpena,

    the free-version can display all or the first n items

    try:
    [jsoncontentimporter url=”https://telessaude.ifes.edu.br/salus/api/v1/estatisticas/visao_geral/?format=json”%5D

    • {id} <b>{total_requisicoes}</b> {total_especialistas}

    {subloop-array:total_mensal:-1}{total_mensal.month}: {total_mensal.total}
    {/subloop-array}
    [/jsoncontentimporter]

    {subloop-array:total_mensal:-1} means show all, replace -1 by 1 and you’ll get the first one.

    Selecting a specific value can be done with the pro-version and twig.

    Bernhard

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘Different value depending on date’ is closed to new replies.