Your achievements

Level 1

0% to

Level 2

Tip /
Sign in

Sign in to Community

to gain points, level up, and earn exciting badges like the new
BedrockMission!

Learn More

View all

Sign in to view all badges

Link Rewriter Transfrmer - Not processing VML tags

Avatar

Avatar
Establish
MVP
Veena_Vikram
MVP

Likes

471 likes

Total Posts

1,039 posts

Correct Reply

121 solutions
Top badges earned
Establish
Coach
Contributor 2
Seeker
Ignite 5
View profile

Avatar
Establish
MVP
Veena_Vikram
MVP

Likes

471 likes

Total Posts

1,039 posts

Correct Reply

121 solutions
Top badges earned
Establish
Coach
Contributor 2
Seeker
Ignite 5
View profile
Veena_Vikram
MVP

29-04-2020

Hi 

   I am working on a component in which I have some VML tags like below . 

 

<!--[if mso]>
<v:roundrect xmlns:v="urn:schemas-microsoft-com:vml" xmlns:w="urn:schemas-microsoft-com:office:word" href="/content/wknd/en/sports/la-skateparks" style="height:36px;v-text-anchor:middle;width:150px;" arcsize="5%" strokecolor="#EB7035" fillcolor="#EB7035">
<w:anchorlock/>
<center style="color:#ffffff;font-family:Helvetica, Arial,sans-serif;font-size:16px;">I am a button &rarr;</center>
</v:roundrect>
<![endif]-->

I want to rewrite the href="/content/wknd/en/sports/la-skateparks" value to lets say something like href="https://abc.com/sports/la-skateparks" . I have class which implements TransformerFactory for this ( something like this ) , but it is taking all the HTML tags we refer . Since the above tag is a VML based tag and not an HTML tag, even when I give the same, it is not picking up the href from this tag. Do any one have an idea on how to get this work in AEM ? May be I am missing something here. 

 

View Entire Topic

Avatar

Avatar
Seeker
MVP
Suraj_Kamdi
MVP

Likes

146 likes

Total Posts

157 posts

Correct Reply

41 solutions
Top badges earned
Seeker
Bedrock
Engage 1
Springboard
Validate 1
View profile

Avatar
Seeker
MVP
Suraj_Kamdi
MVP

Likes

146 likes

Total Posts

157 posts

Correct Reply

41 solutions
Top badges earned
Seeker
Bedrock
Engage 1
Springboard
Validate 1
View profile
Suraj_Kamdi
MVP

29-04-2020

@Veena_Vikram 

Please update those tag in includeTags="[A,IMG,SCRIPT,LINK]" configuration file first

Config file path = > /apps/project-name/config/rewriter/default

 

 

<?xml version="1.0" encoding="UTF-8"?>
<jcr:root xmlns:jcr="http://www.jcp.org/jcr/1.0" xmlns:nt="http://www.jcp.org/jcr/nt/1.0"
    jcr:primaryType="nt:unstructured"
    contentTypes="[text/html]"
    enabled="{Boolean}true"
    paths="[/content/project-name]"
    generatorType="htmlparser"
    order="1"
    serializerType="htmlwriter"
    transformerTypes="[linkchecker,versioned-clientlibs,project-name-url-rewriter]">
    <generator-htmlparser
        jcr:primaryType="nt:unstructured"
        includeTags="[A,IMG,SCRIPT,LINK]"/>
</jcr:root>

 

 

 

I hope this will help.

Thanks & Regard,

Suraj Kamdi