문제

I would like to display a list of a couple of my pages in a list.

Is there a macro or something else to get the page title of another site then the actual one? All i need is a little smart function that can give me the name of a page.

Thanks for your help.

도움이 되었습니까?

해결책

If you have the nodeID of the page you want the title of, you can use the TreeHelper static functions.

TreeNode yourNode = TreeHelper.SelectSingleNode(nodeID);

then easily enough access the name from there.

yourNode.DocumentName;

Note the difference between a TreeNode and a Document is that there are possibly multiple Document's for one TreeNode, where each is a different language/culture.

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top