|
Home > Archive > Microsoft Content Management Server > December 2004 > cmsContext.AuthenticateAsCurrentUser
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 |
cmsContext.AuthenticateAsCurrentUser
|
|
| choihead 2004-12-16, 6:50 pm |
| Dear All,
In 1 console application , can i switch the PublishingMode from Unpublished
to published?
also, what is the diffenerce between PublisingMode.Staging and Published?
Choihead
| |
| Angus Logan [MVP] 2004-12-16, 6:50 pm |
| Hi,
See
http://msdn.microsoft.com/library/d...eclasstopic.asp
Regards
--
________________________________________
Angus Logan (MCAD/MCDBA/MCP/MVP for MCMS)
Product Specialist
Microsoft Application Solutions
Data#3 Limited
E angus_logan@data3.com.au
BLOG www.anguslogan.com
________________________________________
"choihead" <choihead@hotmail.com> wrote in message
news:OTnxlFB4EHA.1564@TK2MSFTNGP09.phx.gbl...
> Dear All,
>
> In 1 console application , can i switch the PublishingMode from
> Unpublished to published?
>
> also, what is the diffenerce between PublisingMode.Staging and Published?
>
> Choihead
>
| |
| choihead 2004-12-16, 6:50 pm |
| Hi angus, I have been there but I stil dunno what wold the differences be
between I use staging/published
Published Indicates that the Publishing API is being used to view the
published version of the site.
Staging Indicates that the Publishing API is being used to stage the
site.
"Angus Logan [MVP]" <angus_logan@data3.com.au> 级糶秎ン穝籇:OcIsKcB4EHA.1192@tk2msftngp13.phx.gbl...
> Hi,
>
> See
> http://msdn.microsoft.com/library/d...eclasstopic.asp
>
> Regards
> --
> ________________________________________
>
> Angus Logan (MCAD/MCDBA/MCP/MVP for MCMS)
> Product Specialist
> Microsoft Application Solutions
> Data#3 Limited
> E angus_logan@data3.com.au
> BLOG www.anguslogan.com
> ________________________________________
> "choihead" <choihead@hotmail.com> wrote in message
> news:OTnxlFB4EHA.1564@TK2MSFTNGP09.phx.gbl...
>
>
| |
| Stefan [MSFT] 2004-12-16, 6:50 pm |
| Hi Choihead,
the difference depends on your code.
You could create controls that emit different content for staging and
production:
E.g.:
if (CmsHttpContext.Current.Mode = PublishingMode.Published)
{
Reponse.Write("In Published Mode");
}
if (CmsHttpContext.Current.Mode = PublishingMode.Staging)
{
Reponse.Write("In Staging Mode");
}
Sometimes you might want to emmit different content in both modes.
Cheers,
Stefan.
"choihead" <choihead@hotmail.com> wrote in message
news:ur9ZznC4EHA.1260@TK2MSFTNGP12.phx.gbl...
> Hi angus, I have been there but I stil dunno what wold the differences be
> between I use staging/published
>
> Published Indicates that the Publishing API is being used to view
the
> published version of the site.
> Staging Indicates that the Publishing API is being used to stage the
> site.
>
>
>
>
> "Angus Logan [MVP]" <angus_logan@data3.com.au>
级糶秎ン穝籇:OcIsKcB4EHA.1192@tk2msftngp13.phx.gbl...
http://msdn.microsoft.com/library/d...eclasstopic.asp[vbcol=seagreen]
Published?[vbcol=seagreen]
>
>
| |
|
| Stefan,
thanks for reply, so if just for outputing HTML, (like using your stager),
they have no difference right?
"Stefan [MSFT]" <stefang@online.microsoft.com> 秎ン
news:Opl7YIG4EHA.2592@TK2MSFTNGP09.phx.gbl い级糶...
> Hi Choihead,
>
> the difference depends on your code.
> You could create controls that emit different content for staging and
> production:
> E.g.:
>
> if (CmsHttpContext.Current.Mode = PublishingMode.Published)
> {
> Reponse.Write("In Published Mode");
> }
> if (CmsHttpContext.Current.Mode = PublishingMode.Staging)
> {
> Reponse.Write("In Staging Mode");
> }
>
> Sometimes you might want to emmit different content in both modes.
>
> Cheers,
> Stefan.
>
>
> "choihead" <choihead@hotmail.com> wrote in message
> news:ur9ZznC4EHA.1260@TK2MSFTNGP12.phx.gbl...
be[vbcol=seagreen]
> the
the[vbcol=seagreen]
> 级糶秎ン穝籇:OcIsKcB4EHA.1192@tk2msftngp13.phx.gbl...
>
http://msdn.microsoft.com/library/d...eclasstopic.asp
> Published?
>
>
| |
| Stefan [MSFT] 2004-12-16, 6:50 pm |
| Not that I'm aware of.
Cheers,
Stefan.
"jam" <hkjam@hotmail.com> wrote in message
news:O#2ERgL4EHA.1596@tk2msftngp13.phx.gbl...
> Stefan,
>
> thanks for reply, so if just for outputing HTML, (like using your stager),
> they have no difference right?
> "Stefan [MSFT]" <stefang@online.microsoft.com> 秎ン
> news:Opl7YIG4EHA.2592@TK2MSFTNGP09.phx.gbl い级糶...
> be
view[vbcol=seagreen]
> the
>
http://msdn.microsoft.com/library/d...eclasstopic.asp
>
>
|
|
|
|
|