• Resolved sflood

    (@sflood)


    Hello — Great plugin! It has been so helpful for me for my current project. Here is my issue:

    I have successfully displayed data with basenode “PL” and subloop “CA” but am having issues displaying any data from subloop “SA”..

    My data url: http://data.nba.com/data/v2015/json/mobile_teams/nba/2015/players/playercard_708_02.json

    Subloop “SA” is data from basketball player “Season Average” so it is broken into different sections with the “val” representing the basketball year (1995-1996 for example).

    I’ve tried so many things and can’t get and “SA” data to show up.. any ideas?

    Some players have played 15 seasons, some have only played 1.. I only need the MOST RECENT season, so season val: “15-16”.

    Awesome work, and I hope you can help out. I will donate if you have a fix for me!

    https://ww.wp.xz.cn/plugins/json-content-importer/

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Author berkux

    (@berkux)

    Try
    {subloop:ca:-1}{gp} {pts}
    {subloop-array:ca.sa:-1}{ca.sa.val}, {ca.sa.ta}: {ca.sa.tpp}
    {/subloop-array:ca.sa}{/subloop:ca}<hr>
    with basenode “pl”

    Thread Starter sflood

    (@sflood)

    Awesome! That did it. Thank you for the really fast response time. I have donated to your paypal because you’re awesome.

    The second part of my above question: any idea how I can display the LAST “SA” entry? For example in the data url I provided there are 20 different Seasons dating back to 1995-1996. Anyway to just display the most recent (in this case “15-16”) season data?

    If not, I will make due with the solution you provided me.

    Thanks again.

    – Sam

    Thread Starter sflood

    (@sflood)

    We’re good! I’ve got everything working perfectly. Thanks again for your help.

    Plugin Author berkux

    (@berkux)

    you’re welcome!
    Thanks for donating!

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

The topic ‘Subloop (or maybe) Subloop-Array Issue’ is closed to new replies.