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)
Component to fetch data from 10 most recently modified dcrs
sheetalpolaris
Hi,
I need to develop a livesite component which will fetch data from 10 most recently modified dcrs of a particular content type in teamsite.
Can anyone please help me with this?
Find more posts tagged with
Comments
Rick Poulin
Nobody's going to write your code for you, especially not for free.
If you're asking for a recommended approach, specify your comfort level with Java and the Interwoven platform such that we may speak the same language.
If you're asking for code, start writing something yourself and wait 'til you hit a wall before asking for help, at which point you should be sure to specify your product versions, share what code you have so far, and clearly state the question.
sheetalpolaris
Hi,
Yes I am writing an external java class for the same. I am writing an external java class which will take the directory path as input and will read the dcr xml files in that path.
Just wanted to know if this is the correct approach.
Rick Poulin
Just wanted to know if this is the correct approach.
Pretty much, yes. Just make sure to go through the context.getFileDal() to do your directory and file reading, so that it works on both the authoring and runtime sides.
Bowker
If you have LSCS available to you then this should be a pretty simple task. I posted something about a year ago (time flies, maybe longer) with a non-java, XSL only solution to get content from LSCS.
I'm assuming you are looking for something like "get me the 10 most recent press releases." We do that ALL THE TIME and use LSCS to accomplish this. No Java required.
Good Luck