开发者

N2 CMS, all CMS icons link to default.aspx?Page=

开发者 https://www.devze.com 2023-03-13 22:41 出处:网络
been using N2 C开发者_运维问答MS for a while now, good CMS system. One thing thats been bugging me ever since ive used it is the icon links to each CMS Object in the N2 Admin page always link to /def

been using N2 C开发者_运维问答MS for a while now, good CMS system.

One thing thats been bugging me ever since ive used it is the icon links to each CMS Object in the N2 Admin page always link to /default.aspx?Page='SomeNumber'.

it appears that 'SomeNumber' references the URI Name entry that is has a little pad lock next to it.

my question is...

how can i change URI Name to the actual URL, so when i click a CMS icon it will bring up the page that CMS object releates to rather than a not found page.

Any help is most appricatied


you need to use the TemplateURL Attribute like so...

[PageDefinition(Name="GreenCars",
                Description="The Green Cars CMS Page",
                ToolTip="The tooltip",
                IconUrl = "/N2/Resources/icons/basket_error.png",
                TemplateUrl = "/GreenCars"
                )]
0

精彩评论

暂无评论...
验证码 换一张
取 消