Hi All
Is it possible to specify on and off time for tags in AEM.Is there any workaround available to achieve this requirement
Thanks,
Solved! Go to Solution.
Views
Replies
Total Likes
The on/off feature is only available for Pages, not tags. So looks like you would need a custom solution.
On publish, you could create a config node that has tag and activation date, check this before displaying/rendering the tag?
In order to check whether the tab should be displayed, this component would have to be dynamic, do you really want to be generating this per request? An alternative would be to write a scheduled Job that checks the config node on author and deactivates them when they have expired, it could also then flush the old page. This way the cached page is cleared, meaning you don't need a dynamic page any longer.
Views
Replies
Total Likes
can you give more details on your use case
Views
Replies
Total Likes
For example I have a set of countries as Tag.Am iterating these tags and displaying in homepage as Tabs.I don't want Africa to be displayed after a particular time.To achieve this whether its possible to set On/Off time for tags as OOTB feature.
Country
India
America
Africa
Views
Replies
Total Likes
Looking to the documentation of tag management [1], I dont see any OOTB is provided by AEM, Probably you can :-
1.Customized "Create Tag" dialog for this feature.
[OR]
2. Create a separate service + a authorable dialog where on/off time can be set.
[1] https://docs.adobe.com/docs/en/cq/5-6-1/wcm/tag_admin.html
Views
Replies
Total Likes
The on/off feature is only available for Pages, not tags. So looks like you would need a custom solution.
On publish, you could create a config node that has tag and activation date, check this before displaying/rendering the tag?
In order to check whether the tab should be displayed, this component would have to be dynamic, do you really want to be generating this per request? An alternative would be to write a scheduled Job that checks the config node on author and deactivates them when they have expired, it could also then flush the old page. This way the cached page is cleared, meaning you don't need a dynamic page any longer.
Views
Replies
Total Likes
Views
Likes
Replies