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.
我使用的是 sitecore 7.0 和 ECM 2.1,我遇到了一个问题。我试图在我的消息中添加一个查看在线链接,但我不知道重定向到哪里。基本上消息是由具有不同数据源的不同模块组成的,所以我没有页面?有人有建议/例子吗?
先感谢您
您应该能够为此使用一些查询字符串参数,并传入消息的 ID 和语言。您必须确保所有 ECM 项目都已发布,以使其正常工作。
我在用户控件后面的代码中设置了一个基本的 ASP.NET 超链接。然后,您可以将此控件添加到消息使用的布局中:
ViewOnlineHyperlink.NavigateUrl = String.Format("/?sc_itemid={0}&sc_lang={1}&sc_pd_view=1", Sitecore.Context.Item.ID, Sitecore.Context.Language);