on ‎2018 Feb 13 6:43 PM
Hi guys , Hybris has an area named by styleAttributes(String) and I want to put this area rel="nofollow" with impex. I tried to escape '=' but I didn't. Some of them ("rel=nofollow" , 'rel="nofollow" ' , rel =\" nofollow)
If you know anything about it pls help me. Thanks !!
Note: StyleAttributes accept rel and I can add this string on backoffice platform
Regards
Request clarification before answering.
You shouldn't need to escape anything to just insert rel="nofollow"
e.g. this should work
UPDATE CMSLinkComponent;code[unique=true];catalogVersion(catalog(id),version)[unique=true];styleAttributes
;mycomponent;mycatalog:Staged;rel="nofollow"
If you are wanting to surround with quotes (to include a delimiter char e.g. ;) then you should escape the quotes in the value by doubling them up. Talked about recently here:
https://answers.sap.com/questions/12767227/i-want-to-insert-a-semicolon-itself-a-value-for-on.html?c...
e.g.
UPDATE CMSLinkComponent;code[unique=true];catalogVersion(catalog(id),version)[unique=true];styleAttributes
;mycomponent;mycatalog:Staged;"rel=""nofollow"" style=""border: 1px solid lime; color: salmon;"""
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
INSERT_UPDATE CMSLinkComponent;catalogVersion(CatalogVersion.catalog(Catalog.id[default = idefixContentCatalog]), CatalogVersion.version[default = Staged])[default = idefixContentCatalog:Staged][unique = true];uid[unique = true];name;url;&linkRef;&componentRef;target(code)[default = 'sameWindow'];;category(code, catalogVersion(catalog(id[default = idefixProductCatalog]), version[default = 'Staged'])[unique = true, default = idefixProductCatalog:Staged]);product(code, catalogVersion(catalog(id[default = idefixProductCatalog]), version[default = 'Staged'])[unique = true, default = idefixProductCatalog:Staged]);styleAttributes ",8796093187132,,,column 10: could not resolve item for 'rel=\""nofollow""'| column 10: cannot resolve value ''rel=\""nofollow""'' for attribute 'product'";;LoginLink;LoginLink;/cagri;LoginLink;LoginLink;;;;"'rel=\""nofollow""'";
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 | |
| 1 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.