如何设置DotNetNuke模块的可见性? [英] How to set visibility of DotNetNuke Module?

查看:96
本文介绍了如何设置DotNetNuke模块的可见性?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正计划创建一个模块来向网站用户显示公告.

虽然公告模块必须一直显示,然后还可以通过编程方式设置该页面上其他模块的可见性.

例如,来自英国,美国和加拿大的用户只能阅读公告以及该页面的内容,其中包括其他模块(该页面上可以有两个以上的模块,对吧?)

另一方面,不是来自上述3个国家/地区的访问者将只能阅读公告模块,而不能像其他模块一样阅读该页面的其他内容.

任何人都知道如何控制或设置其他模块为可见性吗?

I am planning to create one module to display announcement for user of web site.

While the announcement module must be keep showing and then it is also can be programmatically set the visibility of the other module on that page.

For example, users from United Kingdom, United States, and Canada can be only read the announcement and the content of that page which is including other modules (can be more than 2 modules at that page, right?)

At the other hand, visitors who are not from 3 countries mentioned above will only able to read the announcement module, but cannot read other content of that page like other modules must be invisible.

Anyone know how to control or setting the other modules to be visibility?

推荐答案

,如果不了解更多信息,请查看以下内容

隐藏它
YourDotNukeModule .visible = false

显示它
YourDotNukeModule .visible = true
without know more information please look at the following

to hide it
YourDotNukeModule.visible = false

to show it
YourDotNukeModule.visible = true


这篇关于如何设置DotNetNuke模块的可见性?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆