-
- 118 Posts
Something along the lines of this?
[[~[[+resource_id:default=`[[*resource_id]]`]]?...
Untested and badly formatted I'm using a phone but you get the idea with the default output modifier.
-
- 24,544 Posts
Why not just have two separate chunks? Otherwise, you're going to slow down page loads just to avoid having one more small chunk.
-
- 24,544 Posts
It's kind of a funky solution, but you could use two chunks with similar names and use a plugin connected to OnChunkFormSave that saved the alternate chunk after converting the asterisk to a + with str_replace().
Another option might be to use a + sign in the chunk, and a plugin attached to OnWebPagePrerender that converted it to an asterisk with str_replace() only if the catalog page was being rendered.
It seems like there should be an easier solution, but I can't think of one.
-
- 5,888 Posts
In your product-template, you could use a getResources-call and get only that one resource
or
you could try to use renderResources to get the list