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

Page Level Variable

Avatar

Avatar
Validate 10
Level 2
aemd25900338
Level 2

Likes

10 likes

Total Posts

41 posts

Correct Reply

1 solution
Top badges earned
Validate 10
Validate 1
Boost 5
Boost 3
Boost 10
View profile

Avatar
Validate 10
Level 2
aemd25900338
Level 2

Likes

10 likes

Total Posts

41 posts

Correct Reply

1 solution
Top badges earned
Validate 10
Validate 1
Boost 5
Boost 3
Boost 10
View profile
aemd25900338
Level 2

15-12-2016

Is there a way to set a page level variable which can be used across components (By Content Authors or System Developers) in the page?

e.g. I have a query string parameter in the page URL (www.mysite.com/start.html?product=chair). I want to set the value 'chair' in some page level variable so that when content authors write the content they can use this variable in any component on the page using something like PAGE_VARIABLE[product]. Same variable can be used in system developers in their code as well.

Is there a way to solve this problem in AEM 6.2?

 

TIA

View Entire Topic

Avatar

Avatar
Validate 1
Level 1
Brumoon_Ahamat
Level 1

Likes

2 likes

Total Posts

14 posts

Correct Reply

1 solution
Top badges earned
Validate 1
Boost 1
Affirm 1
View profile

Avatar
Validate 1
Level 1
Brumoon_Ahamat
Level 1

Likes

2 likes

Total Posts

14 posts

Correct Reply

1 solution
Top badges earned
Validate 1
Boost 1
Affirm 1
View profile
Brumoon_Ahamat
Level 1

19-12-2016

Have you tried using design components? Site level values can be stored there, and editors / authors can update those values via the Design context. You can specify a template's designPath as the Global path (eg. home page template), and any design level updates to that design path can be used across any template by accessing the value via code.