Tagged Questions
0
votes
1answer
32 views
Alter a form in a block only if it is in a certain region
In my template.php I'm trying to alter a form in a views exposed block, but I only want to do this if that block is in a certain region in my theme.
I'm using Drupal 7.
Is that possible? What php ...
0
votes
1answer
22 views
Place output of a custom module in a specific region
I am using the following code in a custom module to get the title of the node form in the node creation form, i.e, if i add a new content of type BLOG then on top of that node_add_blog form i get a ...
0
votes
1answer
28 views
Omega - Debugging blocks only for specified role
Is it possible to see debugging blocks only for specified role?
IDEA
I made special role "theme developer" to see debugging blocks of Omega only for this role. When I check in ...
0
votes
1answer
19 views
how to create tabbed blocks for recent comment and recent content?
i want to create a tabbed block with two tabs . One for showing recent content and one for showing recent comments .. how can it be done in drupal 7 using only the modules ??
1
vote
1answer
31 views
how to alter block subject html tag?
I am trying to change the <h2> tags that block.tpl.php uses to wrap <?php print $block->subject ?> to <h3> tags so that I can target them with jQuery UI Accordion. I've got the ...
-2
votes
2answers
73 views
Is there a module that can hide sidebars and expand them when required?
I need a more space in the centre of the web page but the side bars take up too much space.
Is there a module that can place the sidebars in a single block that can be expanded and contracted as ...
0
votes
5answers
122 views
Why aren't the main menu and the secondary menu simply regions?
I noticed that you can put content pretty much anywhere ( where a theme provides regions) using blocks.
This becomes pretty straight forward and makes sense. But then I was trying to find where the ...
1
vote
4answers
65 views
How to assign block access programmatically?
I have created a block programmatically but I don't know how one goes about assigning role access to it programmatically. Any ideas how this is done? I am using Drupal 7 by the way.
Thanks.
1
vote
1answer
35 views
Changing vertical alignment of teasers to horizontal
I use the theme 'Business' and the standard setting of it is that the teasers of the articles I put on the front page are aligned vertically, but I'd like to have them horizontally in blocks of ...
0
votes
1answer
39 views
get language path prefix code as contexual filter parameter
in drupal7
i have a block that shows recent posts which created with views
i want it to shows the translated posts of each language when i click the language switcher switch the language
i have two ...
1
vote
2answers
30 views
clickable links in revolving banners
I am a newbie to Drupal 7.21.
I have got as far as creating a rotating banner for my front page. Now I want to have a clickable link from each banner to a new page that gives more information about ...
0
votes
3answers
51 views
Is it safe removing block-inner clearfix classes from block templates?
Is it safe to remove block-inner clearfix templates from block? I use mainly context module which works with blocks. Looking at html there is too much wrappers involved. Thank you.
0
votes
2answers
41 views
Trouble getting block to display after module enabled
I've created a drupal module, it's info file, and a tpl.php for the block all in the same module directory. When I enable the module, I can see the block listed and assign it to a region. However ...
0
votes
2answers
55 views
very simple form in block rendering incorrect values
I have a very simple code in block :
if ($vocabulary = taxonomy_vocabulary_machine_name_load('caller_details')) {
module_load_include('inc', 'taxonomy', 'taxonomy.admin');
$output = ...
2
votes
1answer
44 views
How to theming and deploy custom blocks which created in admin UI?
I've created some custom blocks in my development environment and export them with Features + FE Block with given machine names. And then deploy and enable them in my staging environment.
Just like ...