Our solution to the tumbling blocks

panatlantica - June 5, 2006 - 15:21
Project:Taxonomy Theme
Version:4.7.x-1.x-dev
Component:User Interface
Category:bug report
Priority:normal
Assigned:Unassigned
Status:active
Description

This is a bit a reopen of the Taxonomy theme changes block settings issue as I do not really see it resolved.

This is what happens: on a fresh and new installation of Drupal 4.7.2 (and already in 4.7.1), I have multiple regions set up in my template.php file.

Also I have a custom theme in various different color versions. So basically, all templates share the same code but differ in some CSS definitions for colors and some different decorative images which are called from each individual template CSS file.

There are blocks set to various regions.

All works wonderfull in the standard template. Also the theme switches as desired and everything remains in place. EXEPT for the blocks:

If they are in a custom region, they are spit out on totally different places on the page on the other, non-default themes.

If they are on a classic position (I even tried to get rid of any additional region and remain just whit the standard Drupal regions), these blocks tend to dissappear).

What ever you try in the configuration of everything, the result remains the same: Block positions and block visibility works fine in the default theme, in the other themes that switched in nicely by Drupal, everything ends up in total chaos.

#1

profix898 - June 5, 2006 - 15:49

Just to make this clear ...
- you need to enable all themes you plan to use with taxonomy_theme
- go to admin/blocks and configure block settings for EACH of your themes

With Drupal 4.7 block settings are per theme now, what means you cant
configure your blocks in one place for all themes, but you need to do that
repetitive for EVERY theme. Once you did that you shouldnt have problems
with disappearing/jumping/... blocks.

#2

panatlantica - June 6, 2006 - 12:26

Hi. Sorry. I have done just that. I thought it could matter going through block settings for each theme. I already realized they only turn up here if I enable all templates... Sorry, did not want to upset anybody... but the tumble of block positions sadly still exists... :-(

#3

profix898 - June 6, 2006 - 17:17

You didnt upset anybody. Its just a little frustrating to get mails (or issues), because people cant/dont read the documentation of Drupal and the contributed modules ... my previous comment was only to make sure you setup block settings for every theme. I got 5-10 mails from people asking about block settings and all of them didnt realize that in 4.7 you have theme-dependent block settings. (In 4.8 we will have block per role additionally. I fear that will make confusion perfect :/)
The problem is that I dont touch the block settings directly. Taxonomy_theme is build to switch the theme on a higher level. All the actual work is done by the theme system or the theme engine. If you have all blocks configured properly you shouldnt have any problems with tumbling blocks. On my installation(s) the themes switch nicely and all blocks are where they are expected to be displayed.
- Can you provide a detailed description how to reproduce block chaos?
- Do you use phptemplate-based themes only? (Maybe this is stg. with smarty, xtemplate, ... engine, I havent checked that so far.)

Thilo

#4

toma - June 15, 2006 - 16:25

Hello

Thanks for your great job, this module is really useful, what i did is make a new theme based on fancy theme,

My default theme is fancy

I assign a new theme named Sports to taxonomy sport, it works fine , it switch to sports theme when iam in the sports taxonomy

This is for the default theme "fancy"
http://www.biladi.ma/admin/block

This is for the sports theme
http://www.biladi.ma/admin/block/list/sports

I am trying to make visible some blocks to be showen only with sports and so on

The problem is the changes doesn't work, it only change the fancy block setting and the sports take the fancy (default theme) placement , block setting...

Every change to the sports theme within the blocks administration doesn't work, and only change the fancy theme!
as the fancy theme is the default theme, everytime i go to the blocks configuration show the same block setting, hope you get what i am talking about, the taxonomy theme module work to switch between themes but with blocks , it doesn't work, i can only have the same blocks, with all and different themes with taxonomy

I am using the last taxonomy module in 4.7 modules download, drupal 4.7.2

fancy is the default theme
sports theme is enable

I am trying to make different regions for sports theme, i can't see the regions on sports configuration blocks, only fancy regions

Thank you

#5

toma - June 15, 2006 - 16:46

I disable the taxonomy theme module and i still have the same problem i am using 4.7.2 , its a drupal 4.7.2 issue

#6

toma - June 15, 2006 - 20:40

I am sorry i make test with Heine and he found that tagadeclic module was enable in my drupal installation and thats why i have this issue, some modules call theme function , thats why taxonomy theme won't work with blocks

thanks a lot

#7

svsouth - March 19, 2007 - 21:32
Title:Taxonomy theme changes block positions» Our solution to the tumbling blocks

We discovered that the problem that we had with the tumbling blocks was that all the pages that contents HTML bad code were causing the tumbling blocks when we used the taxonomy module.
The solution was to edit all the HTML bad code only in the pages that were causing the tumbling problem with the taxonomy module.

#8

discursives - May 7, 2007 - 14:03

I am having this issue with Drupal 5. I would like to know what about the html was causing the problem, please.

#9

edzhus - August 9, 2008 - 12:02
Component:Code» User Interface

If someone finds this thread from Google and are looking for getting around this situation, there is a module http://drupal.org/project/blockregion which makes the same block settings appear for all enabled themes.

 
 

Drupal is a registered trademark of Dries Buytaert.