I have a downloadable file in my site that is regularly updated.
In the body of the page that offers the download I manually go in and put the date of the updateded file.
Is there a way to have that automatically done via a keyword replacement?
Thanks
[quote]I have a downloadable file in my site that is regularly updated.
In the body of the page that offers the download I manually go in and put the date of the updateded file.
Is there a way to have that automatically done via a keyword replacement?
Thanks[/quote]
Sure, you can use the last updated keywords. There are a few to choose from.
You can use keywords like %asset_updated_short% .
But, the most valuable keywords are using PHP date formats. So, if you want to print the year that the file was updated, use %asset_updated_Y%, this will print the year it was updated. Check out the php website for all the date formats that you can use to print the updated keywords (and created keyword and published).
[quote]Sure, you can use the last updated keywords. There are a few to choose from.
You can use keywords like %asset_updated_short% .[/quote]
Yes, I've seen the list of keywords. But am unclear how to use it.
At the moment my bodycopy is:
CLICK HERE to download your copy (updated 11 February 2009).
I imagine it will be:
CLICK HERE to download your copy (updated %asset_created_readabledate%).
But it needs to reference an asset number …
Normally, you'd have to use an Asset Listing to list the asset, which would then give you access to it's keywords. More recent versions of Matrix include "global" keywords which might give you access to what you need.
Try:
%globals_asset_attribute_created_readabledate:XXXX%
%globals_asset_created_readabledate:XXXX%where XXXX is the asset id of the report.
If your assetid is 123, use: %globals_asset_updated_readabledate:123%
And keep updating the same asset with the new content.
[quote]If your assetid is 123, use: %globals_asset_updated_readabledate:123%
And keep updating the same asset with the new content.[/quote]
Thanks Nic, Daniel, Greg.