Expand my Community achievements bar.

SOLVED

Is it possible to specify on and off time tags

Avatar

Level 4

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,

1 Accepted Solution

Avatar

Correct answer by
Employee

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%20Activ...)

View solution in original post

4 Replies

Avatar

Level 10

can you give more details on your use case

Avatar

Level 4

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

Avatar

Level 10

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

Avatar

Correct answer by
Employee

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%20Activ...)