on 2022 Jul 07 4:03 PM
Unable to escape semicolon if I am trying to putting this value in macro and use it later on.
$contentBeverages = "aaa;bbb"
INSERT_UPDATE CMSParagraphComponent;$contentCV[unique=true];uid[unique=true];name;content[lang=en]
;;CLPTileBanner_duo101;CLP Tile Banner Coffeemakers Content;$contentBeverages
After running this impex, Paragraph component only contains "aaa in the content attribute .Double quotes are also considered as value.
Note: If I directly put "aaa;bbb" in content attribute it works fine. We need this as we need to put same large content in multiple component. Below works fine.
INSERT_UPDATE CMSParagraphComponent;$contentCV[unique=true];uid[unique=true];name;content[lang=en]
;;CLPTileBanner_duo101;CLP Tile Banner Coffeemakers Content;"aaa;bbb"
Request clarification before answering.
Try this, put quote character at the beginning of the macro.
"$contentBeverages=aaa;bbb"
INSERT_UPDATE CMSParagraphComponent;$contentCV[unique=true];uid[unique=true];name;content[lang=en]
;;CLPTileBanner_duo101;CLP Tile Banner Coffeemakers Content;$contentBeverages
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
| User | Count |
|---|---|
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.