Hi this module is a great improvement on the user friendliness of managing and adding a block to a region.
But i don't get some things. I installed Node block (works properly), Region Manager and Region Visibility. (Also note that Admintheme.module is on and set to a specific admin_theme
1. I click on the "nice" configure button on the right sidebar. It takes me to /admin/build/region_manager/theme_name/right?destination=node
2. On the top it states, add a Block. I create a new block using node block. After submitting the node block I get the following message "The block you just created is now available on the block configuration page." There is no new block in the right region and the link from nodeblock message takes me to admin/block (standard block configuration page)
3.The the core block configuration page is also broken (In the scene that it is not showing the theme "garland" but my admin theme. The blocks set on the garland block page is also all block specific to my admin theme and if i switch to other theme blocks it keeps the admin settings and theme on that page.
And another thing, why is some blocks (Locked) and how do I unlock it?
And how do I send a block from the Left region to the right?
Thanks
Comment | File | Size | Author |
---|---|---|---|
#20 | region_manager_465052_20.diff | 5.47 KB | q0rban |
#19 | region_manager_465052_19.diff | 1.47 KB | q0rban |
#17 | region_manager_465052_17.diff | 852 bytes | q0rban |
Comments
Comment #1
vlooivlerke CreditAttribution: vlooivlerke commentedOk, I figured out some things.
When you enable this module it is best to have no previous blocks created, also no special names must be given to those block titles or they become locked and you will not be able to move them. This is what happened with me when I build blocks using nodeblock and then turned region_manager on later.
The bug with the admin theme is still there.
To test it best is to create a separate role over your user 1, and give it roles to manage regions. (NOT to manage Blocks)
Then in the Region you need to create a block click on the "configure bar" at the bottom of your sidebars. Add a nodeblock
It will give you a message that your block is created but if you click on the configure link it will give you access denied. But not to worry the block is created and if you visit the same sidebar "configure bar" you will find your block in the disabled section. Simply drag it to active for that specific page.
To move a block from one region (left) to (right) simply click on the "configure bar" in the sidebar (left) drag the nodeblock to disabled and click save. Now go to the right side bar and click on "configure bar" and drag the nodeblock from disabled to active on-page_node
Thanks
This is great.
Comment #2
q0rban CreditAttribution: q0rban commentedHi Paul, thanks for the feedback!
I'm not really sure how to handle the admin theme issues. Because regions are theme specific, there's not really a way to have a configure link for a region from a different theme. For instance, if your default theme is a Zen theme, and your admin theme is Garland, Zen has regions that Garland doesn't have (content-top, content-bottom, closure), and Garland has a region that Zen doesn't have (content). The role that has 'Manage Regions' should be seeing the site with the theme they want to manage the regions for.
As far as your other issues let me clarify that as of now the way this module works is by setting the block visibility to 'Show on only the listed pages'. Any block that has been set to have a visibility setting different than that will display as "Locked." Eventually, I'd like to think of a way to add more custom visibility options, but I'd rather err on the side of simple UI then advanced features.
I'm not sure why you were having that weirdness when adding a nodeblock. Can you try this out for me?
Comment #3
vlooivlerke CreditAttribution: vlooivlerke commentedThanks James
I played till late night with this module. It is getting better the more I understand its workings.
I fully understand the admin theme problem and I turned it off when configuring blocks.
The advanced admintheme.module has the following option "Do not use administration theme on the following pages.: "
That fixes the admin theme problem.
About the weirdness when adding a node block, I have pathauto on, I go to a node called domain.com/flowers (node/1)
Click configure in the right sidebar region, add a nodeblock and destination=node/1, so I am taken back to /flowers, but the block is not created in the region, but I can find it under disabled blocks.
But I am going to play some more with it.
I used the latest nodeblock with translation options and I have translation on.
Comment #4
q0rban CreditAttribution: q0rban commentedPaul, can you download the latest version from github and test it out to see if you are still having this problem? The UI has changed considerably since your posting of this issue, so I'd like to see if this is still an issue.
Comment #5
q0rban CreditAttribution: q0rban commentedComment #6
vlooivlerke CreditAttribution: vlooivlerke commentedWow, love the new UI
Did run update.php and all works like it is supposed to except for the bug still in creating a new block and not populating the corresponding region.
When i create a block using the region manager "create" button, the new block is not activated, but can be found in the "disabled" section of region manager.
please note, I am still using all those other modules I mentioned in the previous comment, and did not test it in a clean install.
Thanks for the new UI
Comment #7
q0rban CreditAttribution: q0rban commentedPaul,
You know the problem may be with the translation module now that I think about it. I wonder if adding the translation actually changes what the arg() function returns. Is there a way you can test it with the translation module off, to see if that's true?
Thanks,
James
Comment #8
vlooivlerke CreditAttribution: vlooivlerke commentedNo success.
I activated the module with less modules active.
I did not install i18n and did not activate pathauto.
I do have path.module in the core active.
Any other ideas I can try?
Comment #9
vlooivlerke CreditAttribution: vlooivlerke commentedIt works with a fresh install.
I am looking into my other modules to see what is causing it to stop working
Thanks
Comment #10
vlooivlerke CreditAttribution: vlooivlerke commentedCould this be a reason why it is not working?
I first install region manager then nodeblock, then it works.
but the other way around it does not work.
Comment #11
q0rban CreditAttribution: q0rban commentedPaul, first of all, thanks so much for spending the time to troubleshoot this. In looking through the nodeblock module, I see no reason why it would make a difference which order you install nodeblock or region_manager.
Can you copy and paste the path that you are at after clicking one of the "Create" links (on your install that isn't working)? ie,
node/add/page/garland/left?destination=node/1
or something like that.Comment #12
vlooivlerke CreditAttribution: vlooivlerke commentedHi James
here is a demo of your module in action.
It is on a South African server, things could take longer.
login url: http://demo.ilaaik.co.za/user
username: demo
password: demo
You will notice that it is translatable in all "11" official languages of South Africa, we are trying to present an educational tool and making Drupal easy to use.
Your module and the Taxonomy menu module is the basis of the user friendliness that I want to introduce to all South Africans. Thanks
Comment #13
SiteMaster.ServeLime.com CreditAttribution: SiteMaster.ServeLime.com commentedHi there
I'm experiencing the same problems - with no Internationalization / Language
Garland is my Admin Theme & Tapestry the main theme - same Admin-theme bug + "Locked" blocks issue
Comment #14
q0rban CreditAttribution: q0rban commentedOk, well now we at least have more than one user with the issue so I'm setting this to active. I have a pretty strong suspicion this is due to the admin theme, so I'll have to test that out sometime and see where its coming from.
Comment #15
SiteMaster.ServeLime.com CreditAttribution: SiteMaster.ServeLime.com commentedI disabled the Admin Theme, which fixed the Theme displayed, but not the Locked Blocks
Comment #16
vlooivlerke CreditAttribution: vlooivlerke commentedThis could be the bug: http://drupal.org/node/554324#comment-1951660
"This module is calling init_theme. So this is a bug in this module."
Any idea?
Comment #17
q0rban CreditAttribution: q0rban commentedPaul, can you try out this patch and see if it fixes the issue? Thanks
Comment #18
vlooivlerke CreditAttribution: vlooivlerke commentedOk it works, so, so
I installed the latest Admin theme 1.3
Applied your patch
Renault:
When i visit admin/build/blocks it shows my selected theme and not my admin theme (previous bug showed the admin theme)
When i visit the rest of the active themes in admin/build/block/list/minelli it shows the admin theme and not the minelli theme and regions.
If I make minelli my default site theme then when visiting admin/build/block I can manage the minelli theme regions
So all admin/build/block/list/* themes show the admin theme (rootcandy in my case)
About the Issue: Nodeblocks must be manually added to the region
it is still a bug
On a clean install the bug does not exist, but with admin theme module installed, bug reveals itself.
Even if you uninstall admin theme both bugs still exist.
Thanks for the patch.
Do I have to clear or rebuild a theme registry or something? - and how?
Comment #19
q0rban CreditAttribution: q0rban commentedOk, thanks for trying that out so quick!
I think I've tracked down the bug for the admin/build/block page. The menu callback for that page sets the custom_theme, but does so after region_manager has already been called. I feel like this is a bug in block.module, that it sets $custom_theme but doesn't unset $theme (forcing to re-init the theme).
Try this patch.. I'm not crazy about this implementation because it's using preprocess_page to manually add the region_manager menus to the region variable, which feels messy to me, and could potentially break again by another module doing something similar.
Comment #20
q0rban CreditAttribution: q0rban commentedOk, I think I've tracked down all bugs associated with having an admin theme active. Try the attached patch!
Comment #21
vlooivlerke CreditAttribution: vlooivlerke commentedGreat, Region manager now works with the latest version of admin theme.
After submitting the patch I had to re save region manager settings as the admin bars in the theme regions was non existent.
There is also no need to specify in the admin theme module to disable its functionality on admin/build/blocks as it is doing it by default.
But (and here comes the sad news) this issue was not resolved. The one of manually adding blocks.
Or was this patch also intended to fix that problem, as it seems to be caused by the admin theme module.
Thanks, your coding is really impressive.
Comment #22
q0rban CreditAttribution: q0rban commentedThat's strange; I didn't run into either of those issues while testing myself. I'll do some re-testing.
/me blushes.
Aww, shucks... Thanks! ;)
Thanks for your help in tracking this down!
Comment #23
q0rban CreditAttribution: q0rban commentedSo I tested this patch again, and it is working well for me with an admin theme. Paul, can you try again?
Comment #24
q0rban CreditAttribution: q0rban commentedI've committed the patch: http://drupal.org/cvs?commit=256442
I figure this way we can be sure we're both working from the same code. Drupal.org should package up a new dev version by tomorrow.
Comment #26
aschiwi CreditAttribution: aschiwi commentedI just ran into this issue with the latest stable release. Good to see you guys already worked on it. When will it be committed to the stable release?
Comment #27
q0rban CreditAttribution: q0rban commentedHi aschiwi, you're right, it's about time for another release. Do you mind testing out the dev release to see if it fixes your issues?
Comment #28
aschiwi CreditAttribution: aschiwi commentedq0rban, thanks for the super quick reply! I really like this module, it's great for clients.
I installed the dev release today. It solves the issue mentioned here and does not seem to bring up new issues. Here's what I tested:
I added new blocks (using nodeblock), configured block titles and moved blocks around. I checked and changed settings at admin/settings/region_manager (my blocks are called widgets), I changed what kinds of blocks are available at admin/settings/region_manager/regions/MYTHEME. Did not run to any kinds of problems.
I also love how you can now set visibility so I can uninstall http://drupal.org/project/region_visibility.
Comment #29
aschiwi CreditAttribution: aschiwi commentedHi q0rban,
I just ran into this again, forgetting I had already known the cause of it :D
I had the dev running without problems on a site from March until a couple of days ago, when I ran updates.
How about another release soon? :)
Thanks,
Anja