croxton / Stash

Stash allows you to stash text and snippets of code for reuse throughout your templates.
GNU General Public License v3.0
197 stars 20 forks source link

Is it possible to replace items in a list? #120

Closed GDmac closed 10 years ago

GDmac commented 10 years ago

Hello Mark, regarding the 500 entries issue.

I'm contemplating a channel:entries tag to fetch only edit_date > last_update. This should probably only return changed entries for the channel, which i would like to replace in the stash-list.

(1) Is this possible? (2) How would i call stash:set_list from an add-on (and skip entries-parser alltogether)?

croxton commented 10 years ago

You'd probably be best doing that in PHP by manipulating the Stash list arrays. You can get and set Stash lists in your code using the API:

https://github.com/croxton/Stash/wiki/Using-stash-methods-in-your-own-add-ons

GDmac commented 10 years ago

:thumbsup: da :bomb: