This should not be necessary. If you are setting a date to unpublish the news item it should be unpublished at that point and therefore will not appear in your list.
Sorry I didn't realise that this was a bug in 4.7.0 I have just tested in a 4.7.2 installation and the remove at date seems to be working fine in that version. Obviously if you can't upgrade for any reason then this is no help to you but if you can I would suggest you just upgrade your installation to fix the bug.
Get Remove At date
Hello I am trying to create some news section and therefore its necessary to get the Remove at date of the News item.
The razor cheat sheet just mention CreateDate and UpdateDate
I tried ExpireDate but this does not work
I am using umbraco 4.7.0
Item.CreateDate does work but i am not able to get the Remove date :-)
Once i am able to get this remove date can i just ask if datetime > RemoveDate - If yes hide it?
Hi Dominik,
This should not be necessary. If you are setting a date to unpublish the news item it should be unpublished at that point and therefore will not appear in your list.
Thanks
I tried it by setting it one year in the past but item is still shown.
Remove At date does not work
Hi Dominik,
You can get the Remove At or Expire Date working by using uComponents and XSLT.
<xsl:value-of select="umbraco.library:FormatDateTime(ucomponents.nodes:GetExpireDate(@id), 'dd MMM yyy')"/>
//fuji
yes but how can i get it in razor? I am switching from xslt to razor
THanks
Hi Dominik,
Sorry I didn't realise that this was a bug in 4.7.0 I have just tested in a 4.7.2 installation and the remove at date seems to be working fine in that version. Obviously if you can't upgrade for any reason then this is no help to you but if you can I would suggest you just upgrade your installation to fix the bug.
cheers
I am not able to update to a newer version at the moment.
I think remove at and publish at are not working for any page i create
is working on a reply...