Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我想在列表中显示我的几个页面的列表。
是否有宏或其他东西来获取另一个站点的页面标题然后是实际的?我所需要的只是一个可以给我一个页面名称的智能功能。
谢谢你的帮助。
如果你有nodeID你想要标题的页面,你可以使用TreeHelper静态函数。
nodeID
TreeHelper
TreeNode yourNode = TreeHelper.SelectSingleNode(nodeID);
然后很容易从那里访问该名称。
yourNode.DocumentName;
请注意,TreeNode 和 Document 之间的区别在于,一个 TreeNode 可能有多个 Document,其中每个都是不同的语言/文化。