Discussions
Categories
Groups
Community Home
Categories
INTERNAL ENABLEMENT
POPULAR
THRUST SERVICES & TOOLS
CLOUD EDITIONS
Quick Links
MY LINKS
HELPFUL TIPS
Back to website
Home
Web CMS (TeamSite)
Setting extended attribute of a .page file
tivinelvis
I have a requirement to set the extended attribute of a .page file. I have to set the publish date of a .page file as an extended attribute to it. The user will be entering the publish date which is one of the datum field. As soon as they enter/change the modified publish date should be set as an extended attribute to the page. Can anyone explain how to do this?
Find more posts tagged with
Comments
Rick Poulin
There is no supported way of doing what you ask, though your implementation is perhaps a little backwards.
If you captured the modified date in TagUI, it would already be an EA and then (assuming you are using LSCS) your component could query the same source for rendering on the page.
As you have it now, the only thing you could possibly do is set an iwat trigger that detects changes to *any files in all of teamsite* and when it matches the type of file you want, you could parse the .page XML, find the date, and update the EA. For this, you could use either Perl/CLT or Java/CSSDK, but it would be pretty nasty.
I strongly suggest capturing the date in the TagUI, but if you expand on why you need it as an EA, maybe there's other options as well.
Migrateduser
Hi,
As of now, the sitepublisher edit mode does not have any mechanism by which, you can set the EA of the page you are editing. As Rick pointed out, the TAG UI is your best bet.