|
Home > Archive > Microsoft Content Management Server > December 2004 > hi stefan
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]
|
|
|
| hi stefan
how to override the "save new page" postings name
so that i can prefix with some string to every posting done by
user or authors
can u please guide me how to do this
iam using vb.net , windows2003, mcms 2002
thank u very much stefan
eswar
| |
| Stefan [MSFT] 2004-12-16, 6:50 pm |
| Hi Eswar,
either in a custom save console action or in a workflow event.
Cheers,
Stefan.
"eswar" <iteswar@gmail.com> wrote in message
news:1102749584.008934.185280@f14g2000cwb.googlegroups.com...
> hi stefan
>
> how to override the "save new page" postings name
> so that i can prefix with some string to every posting done by
> user or authors
>
> can u please guide me how to do this
> iam using vb.net , windows2003, mcms 2002
> thank u very much stefan
> eswar
>
| |
|
| hi stefan
its custom save console
thanking you
eswar
Stefan [MSFT] wrote:[vbcol=seagreen]
> Hi Eswar,
>
> either in a custom save console action or in a workflow event.
>
> Cheers,
> Stefan.
>
>
> "eswar" <iteswar@gmail.com> wrote in message
> news:1102749584.008934.185280@f14g2000cwb.googlegroups.com...
| |
| Stefan [MSFT] 2004-12-16, 6:50 pm |
| Hi Eswar,
you would need to override ActionJavascript for the AuthoringSaveNewAction
class.
Here you need to generate a new Javascript code based on the Original
Javascript (base.ActionJavaScript) and add the code to add the prefix.
To add this prefix add the following code:
__CMS_PostbackForm.WBC_fieldNewPageName.value = Prefix +
__CMS_PostbackForm.WBC_fieldNewPageName.value;
In addition you could check if the Displayname is empty. If not, decide
whether to add the prefix here also or not.
Cheers,
Stefan.
"eswar" <iteswar@gmail.com> wrote in message
news:1102915128.744949.213590@z14g2000cwz.googlegroups.com...
> hi stefan
>
> its custom save console
>
> thanking you
> eswar
>
> Stefan [MSFT] wrote:
>
| |
|
| hi stefan
thank u very much for your reply
but iam unable to use that code
becoz when the user logs into the site iam storing his username as
session
so here prefix is username for a posting
so that i can retrive the postings based on username + postingname
stefan can u please advice me
thanking you
eswar
Stefan [MSFT] wrote:
> Hi Eswar,
>
> you would need to override ActionJavascript for the
AuthoringSaveNewAction
> class.
> Here you need to generate a new Javascript code based on the Original
> Javascript (base.ActionJavaScript) and add the code to add the
prefix.
> To add this prefix add the following code:
>
> __CMS_PostbackForm.WBC_fieldNewPageName.value = Prefix +
> __CMS_PostbackForm.WBC_fieldNewPageName.value;
>
> In addition you could check if the Displayname is empty. If not,
decide[vbcol=seagreen]
> whether to add the prefix here also or not.
>
> Cheers,
> Stefan.
>
>
> "eswar" <iteswar@gmail.com> wrote in message
> news:1102915128.744949.213590@z14g2000cwz.googlegroups.com...
| |
| Stefan [MSFT] 2004-12-16, 6:50 pm |
| Hi Eswar,
why are you unable to use the code?
Cheers,
Stefan
"eswar" <iteswar@gmail.com> wrote in message
news:1103102545.384894.77620@c13g2000cwb.googlegroups.com...
> hi stefan
>
> thank u very much for your reply
>
> but iam unable to use that code
> becoz when the user logs into the site iam storing his username as
> session
> so here prefix is username for a posting
> so that i can retrive the postings based on username + postingname
>
>
> stefan can u please advice me
>
> thanking you
> eswar
>
>
> Stefan [MSFT] wrote:
> AuthoringSaveNewAction
> prefix.
> decide
>
|
|
|
|
|