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

Editable templates & design dialog in 6.4

Avatar

Avatar
Validate 10
Level 2
karansheel
Level 2

Likes

6 likes

Total Posts

39 posts

Correct Reply

0 solutions
Top badges earned
Validate 10
Validate 1
Boost 5
Boost 3
Boost 1
View profile

Avatar
Validate 10
Level 2
karansheel
Level 2

Likes

6 likes

Total Posts

39 posts

Correct Reply

0 solutions
Top badges earned
Validate 10
Validate 1
Boost 5
Boost 3
Boost 1
View profile
karansheel
Level 2

10-09-2018

For static templates, current design of a site stored at /etc/designs/<site>/jcr:content/<page-component>/<component-name> . But since from 6.4 deisgn view is no longer available & it has been replaced by policies. There is a scenario i want to achieve in Editable template.

My website is multiligual & multinational where i'm using a common template for all the locales. For example i have one content-page template & i have a logo component. As a part of authoring,  author needs to author  logo component in designmode & gives a path of home page. for example :- for US website path is /content/mysite/us/en/homepage & for FR path is /content/mysite/fr/en/homepage.

In 6.3  if i'm using static templates i can achieve this requirement simply opening the page in design mode and can do authoring via design dialog and it will get stored in

for US : /etc/designs/mysite/us/en/jcr:content/content-page/logo

for FR  /etc/designs/mysite/fr/en/jcr:content/content-page/logo

By this i'm using same template for all the locales .

If i want to do same thing in editable templates how can i achieve this. Since in editable templates we have policies. Can we add policies on the basis of a condition like if country is US then use this if FR use this ?

another way is to create a separate templtes for each locale. In that case if i have n number of locales i have to create each template n times.

I read many blogs where it's mentioned that experience fragments can be used for this. But how can we use experience fragments to fulfill this requirement.

Is this is limitations of Editable templates or there is any other way to do this . Please guide.

Thanks.

Replies

Avatar

Avatar
Coach
MVP
Arun_Patidar
MVP

Likes

1,346 likes

Total Posts

3,223 posts

Correct Reply

915 solutions
Top badges earned
Coach
Contributor 2
Ignite 10
Give Back 700
Boost 1000
View profile

Avatar
Coach
MVP
Arun_Patidar
MVP

Likes

1,346 likes

Total Posts

3,223 posts

Correct Reply

915 solutions
Top badges earned
Coach
Contributor 2
Ignite 10
Give Back 700
Boost 1000
View profile
Arun_Patidar
MVP

11-09-2018

Hi,

You can create design dialog like you used to create before and set value from template editor.

example components - /apps/core/wcm/components/list/v1/list

in Hero page template in we-retail

Screen Shot 2018-09-11 at 5.59.57 PM.png

if you want to achieve something based on path you can go for context aware configurations.

Apache Sling :: Apache Sling Context-Aware Configuration

Avatar

Avatar
Validate 10
Level 2
karansheel
Level 2

Likes

6 likes

Total Posts

39 posts

Correct Reply

0 solutions
Top badges earned
Validate 10
Validate 1
Boost 5
Boost 3
Boost 1
View profile

Avatar
Validate 10
Level 2
karansheel
Level 2

Likes

6 likes

Total Posts

39 posts

Correct Reply

0 solutions
Top badges earned
Validate 10
Validate 1
Boost 5
Boost 3
Boost 1
View profile
karansheel
Level 2

11-09-2018

Hey Arun, Thanks for your reply. But if i set any value here it will be same for all the pages created using this template. for example if  i provide a path of US website here and then if i create a page in FR using same template . it will redirect me to US page. correct me if i'm wrong.

Avatar

Avatar
Validate 1
Level 2
naveeng73207107
Level 2

Likes

7 likes

Total Posts

20 posts

Correct Reply

0 solutions
Top badges earned
Validate 1
Boost 5
Boost 3
Boost 1
Applaud 5
View profile

Avatar
Validate 1
Level 2
naveeng73207107
Level 2

Likes

7 likes

Total Posts

20 posts

Correct Reply

0 solutions
Top badges earned
Validate 1
Boost 5
Boost 3
Boost 1
Applaud 5
View profile
naveeng73207107
Level 2

31-01-2019

Hi Karansheel,

Did you find a solution to this issue? If yes, please share your finding here, I am also facing the same issue in my project. I am developing a project in AEM 6.4 and recommended to use Editable templates but my site MSM and how can I use XF for header & footer because links are not changed in XF so navigation links are not updating based on languages & locales.

Avatar

Avatar
Validate 1
Level 1
SB_PK
Level 1

Likes

2 likes

Total Posts

7 posts

Correct Reply

0 solutions
Top badges earned
Validate 1
Boost 1
View profile

Avatar
Validate 1
Level 1
SB_PK
Level 1

Likes

2 likes

Total Posts

7 posts

Correct Reply

0 solutions
Top badges earned
Validate 1
Boost 1
View profile
SB_PK
Level 1

11-07-2019

karansheel​ , arunpatidar26​, naveeng73207107​ I am also facing the same issue.. It will be helpful if you could please share your findings/solution here..

Avatar

Avatar
Validate 1
Level 2
naveeng73207107
Level 2

Likes

7 likes

Total Posts

20 posts

Correct Reply

0 solutions
Top badges earned
Validate 1
Boost 5
Boost 3
Boost 1
Applaud 5
View profile

Avatar
Validate 1
Level 2
naveeng73207107
Level 2

Likes

7 likes

Total Posts

20 posts

Correct Reply

0 solutions
Top badges earned
Validate 1
Boost 5
Boost 3
Boost 1
Applaud 5
View profile
naveeng73207107
Level 2

25-09-2019

Hi SB PK,

We converted header & footer to experience fragments and overlaid experience fragments component , so the path which we authored in XF, we convert that path based on currentPage locale. You need to have different language version of header & footer components.

Avatar

Avatar
Coach
MVP
Arun_Patidar
MVP

Likes

1,346 likes

Total Posts

3,223 posts

Correct Reply

915 solutions
Top badges earned
Coach
Contributor 2
Ignite 10
Give Back 700
Boost 1000
View profile

Avatar
Coach
MVP
Arun_Patidar
MVP

Likes

1,346 likes

Total Posts

3,223 posts

Correct Reply

915 solutions
Top badges earned
Coach
Contributor 2
Ignite 10
Give Back 700
Boost 1000
View profile
Arun_Patidar
MVP

26-09-2019

Hi,

Core Experience fragment Component could be the option,

aem-core-wcm-components/content/src/content/jcr_root/apps/core/wcm/components/experiencefragment/v1/...

This component is available in core components 2.6

This supports locale as well.

you need to create XF in locale folder to use convert automatically for languages.