简体   繁体   English

重复使用一个2sxc DNN模块两次,每个模块内容不同

[英]Reuse a 2sxc DNN module twice with different content in each one

Hi I am trying to use the '_Content - Title only.cshtml' module template for a text heading on my dnn page but wish to use multiple times on same page. 嗨,我正在dnn页面上尝试使用“ _Content-Title only.cshtml”模块模板作为文本标题,但希望在同一页面上多次使用。 Problem is once I select dnn option 'make a copy' and edit text it changes text for each instance of the 'title only' module? 问题是,一旦我选择dnn选项“复制”并编辑文本,它是否会更改“仅标题”模块的每个实例的文本? I know I can duplicate the '_Content - Title only.cshtml' Razor file but I hoped there might be an easier solution? 我知道我可以复制“ _Content-Title only.cshtml” Razor文件,但我希望可以有一个更简单的解决方案? Thx, Denis Thx,丹尼斯

Yes - the problem lies within the DNN copy functionality. 是的-问题出在DNN复制功能之内。 It only copies the module "wrapper" but this wrapper still points to the same data - so editing it will edit the shared content-item. 它仅复制模块“包装器”,但此包装器仍指向相同的数据-因此对其进行编辑将编辑共享的内容项。

Basically you just want to add another content module (not copy, add), and everything works. 基本上,您只想添加另一个内容模块(而不是复制,添加),一切正常。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM