-
Notifications
You must be signed in to change notification settings - Fork 206
Chunk with parameters drops placeholders defined before chunk #874
Comments
Ok I can recreate that issue and will look into it. |
If I change @yama Is this a fix or does it break other functionality? |
@pmfx As stated in Slack I checked myself again and also with yama. It seems this issue is solved, I cannot recreate it using the same test-case as 1 month ago. |
I can not understand this part well. "value is visible"? |
@pmfx Please correct me if I am wrong. My test-case for this issue: Chunk "chunkph":
in chunk: [+chunk_placeholder+] Snippet "setPlaceholder":$modx->setPlaceholder($placeholder, $content); Content of my test-resource:[[setPlaceholder?&placeholder=`before_chunk_placeholder` &content=`this is content for ph before_chunk_placeholder`]] chunk_placeholder is parsed, before_chunk_placeholder is NOT chunkph - before_chunk_placeholder is parsed |
It is not linked with setPlaceholder. I will improve it later. |
Just tested it and works great now. Thanks! Closing. |
Have issue with #625
Placeholders defined before chunk are missing inside this chunk when it have a parameter.
When I call chunk {{chunktest}}, [+before_chunk_placeholder+] inside chunk is OK and value is visible.
When I call chunk {{chunktest?&chunk_placeholder='Im chunk placeholder'}}, [+before_chunk_placeholder+] inside chunk is empty.
The text was updated successfully, but these errors were encountered: