cancel
Showing results for 
Search instead for 
Did you mean: 

Has anyone been successful in getting lifetime to work in WPC for NW 7.3?

andjelka_radjen
Participant
0 Kudos


Hello, I've been trying to figure out a way to get lifetime (content expiration) to work in WPC NW 7.3.   When I click on details in any of the WPC templates there is no option to select lifetime.  If anyone has figured this out can you please post how you were able to get this working.  Thanks!

Accepted Solutions (1)

Accepted Solutions (1)

andjelka_radjen
Participant
0 Kudos

Thanks for your quick response. 

Answers (2)

Answers (2)

rohit_singhal
Active Contributor
0 Kudos

Hi Andjelka,

You cannot configure lifetime for a content in WPC.

However, by performing some customizations/configurations, it can definitely be controlled.

Basic example:

1. Create a custom form, add a property valid until in the properties of the form as:

     <property id="validuntil" description="xml.clbl.validuntil" type="dateinput" isrequired="true"/>

2. Create a corresponding custom XSL for the form, in which you read the value of valid until property, and if the value is less than the current date, then you don't display the content.

In this way you can have a psuedo-lifetime (content is there on the page, just not displayed).

Do let me know in case you need any further details.

Best Regards,

Rohit Singhal

andjelka_radjen
Participant
0 Kudos

Hi Rohit

Is it possible for you to provide the xsl code snippet as well?  I am new to the form creation and I could use any help you can provide.  Thanks!

tanushsingh_parihar
Contributor
0 Kudos

Hi Andjelka,

It is not possible to configure lifetime for WPC content.