cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Can not import cmslinkComponents styleAttributes rel="nofollow" with impex

Former Member
0 Likes
463

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

Accepted Solutions (1)

Accepted Solutions (1)

andyfletcher
Active Contributor
0 Likes

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;"""

Answers (1)

Answers (1)

Former Member
0 Likes

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""'";