What block/element/view are the "node is locked by..." warning messages that appear at the top written into? I am using custom pages using Panels and the "node is locked" warnings are not appearing on those custom pages. I think I just need to add the appropriate element to my custom pages.

Comments

ohnobinki’s picture

Status: Active » Fixed

It uses drupal_set_message(), so you need to make sure to echo $messages; in a template or grab something like $variables['messages'] in a theme function.

Reopen if this doesn't work directly with Panels or whatever you're using, I could look closer if need be.

bulldozer2003’s picture

Status: Fixed » Active

I looked in Panel's issues and found an issue where someone needed to display messages and added the page element "status messages." I added that element but I am still not seeing the lock messages.

Also, lock messages only show up on non-custom node pages. They don't show up on the (still default) page or anywhere else. Is that normal behavior?

https://drupal.org/node/1177176

bulldozer2003’s picture

A better question might be if there is any context restrictions on which the locked content warning is displayed? Is it set as a repeating status message for every page, or just for certain displays?

I've noticed the message does not display when viewing the [default] home page.

ohnobinki’s picture

It only shows up on node pages.

jaydub’s picture

Are you by chance using Panels Everywhere in this case? From what you mention regarding messages as a page element I was figuring you have panels handling the theming of the entire page and not just the content. Not sure if that's part of the issue here but wanted to make sure that distinction was made if it applies.

bulldozer2003’s picture

Just regular panels. If the messages are limited to node pages it could be something to do with Panels making the page no longer seem like a node (i wouldnt think that would be the case since it is a node page variant)

vchen’s picture

Version: 7.x-1.1 » 7.x-1.4

I have this problem too. But it seems to be an issue of roles for me. I'm testing this module out on several roles. Only admin can see these messages. While the module works in terms of blocking multiple people from editing at once, other users would be confused about why they can't edit.

I'm testing this on plain nodes. There's not views/panels involved.

Any idea on how I can resolve this issue?

vchen’s picture

Issue summary: View changes

wasn't clear about what messages i was talking about

pandaski’s picture

Version: 7.x-1.4 » 8.x-1.x-dev
Issue summary: View changes
Status: Active » Closed (outdated)
pandaski’s picture

Version: 8.x-1.x-dev » 7.x-2.x-dev