admin
-
3/30/2005 9:31:05 AM
Re: Newbie question - Page with free-form text (single article?)
I've just realized that there's another, easier way how to do that. Here's an example:
<cc1:CMSEditModeButtons id="CMSEditModeButtons1" runat="server" SelectedNodeClassName="cms.article" DisplayDeleteButton="False" DisplayPropertiesButton="False" SelectedNodePath="/products" DisplayNewButton="False" CMSDeskPath="~/cmsdesk"></cc1:CMSEditModeButtons>
Please note that the SelectedNodePath="/products" property specifies the page where the article is displayed and the SelectedNodeClassName="cms.article" property specifies the type of the document that should be edited/created.
When the editing dialog is opened, it tries to find the specified document of the specified type. However, the /products document is a page. Thus, it tries to search for child documents (/products/%) or type cms.article. If it finds some, it displays the editing form for the first child. If not, it displays the editing form for creating a new article under the /products document - it means you no longer need to use the "new" button.
I hope this helps. Should you need more details, please feel free to ask.
|