내 커뮤니티 업적 표시줄을 확대합니다.

Submissions are now open for the 2026 Adobe Experience Maker Awards.

Mark Solution

활동이 없어 이 대화는 잠겼습니다. 새 게시물을 작성해 주세요.

해결됨

Auto delete/deactivate page

Avatar

Level 3

I'm working on enhancing an existing ecommerce page. The product is created using scaffolding, a page is created and the product is imported into the page. One of the product parameters is a sale date. The client wants the product and the page to be automatically deactivated and deleted when the sale date has passed. Is this possible? I've attached a screenshot of the product creation page

aem.png

1 채택된 해결책 개

Avatar

정확한 답변 작성자:
Community Advisor

jamesm77050123

      I think may be you can solve this issue by using a scheduler you can solve this issue. Run the scheduler every night and check for the product's sale date against current date and deactivate those which are expired. I am pasting few links from www below,

Apache Sling :: Scheduler Service (commons scheduler)

https://hashimkhan.in/aem-adobecq5-code-templates/scheduler/

Adobe Experience Manager Help | Scheduling Adobe Experience Manager Jobs using Apache Sling

원본 게시물의 솔루션 보기

4 답변 개

Avatar

Community Advisor

Dear James,

Deactivate later is OOTB functionality present in AEM.

Delete after deactivate is not OOTB and would require a customisation.

This customisation can be achieved using AEM Workflow system.

Regards,

Peter

Avatar

Employee

OOTB a page deletion on an AEM author also unpublishing the page. You can easily build your solution by using workflows:

Request for Deactivation - /etc/workflow/models/request_for_deactivation

Request for Deletion - /etc/workflow/models/request_for_deletion

Avatar

Level 10

As Peter and Leo point out - the solution here is using Workflows.

Avatar

정확한 답변 작성자:
Community Advisor

jamesm77050123

      I think may be you can solve this issue by using a scheduler you can solve this issue. Run the scheduler every night and check for the product's sale date against current date and deactivate those which are expired. I am pasting few links from www below,

Apache Sling :: Scheduler Service (commons scheduler)

https://hashimkhan.in/aem-adobecq5-code-templates/scheduler/

Adobe Experience Manager Help | Scheduling Adobe Experience Manager Jobs using Apache Sling