Is it possible to specify on and off time tags | Community
Skip to main content
Level 3
October 16, 2015
Solved

Is it possible to specify on and off time tags

  • October 16, 2015
  • 4 replies
  • 1304 views

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,

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
Best answer by ogill

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.

[1]https://docs.adobe.com/docs/en/aem/6-0/author/page-authoring/publishing-pages.html#Scheduled%20Activation/Deactivation%20(On/Off%20Time)

4 replies

Lokesh_Shivalingaiah
Level 10
October 16, 2015

can you give more details on your use case

Level 3
October 16, 2015

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

edubey
Level 10
October 16, 2015

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

ogillAdobe EmployeeAccepted solution
Adobe Employee
October 16, 2015

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.

[1]https://docs.adobe.com/docs/en/aem/6-0/author/page-authoring/publishing-pages.html#Scheduled%20Activation/Deactivation%20(On/Off%20Time)