Closed (won't fix)
Project:
Marinelli
Version:
6.x-2.96
Component:
Miscellaneous
Priority:
Normal
Category:
Support request
Assigned:
Unassigned
Reporter:
Created:
27 Oct 2007 at 13:55 UTC
Updated:
17 Jul 2016 at 01:26 UTC
Jump to comment: Most recent
Comments
Comment #1
Lioz commentedall blocks use the same container. if you want to customize a particular block you have to edit block.tpl.php with conditional statements: for example: if you have a block with subject=example you can use this code
then you have to create a block-example.tpl.php with the html code you want to use
let me know if this solves your problem.
Comment #2
battochir commentedBingo! Thank you Matteo. I was a bit confused by not be able to call blocks by ID, but rather title. Now it's clear to me. I can call any block by simply referencing the title. Problem solved. Nice. I appreciate your help with this.
ciao,
wim
Comment #3
Lioz commentedok fixed ;)
Comment #4
(not verified) commentedAutomatically closed -- issue fixed for two weeks with no activity.
Comment #5
pepemty commentedsubscribing
Comment #6
mikeytown2 commentedChange block.tpl.php from
<div class="defaultblock">to<div class="defaultblock block-<?php print $block->module; ?>">. Line 2Comment #7
jcnventuraThis is actually a problem in Marinelli not following "core".. Why didn't you copy Garland's block first line:
This provides a simple way for themers to identify and theme each block without having to create their own block.tpl.php, or to add extra lines to the file provided by the theme.
Comment #8
green monkey commentedthank you all for this post :))
Comment #9
green monkey commentedI ended up moving the code up above the h2 - so I could theme the h2 block too
again thank you - I was so frustrated with the darn blocks - wow - do I have control now :))
Comment #10
dafederAgreed - no reason not to provide a way to style individual blocks out of the box!
Comment #11
Katrina B commentedSubscribing; I was looking for this functionality as well, and I would like to see it become a permanent part of the theme.
Comment #12
tedfeely commentedI'm a newbie to Drupal and a notbie (not at all be) to PHP and am trying to get Marinelli blocks to drag and drop.
I replaced Marinelli's block.tpl.php script that follows:
. . . with the suggested code listed above:
And, am now getting ubiquitous error messages that say:
Notice: Undefined property: stdClass::$content in include() (line 47 of /home/romeapar/public_html/modules/block/block.tpl.php).Line 47 is:
print $block->content;Any help correcting this will be most appreciated.
Comment #13
oadaeh commentedThis issue is being closed because it is against a branch for a version of Drupal that is no longer supported.
If you feel that this issue is still valid, feel free to re-open and update it (and any possible patch) to work with the 7.x-4.x branch.
Thank you.