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

Jetzt mitmachen!

Sie haben noch kein Benutzerkonto auf unserer Seite? Registrieren Sie sich kostenlos und nehmen Sie an unserer Community teil!