Technical support This forum is closed.
Version 1.x > Technical support > new CMS Document Type and CMSEditModeButtons View modes: 
User avatar
Member
Member
JeremyThake - 11/17/2005 5:24:27 AM
   
new CMS Document Type and CMSEditModeButtons
I’m just in the middle of creating some Application CMS Document Templates, one called Notice Board.

I followed the wizard through and created all the fields I needed etc.

I then copied the Product Page Template and called it NoticeBoard.aspx and changed the cms namespace to match. In the NoticeBoard cms options I selected NoticeBoard as an allowed child template.

I got all this working, but when I add a new page using the NoticeBoard template and click New on it in cmsdesk I don’t get the NoticeBoard option (only news, products etc.).

I did create this page by copying a sample News link and changing the page template to NoticeBoard. Because when I clicked new on the root, the NoticeBoard page template didn’t appear (only Article, Folder, Newsletter container and Page (menu item)).

Can you give me some guidance on where to go from here?

Following on from this…I added this to the NoticeBoard.aspx page template:

<cc1:CMSEditModeButtons id="CMSEditModeButtons2" runat="server" DisplayDeleteButton="False" DisplayEditButton="False" DisplayPropertiesButton="False" Description="Add Notice Board item:" SelectedNodeClassName="cms.NoticeBoard"></cc1:CMSEditModeButtons>

But when I hit the page created with that page template it doesn’t show…I’ve added some static text and refreshed and that shows fine.

I also added a repeater (like the news one) and manually added a row to the table in the database and no results are showing.

<cc1:cmsrepeater id="NoticeBoardRepeater" runat="server" SelectNodesOrderBy="NoticeBoardId DESC" SelectNodesClassName="cms.NoticeBoard" SelectNodesPathType="AliasPath" TransformationName="cms.NoticeBoard.default" SelectNodesPath="/NoticeBoard/%"></cc1:cmsrepeater>

User avatar
Member
Member
JeremyThake - 11/17/2005 7:43:51 AM
   
Re: new CMS Document Type and CMSEditModeButtons
I received this from Petr which resolved the problem:

Hi Jeremy,



Thank you for your message. If I understand it well, the issue is that you cannot create a new document of type “Notice Board”. It is most likely caused by the fact that “Notice Board” is not an allowed child template under the Page (Menu Item) document template. You need to go to the Development -> Document Templates -> Application: CMS -> Page (Menu Item) -> Allowed Child Templates and add “Notice Board” among the allowed child templates.



Please let me know if it helps.



Best Regards,



Petr Palas
==============================