| Stefan [MSFT] 2006-07-25, 1:18 pm |
| Hi J,
you would need to create a custom save new console action which handles both
situations.
Cheers,
Stefan
--
This posting is provided "AS IS" with no warranties, and confers no rights
New to MCMS?
Check out this book: Building Websites Using MCMS: http://tinyurl.com/6zj44
Check out the new book as well: Advanced MCMS development:
http://tinyurl.com/8ugwj
----------------------
"J Foreman" <JForeman@discussions.microsoft.com> wrote in message
news:4FE3D414-8AA5-49E7-A932-D3564B85730B@microsoft.com...
> Is there a tradeoff when I wish to automatically name the page and
> validate
> placeholders when a save action is triggered? Can I have both (and without
> the Save New Page dialog from appearing)?
>
> I am using the following code (Console) when saving the posting:
>
> * Autoname the posting
>
> HTML
> ------
>
> <CmsConsole:AuthoringSaveNewAction id="AuthoringSaveNewAction100"
> runat="server">
> <A id=AuthoringSaveNewAnchor2
> onclick="<%# SavePosting %>;return false" href="#" target=_self>
> <%# Container.Text %>
> </A>
> <BR>
> </CmsConsole:AuthoringSaveNewAction>
>
> CODE BEHIND
> ----------------
>
> Public Function SavePosting() As String
> Return " WBC_setNewPageInfo('NamingOverride','Nam
ing Override');
> WBC_doAuthoringNewSaveAndExit();"
> End Sub
>
> * Validate the posting
>
> HTML
> ------
>
> < ValidatedControls:ValidatedSaveNewAction
id="ValidatedSaveNewAction1"
> runat="server">
> <A id=ValidatedSaveNewAnchor1 href="#" target=_self
> onclick="<%# Container.ActionJavascript %>; return false" >
> <%# Container.Text %>
> </A>
> <BR>
> </ ValidatedControls:ValidatedSaveNewAction
>
>
> NOTE: then use the custom validation for placeholder controls
|