Thanks for the feedback. Here is what I seem to have found out:

1. A user can only "lock" one piece of content (page) at a time. This
really just locks one thing - if you have other pages in a container
or a list on that one page, they are not "locked" by virtue of being
"part of" the locked page.

2. The locked content is usually indicated in the asp session value of
'PageGuid' and most of the time represents the page the user is on in
CMS (smart edit or tree) -- maybe the LockControl files have a role
here but I couldn't figure out if they did or not.

3. Pages have an attribute called "pageflags" which is a bitmask sort
of thing that can tell you if the page is in draft, waiting for
release etc. (this is pretty well document in the RQL docs)  Making
changes to content in this state, even via RQL, doesn't seem to stick
(though no error is returned if you try to save that page)  Putting
something into draft mode would effectively lock that content from
other users.

Hope this is helpful to someone else too.  Thanks again list.

--
fej



On Oct 7, 4:44 pm, brydz24 <[email protected]> wrote:
> Here is an RQL that allows you to lock a SmartTree page segment. I
> think that a user can only live on one of these at a time.
>
> <TREESEGMENT type=\"page\" action=\"lock\" guid=\"" + page_guid + "\"
> parentguid=\"" + parent_link_guid + "\" userguid=\"" + user_guid + "\"
> languagevariantid=\"ENU\"/>
>
> So you would first determine the user who has the segment locked that
> you want to access, then you use the above to change the segment that
> user has a lock on (so that the segment you want to access becomes
> free).....
>
> Something else that may be related are the files in the CMS\ASP folder
> that are named like this:
>
> LockControl6DD87A305D6047BE964705263982FC79.rdcms
>
> On Oct 7, 12:39 pm, Fej Reblok <[email protected]> wrote:
>
> > Hi there,
>
> > I've tried to find this by reading the logs but I must be missing
> > something.  I need to enhance some plugins such that they lock pages
> > when someone starts editing  and unlock when they are done, and  if a
> > user tries to edit a locked page,  tell them that the page is
> > currently being edited by some other user, just like how Red Dot does
> > this - only I need to do it in a plug-in based editor.
>
> > I am able to see if a page is locked by seeing the attributes coming
> > back from a page load action but I cannot see how I can set a page as
> > locked or unlocked.  Does anyone have the RQL for this?
>
> > Thanks.
>
> > fej
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"RedDot CMS Users" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/reddot-cms-users?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to