I installed the module as admin
configured to hide title for page content type.
It did hide the title. when I logged out and saw the node as anonymous it showed the node title. I went to user permissions page and saw that the permission "use exclude node title" was checked for all roles including anonymous. I unchecked all of them and checked only for anonymous & authenticated and submitted the form and it worked as expected.

So I guess the module has to clear cache or rebuild permissions automatically after installation.

Comments

gabrielu’s picture

Status: Active » Needs work

I think you pointed right, as many users reporting this. We should find a way to let Drupal know we modified intro permissions table.
I see user.admin.inc from user module, clears all cache after updating Permissions table. Since exclude node title automatically assigns 'user exclude node title' permission to all roles on install, I believe we should call from .install:

  // Clear the cached pages
  cache_clear_all();

But I'm thinking if there isn't a better way, because clearing all cache might be painful for some high traffic sites.
Is there another way to rebuild / clear permissions cache?

Thanks.

technikh’s picture

I guess you can clear specific portion/table and not the entire cache by controlling the arguments.
cache_clear_all($cid = NULL, $table = NULL, $wildcard = FALSE)

gabrielu’s picture

I know that, but I want to know if there is any specific cache table that is responsible for permissions. The problem is that in our .install file we update permissions table, and for some reason they are not reflected on the site until you re-save the permissions form at admin/user/permissions

technikh’s picture

sorry no Idea.

gabrielu’s picture

Status: Needs work » Needs review

Actually I believe that if you check latest release it should be fine, I updated the SQL query in .install file.

Let me know,
Gabriel

pauljr8’s picture

I have been trying for some time to do what this module claims to. However, it provides another admin interface and the checkbox on the node edit form, but it does nothing on my 6.19. I am trying to exclude the title on some content on the front page which is made up of panels, but the titles remain. Kennedy Point Yacht Club

gabrielu’s picture

There are 2 options:
1. You have to check if you selected `exclude from tesers too`.
2. You have to check permissions table if you have checked `use exclude node title`

Let me know,
Gabriel

pauljr8’s picture

Duh! I keep forgetting that unlike when one creates some content where the title is required and has the option to use , panels allows one to exclude the title by checking the box but leaving the textfield blank. Thanks for the response.

gabrielu’s picture

Status: Needs review » Closed (fixed)