Nivel 1
Nivel 2
Iniciar sesión en la comunidad
Iniciar sesión para ver todas las insignias
Hi Everyone,
I have a requirement to temporary disable off Time from page properties.
If anyone has any idea it will be helpful.
Thanks in Advance
¡Resuelto! Ir a solución.
Vistas
Respuestas
Total de me gusta
ok, thanks for clarifying. But as far as I know it is part of sling resolution process itself. https://experienceleaguecommunities.adobe.com/t5/adobe-experience-manager/need-some-explanation-on-h... So, there will not be any easy way to disable it. On the other hand, a simple script to remove the offTime property from the pages would be rather easy and straightforward for your use case.
Vistas
Respuestas
Total de me gusta
I will assume you have your own page resourceType defined already, you can easily hide the offtime in your page's dialog. You can overlay this /libs/wcm/foundation/components/basicpage/v1/basicpage/tabs/basic/items/column/items/onofftime if it is not there in your page's dialog and change it as per your requirements.
Vistas
Respuestas
Total de me gusta
I have overlayed page ....but already many pages are created with offTime authored.. that pages are expiring.. so want to disable functionality. Is there any way to disable it?
Vistas
Respuestas
Total de me gusta
ok, thanks for clarifying. But as far as I know it is part of sling resolution process itself. https://experienceleaguecommunities.adobe.com/t5/adobe-experience-manager/need-some-explanation-on-h... So, there will not be any easy way to disable it. On the other hand, a simple script to remove the offTime property from the pages would be rather easy and straightforward for your use case.
Vistas
Respuestas
Total de me gusta
Hi @lone_Ranger ,
If page properties are already authored with off time means they are having off time value in page jcr:content. So disabling from page properties won't help.
I think some query need to be trigger to update/remove jcr:content value.
Also on-off time is bulk editable from console itself check if this helps https://experienceleague.adobe.com/en/docs/experience-manager-65/content/sites/authoring/authoring/e...
Different ways of bulk edit discussed here :- https://experienceleaguecommunities.adobe.com/t5/adobe-experience-manager/update-aem-page-properties...
https://www.youtube.com/watch?v=lCkoi4gGXg8
Thanks,
Vistas
Respuestas
Total de me gusta
Hi @lone_Ranger
you can try switching off below setting in the Replication Agent
On-/Offtime reached
This triggers automatic replication (to activate or deactivate a page as appropriate) when the ontimes or offtimes defined for a page occur. This is primarily used for Dispatcher Flush agents.
Example of replication setting page
Not sure if this can help or not since this is a global setting in the replication agent.
Otherwise you can write a simple groovy scrip to query page with offtime properties and remove it
Vistas
Respuestas
Total de me gusta
Can we do same in Cloud?
Vistas
Respuestas
Total de me gusta
Hi @lone_Ranger
I have not tried this in cloud but you try in local/dev to check if this works or not?
Vistas
Respuestas
Total de me gusta
You can write an script to find out all the offtime and remove them. Also override page component dialog to remove (hideResource) the offtime from the page properties.
Vistas
Respuestas
Total de me gusta
@lone_Ranger Did you find the suggestion helpful? Please let us know if you require more information. Otherwise, please mark the answer as correct for posterity. If you've discovered a solution yourself, we would appreciate it if you could share it with the community. Thank you!
Vistas
Respuestas
Total de me gusta
Vistas
me gusta
Respuestas
Vistas
me gusta
Respuestas
Vistas
me gusta
Respuestas