By stborchert on
Hi.
I've updated flexiblock to work with drupal 4.7.
There are some enhancements:
- now it works as a replacement for the built-in block module
- url /admin/block points directly to the admin page of flexiblock (there is no need to have nearly the same form twice)
- no static regions
- You are now able to define your own regions for each theme (/admin/settings/regions), so you're not limited to 10 regions anymore (don't know if one really needs more than 10, but you are able to) and you could name your regions. This regions then are available in the (flexi-)block-form.
In your theme for example you call the blocks with
theme('flexiblock_html', 'menu 1');
download module
(please rename to flexiblock.module)
I would be glad if someone could review and test it (perhaps I forgot something).
Stefan
Comments
Would this make it easier to
Would this make it easier to have blocks only on dedicated pages i.e. if I have at top menu, with 5 titles, I would like a block to only be visible on the dedicated page... for instance if I select About on the topmenu, a new static page should be shown, and a block on the left hand with submenus such as contact, history, vision and so forth....
I've tried it with the standard Block "tool" in 4.7... but no dice.. all blocks are shown on all pages.... regardless of the selected topmenu...
Hope You understand and pray that you might be able to help
Already implemented!?
Hi.
If I understood you right you want to display a block only on specified pages? This is already implemented in the built-in block module.
Got to admin/block and then click "configure" for the block you want to change the display settings for (sample url: admin/block/configure/user/0 for "login" block). On this page you can define on which pages the block is (or is not) shown.
If you look at http://www.unikino-hannover.de/ (german) you will see a pre-drupal site I'm switching to drupal at the moment. The menu in the red area is a block and in the yellow area the are blocks (menus) shown dependent what page is displayed.
hth,
Stefan
There is a difference
flexiblock as used on ozmotorsport.com.au allows you to place numerous blocks anywhere on a page with any content not dependent on what node you are viewing allthough restriction is still possible
Thankyou!
Thanks a Million, Stefan - as I rely very heavily on Flexiblock to implement designs that don't *look* like Drupal, availability of Flexiblock was a dealbreaker for me moving to 4.7!
no needed anymore
Hm, it seems flexiblock isn't needed anymore. drupal 4.7 already implements flexible regions for themes.