Closed (fixed)
Project:
Exclude Node Title
Version:
6.x-1.3
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
17 Mar 2011 at 15:01 UTC
Updated:
11 Apr 2011 at 20:25 UTC
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
Comment #1
gabrielu commentedI 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:
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.
Comment #2
technikh commentedI 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)
Comment #3
gabrielu commentedI 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
Comment #4
technikh commentedsorry no Idea.
Comment #5
gabrielu commentedActually I believe that if you check latest release it should be fine, I updated the SQL query in .install file.
Let me know,
Gabriel
Comment #6
pauljr8 commentedI 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
Comment #7
gabrielu commentedThere 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
Comment #8
pauljr8 commentedDuh! 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.
Comment #9
gabrielu commented