|
Home > Archive > Microsoft Content Management Server > January 2006 > PageRevert Instructions?
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 |
PageRevert Instructions?
|
|
| Ninerfan 2006-01-29, 9:09 pm |
| Hello,
My users would really like to have this revert ability.
http://www.gotdotnet.com/Community/...85-A773336D84D8
Can someone please give me some step by step instructions on how to
implement this enhancement including any dependencies it may have.
Where am I supposed to put the PageRevert.aspx, PageRevert.aspx.cs, and the
PageRevertButton.cs files. Any details on how this is supposed to work is
appreciated. I'm a newbie to .NET so please be gentle.
Thanks.
| |
| Stefan [MSFT] 2006-01-29, 9:09 pm |
| Hi Ninerfan,
a more improved version of this sample including step-by-step description is
included in the following book:
http://tinyurl.com/8ugwj
About the sample below: a step by step description is included in the zip
file as InstallInstructions.txt
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
----------------------
"Ninerfan" <Ninerfan@discussions.microsoft.com> wrote in message
news:21B9B989-BFC8-4438-A57C-8F2B72460138@microsoft.com...
> Hello,
>
> My users would really like to have this revert ability.
>
> http://www.gotdotnet.com/Community/...85-A773336D84D8
>
> Can someone please give me some step by step instructions on how to
> implement this enhancement including any dependencies it may have.
> Where am I supposed to put the PageRevert.aspx, PageRevert.aspx.cs, and
> the
> PageRevertButton.cs files. Any details on how this is supposed to work is
> appreciated. I'm a newbie to .NET so please be gentle.
>
> Thanks.
| |
| Ninerfan 2006-01-29, 9:09 pm |
| Hi Stefan,
I actually downloaded the "Tips and Tricks" zip file (can't find the URL
now) Tip number was some PageRevert code with no readme file. Then when I saw
your PageRevert I thought it was the same bundle.
I just downloaded gotdotnet version and I do see the brief instructions
file. I'll see if I can make sense of it.
Thanks!
"Stefan [MSFT]" wrote:
> Hi Ninerfan,
>
> a more improved version of this sample including step-by-step description is
> included in the following book:
> http://tinyurl.com/8ugwj
>
> About the sample below: a step by step description is included in the zip
> file as InstallInstructions.txt
>
> 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
> ----------------------
>
>
> "Ninerfan" <Ninerfan@discussions.microsoft.com> wrote in message
> news:21B9B989-BFC8-4438-A57C-8F2B72460138@microsoft.com...
>
>
>
| |
| Ninerfan 2006-01-29, 9:09 pm |
| Okay the install seemed to go fine and the revert link is showing up in the
console. On the surface everything seems to be working. But the version
behavior is off.
When it displays "Current Version" I expected that to be the same as the
"Latest Unapproved Page Revision" which contains the change I saved (page
status would be saved) and that I want to back out of. But instead the
Current Version shows the previous version before my saved change. That
previous version was approved and published. Since the "Current Version" does
not display a link for "revert content" it again leads me to believe this is
supposed to show the "Latest Unapproved Page Revision".
Another odd thing I notice is the the dates and hours don't match between
the revert window and the Revision History window. For example in Revision
History it shows the Last approved version with this date, 1/24/2006 4:52:28
PM but in the Revert window it shows 1/25/2006 12:52:28 AM under the current
version revision date. This date mismatch continues under the "Available
Revisions" section of the revert window. The next available revision shown
there is 1/25/2006 12:41:39 AM.
But under the approved revisions in the standard Revisions History window it
shows the most recent approved revision as 1/24/2006 4:52:28 PM and then the
version before that is 1/24/2006 4:41:39 PM.
Notice how not only do the entries not match up between the revert window
and the Revision History window but different entries in both windows have
exact minute and second match but with different days and hours.
Has this sort of behavior been seen before by anyone who used this. Any
ideas what the problem could be?
Thanks.
"Stefan [MSFT]" wrote:
> Hi Ninerfan,
>
> a more improved version of this sample including step-by-step description is
> included in the following book:
> http://tinyurl.com/8ugwj
>
> About the sample below: a step by step description is included in the zip
> file as InstallInstructions.txt
>
> 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
> ----------------------
>
>
> "Ninerfan" <Ninerfan@discussions.microsoft.com> wrote in message
> news:21B9B989-BFC8-4438-A57C-8F2B72460138@microsoft.com...
>
>
>
| |
| Ninerfan 2006-01-29, 9:09 pm |
| Well,
Even though it was partially working by solution would not compile because
of a missing reference. (nothing in the instructions mentioned adding the DLL
as a reference). So I went a head and added the DLL as a reference to the
solution and it compiled fine. Sadley though that caused it to no longer run
from the web console. It now gives this error:
Compilation Error
Description: An error occurred during the compilation of a resource required
to service this request. Please review the following specific error details
and modify your source code appropriately.
Compiler Error Message: CS1595:
'Microsoft.Toolkits.EnterpriseSolutions.CMSPageRevertASPX.PageRevertPage' is
defined in multiple places; using definition from
'c:\WINDOWS\Microsoft.NET\Framework\v1.1.4322\Temporary ASP.NET
Files\hnfs\297578de\79a40541\assembly\dl
2\e8dcc2c4\fd3714c5_8423c601\hnfs.DLL'
Source Error:
Line 27:
Line 28: [System.Runtime.CompilerServices.CompilerGlobalScopeAttribute()]
Line 29: public class PageRevert_aspx :
Microsoft.Toolkits.EnterpriseSolutions.CMSPageRevertASPX.PageRevertPage,
System.Web.SessionState.IRequiresSessionState {
Line 30:
Line 31:
Source File: c:\WINDOWS\Microsoft.NET\Framework\v1.1.4322\Temporary ASP.NET
Files\hnfs\297578de\79a40541\9846dbqx.0.cs Line: 29
I have no idea what's causing this now. Stuck..
"Stefan [MSFT]" wrote:
> Hi Ninerfan,
>
> a more improved version of this sample including step-by-step description is
> included in the following book:
> http://tinyurl.com/8ugwj
>
> About the sample below: a step by step description is included in the zip
> file as InstallInstructions.txt
>
> 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
> ----------------------
>
>
> "Ninerfan" <Ninerfan@discussions.microsoft.com> wrote in message
> news:21B9B989-BFC8-4438-A57C-8F2B72460138@microsoft.com...
>
>
>
| |
| Ninerfan 2006-01-29, 9:09 pm |
| Well, even though it was somewhat working, the solution would not build. The
compiler was throwing error about missing reference. So I added the reference
to the DLL and it compiled fine. But that then caused the link in the web
author to crash with the following error:
Compilation Error
Description: An error occurred during the compilation of a resource required
to service this request. Please review the following specific error details
and modify your source code appropriately.
Compiler Error Message: CS1595:
'Microsoft.Toolkits.EnterpriseSolutions.CMSPageRevertASPX.PageRevertPage' is
defined in multiple places; using definition from
'c:\WINDOWS\Microsoft.NET\Framework\v1.1.4322\Temporary ASP.NET
Files\hnfs\297578de\79a40541\assembly\dl
2\e8dcc2c4\fd3714c5_8423c601\hnfs.DLL'
Source Error:
Line 27:
Line 28: [System.Runtime.CompilerServices.CompilerGlobalScopeAttribute()]
Line 29: public class PageRevert_aspx :
Microsoft.Toolkits.EnterpriseSolutions.CMSPageRevertASPX.PageRevertPage,
System.Web.SessionState.IRequiresSessionState {
Line 30:
Line 31:
Source File: c:\WINDOWS\Microsoft.NET\Framework\v1.1.4322\Temporary ASP.NET
Files\hnfs\297578de\79a40541\9846dbqx.0.cs Line: 29
I have no idea what's causing this error. Stuck ..:-(
"Stefan [MSFT]" wrote:
> Hi Ninerfan,
>
> a more improved version of this sample including step-by-step description is
> included in the following book:
> http://tinyurl.com/8ugwj
>
> About the sample below: a step by step description is included in the zip
> file as InstallInstructions.txt
>
> 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
> ----------------------
>
>
> "Ninerfan" <Ninerfan@discussions.microsoft.com> wrote in message
> news:21B9B989-BFC8-4438-A57C-8F2B72460138@microsoft.com...
>
>
>
|
|
|
|
|