Welcome close

We've made some changes!

As you may have noticed, we've made some changes to the DevCenter to include the new Exchange site, a code community for Ektron developers. You may use the same username and password to login for both the Exchange and DevCenter. Your DevCenter profile has moved over to the Exchange site. You also may notice we have removed some profile functionality in favor of new functionality, including Activity Streams. We welcome your feedback about the site on the Exchange forum.

SEARCH : searchSite
This SectionSite Wide
esync 

RSS Feed Print Category View
Want to get the ID of most recently created content in a given folder
Joanne @ BCTF
Posted: Friday, January 22, 2010 3:59 PM
Joined: 2/1/2007
Posts: 3


I'm using a listsummary control to get and display the most recently created content of a folder to display "current issues" for several publications on their main page.

 

I'm wondering if there's a way to get the content ID from the control or if there's another way to obtain the ID of most recently created content in a given folder. The listsummary control is set as follows:

 

 <CMS:ListSummary ID="ListSummary2" runat="server" ContentParameter="id" Direction="Descending" FolderID="6792" GetHtml="true" OrderKey="DateCreated" MaxResults="1" Visible="false" />

We're using version 7.5.1.40.


eGandalf
Posted: Friday, January 22, 2010 4:12 PM
Joined: 9/13/2006
Posts: 2367


Hey Joanne,

It's certainly possible.

C#:

long id = ListSummary2.EkItems[0].Id;

VB:

Dim id As Long = ListSummary2.EkItems(0).Id;




http://www.ektron.com/services/


Joanne @ BCTF
Posted: Friday, January 22, 2010 5:31 PM
Joined: 2/1/2007
Posts: 3


Thanks for the quick reply. You rock!
 

Jump to different Forum... 






Register for Synergy 2010

Articles
Design without Borders, yet with Structure
CMS400.NET and Adobe Flex
GeoMapping
EkML Ektron Markup Language
Taxonomy

[First] [Previous] [Next] [Last]


See All Articles