Blocks are self-contained collections of content and functionality that are displayed within theme regions.
1
vote
2answers
20 views
Display a block on some pages according to the fields content of that page
I created a content type called people, where I create personal pages using that type. One of the fields is 'area'.
Then, I created a view of block called 'software people', where I list all the ...
-1
votes
2answers
31 views
Features_extra: after enabling fe_block, no Machine Name field appears on block edit form
I installed and enabled fe_block 6.x-1.x-dev, but when I reload one of my blocks' edit form, no machine name field appears. I tried clearing the cache; no dice.
What's missing? Thanks.
0
votes
1answer
31 views
Find out what time was last comment posted on a node
I want to put a new icon next to node listed in a block if it was created/updated or commented on in last 1 day. I'm able to fetch all the nodes which were created/updated or commented on sorted in ...
0
votes
1answer
14 views
How to dynamically pass contextual filter to a block view without changing view settings
I have a content type called artists. In various locations I want to feature one of the artists. I have a view block that has a contextual filter for the node id.
I want to display this this block ...
0
votes
2answers
32 views
custom header image
The design for my site includes a large image slider on the homepage and a static image of equal dimensions and position on the inside pages.
To accomplish this I created a custom content type for ...
1
vote
1answer
48 views
How to allow a block on a page to load another block on same page in Drupal 7?
This is what I am looking for: On a page that has a block, I want the ability of a link within that block to load another block on the same page. (Specific case: a static page has a Views block ...
0
votes
0answers
29 views
Get the term id from the url in views
I have a portfolio View. As we are expecting: The portfolio displays all the nodes of the content type of the portfolio in a grid. Based on the selected term of the tags above we can see the ...
0
votes
1answer
15 views
Example of inserting a menu with panels
Does someone has a detailed example of how to add a menu inside a panel? I am trying to add my own menu to a panel page but I always get an error. I'm not sure if I'm missing something. Does the menu ...
0
votes
0answers
20 views
how can i pass values from a view to a block
I have two views and both of them having page as their display type. First view displays a list. When i click any item in that list ,it passes a value to second view and second view displays some ...
0
votes
0answers
18 views
Avoid twitter replies from twitter widget
I am using twitter_profile_widget with drupal 6. This block listing retweets and replies. Is there any way to remove/avoid replies for tweets
0
votes
0answers
18 views
Buy 3 Pay for 2 Campaign or Get 3 for the Price of 2
a block named "Buy 3 Pay for 2" shows random products from a campaign. when clicked read more... leads to a page with products in that campaign are shown. how do I make such a campaign? I'm using ...
1
vote
1answer
23 views
Context reaction : Exclude specific block?
I've got a website with 3 large contexts :
- internet
- intranet
- shop
These 3 contexts are "tight" (sorry about my english, I think this is the word).
My Block UI (admin/build/block) provides to ...
0
votes
0answers
17 views
Add an extra field to search block in Drupal 7
I want to add an extra button/image to the custom searchbar in Drupal 7?
But I have no idea how to accomplish this.
All help would be welcome
1
vote
1answer
28 views
accessing block type in the theme_preprocess_node()
I have a block which include a view which is based on node.tpl.php, and I want to change the mark up in the node.tpl.php file just for a specified block.
function ...
0
votes
0answers
33 views
How to make block visibility work when page has parameters
I have a block which should be displayed on a couple of page. I configured it like this :
Only the listed pages
event
event*
event/*
news
news*
news/*
It works when my url ...
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
35 views
Pass taxonomy terms from node to block
just wanted to scope peoples thoughts on the best way to do this: I have a node which surfaces taxonomy terms. I need to pass them to a custom block (templated with block.tpl.php).
The terms can be ...
1
vote
4answers
45 views
How to get jquery working on Drupal 7 - for Newbies
I have been reading many tutorials online on how to get jquery working on drupal 7.
Although there are many lines of code and examples, what i cannot find is what piece of code to put where (maybe it ...
0
votes
2answers
59 views
Can we call a custom block inside our hook_block_view()?
I have a module of type block.Now based on the user i want to display different blocks .
So i have a written the module but my dilemma is if its possible to call a block(default) inside our custom ...
0
votes
1answer
34 views
Can't render taxonomy term from block array
I am rendering variables from a block array, but for some reason when I render a taxonomy term, I get the white screen of death.
after using views_get_view() to return an array, I can render anything ...
1
vote
1answer
26 views
Site wide information data
I'm using many information data on my site. I have some blocks with the main informations like address and phone numbers, but also I have some blocks with Quick Response code, geolocations (latitude, ...
0
votes
0answers
30 views
Taxonomy field in hook_block_configure
I'm working on a block that will display a number of contacts in my organization. I'd like to make the set of people to display configurable. I'd like to provide the end user a list of positions ...
0
votes
1answer
49 views
How to show/hide login block on main page based on button in header?
I would like to ask the following:
My sections are lets say header, main page and footer.
I want to have a button in the header, and when it is pressed, another section comes up between header and ...
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
29 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 ...
3
votes
3answers
94 views
show block on pages with a question mark ( 'searchquery' )?
For example end up with url's like
example.com/viewname?f=[0]field_name=%3A21
I want to make a block visible on pages like the above but not when only the view is displayed.
Only he view will ...
0
votes
1answer
21 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 ...
0
votes
1answer
28 views
How can I ensure this block is properly cached?
I have been trying to get the some book menus displayed by nice menu, and after asking some questions on stackoverflow 1 and stackoverflow 2 settled on this code. My ultimate intention is to turn it ...
-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
124 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
2answers
21 views
How to style block on certain pages?
I would like to add a around a menu block I am displaying on a section of my site to style it differently on a certain page only.
How do I do this? Can I target a certain page with a conditional ...
0
votes
0answers
28 views
View Block not showing on homepage
I have a view block created that shows a subset of nodes. In the views configuration window, the autopreview section shows content, so I know the filters for the view are set up correctly. I ...
1
vote
0answers
22 views
Path of a block
We have a home page (Drupal 7) on which we have a block that we want to cache for only 1 minute while the rest of the page can be cached longer. We are using Akamai and Varnish for this.
We ...
0
votes
1answer
39 views
Change Content region width when Sidebar has content?
hello i have what i feel is (hopefully) an easy problem to solve. Basically i have my regions defined which is fine but i have my sidebar that i want to display on the right of the content region. if ...
0
votes
1answer
19 views
How to hide Regions and Themes in the block setting admin page?
When editing the setting of a block you can specify Themes and Regions where the block is going to be shown.
I need to hide some Region and a Theme for a given role?
Can I do this?
I tried with ...
0
votes
0answers
21 views
“Delete” link is missing in admin/structure/block/manage/block/12/configure
Just that The "Delete" link is missing in admin/structure/block/manage/block/12/configure.
It is not a permission issue since the "Delete" link is shown in admin/structure/blockand I can delete ...
2
votes
2answers
47 views
How to display my block on search results page only if nothing found?
I want to place a webform block to make user able to inform about their special queries if no search results appeared.
1
vote
4answers
72 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.
0
votes
1answer
55 views
Overriding a view with views_pre_render. How to be more specific?
I have a view which has a page display and a block display. I'm trying to write some custom code that takes one of the fields from the block and uses it to amend the title of the page. So far, here's ...
1
vote
1answer
39 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 ...
1
vote
1answer
25 views
Form Block module usage in multiple sections
While working a project i came across an issue with "Form Block" module. I used this block on a basic page in content section. Now my client also wants this same block in the right sidebar on the home ...
0
votes
1answer
45 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 ...
0
votes
0answers
20 views
How can I override WYSIWYG behavior on Block Configure overlay
Drupal 7 with WYSIWYG module and TinyMCE installed.
For certain block types, I want to force the WYSIWYG on/off, remove the ability to change the Text Format, and remove the link to Enable/disable ...
1
vote
2answers
32 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
62 views
How do I add javascript to a node or block
I've made a cost calculator script and want to use it on my Drupal 7 site.
I heard to use drupal_add_js, but I don't know in what context.
3
votes
2answers
90 views
“Create new account” Block in drupal
I am working on a Drupal project where I require a "Create new account" form on a content page. Can anybody help me out with this? Is there any module or any alternative to get "Create new account" as ...
0
votes
3answers
54 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.
1
vote
0answers
50 views
Saving form data and running custom queries in mysql
I'm new to drupal and although I've researched and asked some questions I'm still stuck on how I can achieve my end result.
I have built a php/html/mysql website (www.gbpokerclub.co.uk) but I now want ...
2
votes
3answers
74 views
Can you create a new block region using just a module?
I am writing a module that will, using javascript, create a slide down container at the top of the page. (modelled on the login here http://xenforo.com/community/).
Rather than hardcode the content ...





