How do I access and change a nested plugin variable?

  • How would I change <image url> in the code below.

    Something like this, but this doesn't work

    Code
    set(plugin[gallery:thumbstrip].image[0].url, newurl.jpg);

    See actual working plugin code here.

  • give each xml tag a name attribute to access its values
    plugin[gallery].thumbstrip[missingname].color
    plugin[gallery].thumbstrip[missingname].item[missingname].image[missingname].url

    or use index numbers


    plugin[gallery].thumbstrip[0].color
    plugin[gallery].thumbstrip[0].item[1].image[0].url

Participate now!

Don’t have an account yet? Register yourself now and be a part of our community!