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
Version 8 

RSS Feed Print Category View
Formatting Metadata with xsl
Lauren
Posted: Saturday, January 23, 2010 12:20 PM
Joined: 1/19/2010
Posts: 18


Here's the scenario:

For any given piece of content, I have Metadata definitions for what thumbnail, title, etc. to use if this piece of content is appearing as link in a sidebar. It will appear in this sidebar because a main piece of content has it selected as related content. I am putting this related list of content onto the page with a contentlist control - this shows the correct links to the related content. How do I call metadata definitions in a custom xsl file so that I can display the thumbnail and other items I have defined as metadata for the items in the related content list?


Rui @ Ektron
Posted: Thursday, February 11, 2010 11:08 AM
Joined: 10/2/2006
Posts: 325


I don't think you can get the metadata from xsl. So you will have to do this by API. Here is a sample

 

 

    Dim metadataList As Ektron.Cms.CustomAttributeList

    Dim contentMeta As Ektron.Cms.CustomAttribute

    Try

    ' Getting all the metadata information from the MainContent

         metadataList = MainContent.GetMetaData()

         newCustomList = metadataList.GetItemByName("Related Content").Value

         imgBanner.ImageUrl = metadataList.GetItemByName("Banner").Value

         menuLeft.DefaultMenuID = metadataList.GetItemByName("Menu").Value    

    Catch ex As Exception

    End Try



Think outside the box.
Ektron CMS Smart Form XSLT = Great Design Idea w. Control


 

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