Blocks are self-contained collections of content and functionality that are displayed within theme regions.
0
votes
3answers
26 views
2nd block not showing up in D7
I'm building a module with several blocks. But only one is showing up in blocks list.
Calendar shows up in block list but could you see why I cant see my 'frontdoor' block ?
function ...
0
votes
1answer
23 views
Showing blocks by url, when nodes have multiple paths
I know that having multiple path aliases to a single node is discouraged, but it is a situation I have to deal with.
My node is accessible via /news/node-1, /baseball/news/node-1 and ...
0
votes
0answers
16 views
Quick Tabs block not displaying on website
I am trying to work with Quick Tabs for a new project I am working on, and all of the videos make it seem easy, but I am having a problem.
I am using Drupal 7 with Quick Tabs v7.x.-3.4, and I am ...
0
votes
1answer
21 views
increase users to display in who is new block
I need to display more than 10 users in who is new block, i see the dropdown list has at max 10.
So, how can I increase it?
-3
votes
0answers
30 views
hook_block_info_alter [closed]
I created a block using hook_block_info_alter and that should be a function I think
I created a block name go_to_contact_page and I just want to link it to my site contact page.
This block I am ...
-1
votes
0answers
13 views
How to assign blocks in a node while creating nodes through ckeditor? [duplicate]
Is there any way in drupal so that i could able to assign blocks in contents directly. Mean that every time when i create a block i have to go to admin/strucure/block/add and add a block. Can i do it ...
0
votes
2answers
33 views
Use mytheme_preprocess_block() to display HTML (icon fonts) in block titles
Unfortunately, HTML commands in block titles are not being rendered. I would like to be able to add icon font symbols to my block titles by adding comands like <i ...
2
votes
2answers
61 views
switch views or hide block based on content type
I have a block view that gets its contents based on a contextual filter. I only want to use this filter if it's a certain node type being displayed ie. the block would use the contextual filter on ...
0
votes
1answer
25 views
Is it possible to turn on/off two layers at once with the openlayers_plus module?
Using the BlockSwitcher module that comes with the openlayers_plus module, is it possible to create a button that turns on/off two layers at once?
0
votes
1answer
17 views
Can I theme fields depending on view or block that contains them?
Let's say I have a contact content type with fields address, tel, fax, etc. My task is to create 2 views - with following markup:
First view
<ul>
<li>[address]</li>
...
1
vote
0answers
37 views
Passing a field_id argument to a contextual filter in a Views block display
I'm editing/rewriting this question since I've made a bit more progress on it since I first posted it, and now the questions I have about what I'm trying to do are more specific:
I have a content ...
0
votes
2answers
45 views
Add Block to Content but set it to appear after the node content?
I have added a block to appear in the Content region, however it appears above the content of the node for French, but below the content of the node for English - which is strange as (as far as I ...
7
votes
3answers
119 views
How do I get a block and its content commited to a Git repo?
Let's say I have created a block with some Full HTML (Facebook Feed) text inside. How can I commit the block and its text content into my Git repository, so my co-workers can pull it?
2
votes
2answers
67 views
Function to list all the blocks
I am searching for a function that list all the blocks that are enabled in a theme. Is there any function for this purpose?
0
votes
1answer
30 views
Custom theme function for language switcher block
I have a problem with theme hook suggestion for language switcher block.
I just need to place theme_links__locale_block() in MYMODULE.module file
My module:
/**
* Implements hook_theme()
*/
...
1
vote
1answer
31 views
Render content type via Form Block module using module_invoke
I am attempting to use the Form Block module so that I can place one of my content type forms in a block. I seem to be able to get to the block but I'm not sure how to render it. If I do a ...
1
vote
2answers
45 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 ...
0
votes
2answers
36 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
33 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
17 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
48 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
59 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
36 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
18 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
21 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
23 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
21 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
25 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
21 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
33 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
35 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
39 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
37 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
52 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
66 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
42 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
28 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
33 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
64 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
30 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
35 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
104 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
26 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
37 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
29 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
133 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
24 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
33 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
23 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 ...