Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • waleed4net Friend
    #191614

    Hi All,

    I’m using JA University and i have a module (Lof K2 slideshow), I’m trying to select Extra Field in the module, I’m using this code:
    echo $item->extra_fields;
    $_extrafields = array();
    foreach($item->extra_fields as $EF)
    {
    echo $_extrafields[$EF->id] = $EF->value;
    }
    echo $item->_extrafields[15];

    for the one line: echo $item->extra_fields;
    the values are display:

    [{“id”:”15″,”value”:”Tick: XXX children”}][{“id”:”15″,”value”:” A Mind Is A Terrible Thing To Waste”}][][{“id”:”15″,”value”:”XXX In Picture”}][{“id”:”15″,”value”:”Giving”}]

    But other lines no result appear!

    Please Help!

    Manos Moderator
    #509882

    Hi,

    I am not much of a coder so i can’t say anything about that, but did you try to contact the developer of your K2 slideshow ?

    Regards

    Manos

    waleed4net Friend
    #510257

    Thank You,
    I slolved it 🙂

    i added this lines:
    // EXTRA FILEDS //////////////////
    $JSON = $item->extra_fields;
    $obj = json_decode($JSON);
    $item->EF = $obj[0]->value;
    ////////////////////////////////

Viewing 3 posts - 1 through 3 (of 3 total)

This topic contains 3 replies, has 2 voices, and was last updated by  waleed4net 11 years ago.

We moved to new unified forum. Please post all new support queries in our New Forum