在 DotnetNuke 中,我们如何为每个门户创建可管理的页脚区域

发布于 2024-09-28 21:16:27 字数 331 浏览 0 评论 0原文

我正在使用 DotnetNuke 5.4 Community,并且满足了特定要求。

我需要在门户基础上实现可配置的页脚区域(即 DNN 管理员应该能够管理要在页脚区域中显示的内容和图像)。

现在我可以在门户的基础上更改页眉徽标,因此需要将相同的功能扩展到页脚区域。

Q1.) 有没有任何皮肤对象可以满足我当前的要求?

Q2.) 在版权文本中,我只能输入 100 个字符。但我需要将其扩展到 250 个字符。我该怎么办?

在这方面的任何帮助表示赞赏。

谢谢,

巴鲁。

I am using DotnetNuke 5.4 Community and I have met with a specific requirement.

I need to make it possible a configurable footer area (i.e a DNN admin should be able to manage the content & image to be displayed in footer area) on a portal basis.

As now I can change the header logo on portal basis, the same functionality need to be extended to the footer area.

Q1.) Is there any skin object that satisfies my current requirement?

Q2.) In the copyright text I am limited to enter only 100 characters.But I need to extent it to 250 chars.What can I do about this.

Any help in this regard is appreciated.

Thanks,

Balu.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

偏闹i 2024-10-05 21:16:27

看来您需要自定义皮肤对象。
我将按以下方式执行此操作:

创建一个表,名为:

create table projectSettings(
projectSettingId bigint not null identity(1,1) primary key, 
portalId int ,
settingName varchar(100),
setttingValue varchar(max)
)
-- name looks odd, but don't use siteSettings, portalSettings, HostSettings etc 
-- because it may be possible that they are already exists in dnn

为页脚中想要的所有内容创建条目,例如版权,以及您想要的任何其他设置

创建一个自定义皮肤对象,该对象将接受 PortalId 和 SettingsKey 作为属性并显示基于查询的设置值。

我希望这会对您有所帮助。

It seems that you need custom skin objects.
I will do this in following way:

create a table called:

create table projectSettings(
projectSettingId bigint not null identity(1,1) primary key, 
portalId int ,
settingName varchar(100),
setttingValue varchar(max)
)
-- name looks odd, but don't use siteSettings, portalSettings, HostSettings etc 
-- because it may be possible that they are already exists in dnn

Create entries for all the things you want in footer like, copy right, and any other setting you want

create a custom skin object that will accept portalId and SettingKey as property and show the settingValue based on query.

I hope this will help you.

看海 2024-10-05 21:16:27

好问题。您无法将其他设置添加到设置区域,因此您需要执行一些自定义工作才能完成此操作。根据您的用户的精明程度,他们可以将 HTML 模块放在页脚窗格中并将其标记为“在所有页面上显示”,

但我想您正在寻找比这更优雅的东西。

Good question. You can't add additional settings into the settings area so you would need to do some custom work to accomplish this. Depending on how savvy your user is they could put an HTML module in a footer pane and mark it 'display on all pages'

But I imagine you are looking for something more elegant than this.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文