Portal Engine
Version 2.x > Portal Engine > Numeric prefix for FAQ questions View modes: 
User avatar
Member
Member
persun - 1/10/2007 11:40:16 AM
   
Numeric prefix for FAQ questions
Hi,

I am trying to add a numeric prefix to my FAQ questions based on their order in the list. I was thinking about using the NodeOrder property of each FAQ document to get the correct number from inside the FAQ document transformation. However, I am not sure how to do this. CMS.CMSHelper.CMSContext.CurrentDocument.NodeOrder returns the NodeOrder value of the parent document. Is there a any way to do this?

Thanks,

Per

User avatar
Guest
admin - 1/20/2007 6:05:31 PM
   
Re: Numeric prefix for FAQ questions
Hello,

you need to modify the transformation and display the NodeOrder value like this:

<%# Eval("NodeOrder") %>

Best Regards,

User avatar
Member
Member
persun - 1/22/2007 12:59:14 PM
   
Re: Numeric prefix for FAQ questions
Thanks, that works!

How can you tell what properties are available for "Eval" in a transformation?

User avatar
Guest
admin - 1/24/2007 8:55:43 AM
   
Re: Numeric prefix for FAQ questions
You can use all fields that are available in the View_CMS_Tree_Joined results and in the document-specific table (the document type attributes).

Best Regards,