|
Home > Archive > Microsoft Content Management Server > June 2004 > Change the DestinationChannel in CMS_openWindowCreateNewPage
You are viewing an archived Text-only version of the thread.
To view this thread in it's original format and/or if you want to reply to
this thread please [click here]
| Author |
Change the DestinationChannel in CMS_openWindowCreateNewPage
|
|
|
| I want to provide a set of "Publishing Tasks" for my authors. One
specifically is "Create New News Page". But, I cant seem to be able
to
change the DestinationChannel in the javascript for the console
control?
The ActionJavascript property is "ReadOnly" ;-(. Is there a way
around
this?
HTML SOURCE OUTPUT:
onclick="CMS_openWindowCreateNewPage('/hmcweb/CMS/WebAuthor/Dialogs/PageCrea
tionWizard/TemplateGalleriesBrowse/TemplateGalleriesBrowse.aspx?NRMODE=UNPUB
LISHED&DestinationChannel={B65201B2-23E4-4701-AED3-5453FB8B71B2}');return
false" href="#"
Doing a remove and insert on the ActionJavascript string would work if
I
could set the property instead of just get?
Also, I looked at the lo2u's code at GotDotNet it its massive overkill
along
wth required filesystem changes that arent acceptable by our sys
admins.
http://www.gotdotnet.com/Community/...a8-053e59220244
| |
| Glen Wells 2004-06-20, 11:04 pm |
| You should create a custom Console Control, inheriting from
BaseNewWindowAction, which performs the task you want to provide. You can
override the ActionJavascript in there and set it to whatever you want.
public class MyNewAction : BaseNewWindowAction
{
public MyNewAction() { this.Text = "Do Something"; }
public override string ActionJavascript { get { return
myCustomJavascript; }}
}
--
Glen Wells
www.cubik.co.uk
"Marc" <marcmiles@yahoo.com> wrote in message
news:69888aac.0406111403.6167a3a9@posting.google.com...
> I want to provide a set of "Publishing Tasks" for my authors. One
> specifically is "Create New News Page". But, I cant seem to be able
> to
> change the DestinationChannel in the javascript for the console
> control?
> The ActionJavascript property is "ReadOnly" ;-(. Is there a way
> around
> this?
>
> HTML SOURCE OUTPUT:
>
>
onclick="CMS_openWindowCreateNewPage('/hmcweb/CMS/WebAuthor/Dialogs/PageCrea
>
tionWizard/TemplateGalleriesBrowse/TemplateGalleriesBrowse.aspx?NRMODE=UNPUB
> LISHED&DestinationChannel={B65201B2-23E4-4701-AED3-5453FB8B71B2}');return
> false" href="#"
>
> Doing a remove and insert on the ActionJavascript string would work if
> I
> could set the property instead of just get?
>
>
> Also, I looked at the lo2u's code at GotDotNet it its massive overkill
> along
> wth required filesystem changes that arent acceptable by our sys
> admins.
>
http://www.gotdotnet.com/Community/...a8-053e59220244
|
|
|
|
|