The Context module allows you to manage contextual conditions and reactions for different portions of your site.

learn more… | top users | synonyms

1
vote
0answers
11 views

Block vs Context positioning facet block filter

I have a Drupal Commerce site with faceted search (Search API + db index + views and facet blocks). My setup is as follow : - Catalogue view (based on my search index) - Facet filters block placed ...
1
vote
0answers
15 views

Drupal 7 - How to configure custom regions from Display Suite in Context?

I have a page where I set to show a 'Two column stacked layout'. So I assigned a block of links on the left region. On the right region, I will use Context to show the respective custom block based on ...
1
vote
0answers
13 views

What happens when multiple context conditions match?

I have a multi-site setup using multiple contexts: Context A Conditions: - Path: <front> Reactions: - Block: sidebar-left Context B Conditions: - Domain: ...
0
votes
1answer
22 views

Domain context ignores domain aliases

I'm using Drupal 7, Context and Multisites. A Context determines which Block to render based on the domain's URL. This works fine for the live site with the actual URL. My dev environment uses ...
0
votes
1answer
17 views

Change certain parts of the layout

Iam using Omega 4 and Drupal 7 and Iam wondering how to apply layouts just to certain parts to the website. My website almost stays the same, header and footer never changes, just the content area. I ...
0
votes
0answers
28 views

GENERATE PDF WEBFORMS DRUPAL [duplicate]

I istalled webform2pdf and tcpdf for download forms and i create form i cconfigure webform2pdf but when i Click in download pdf on the form that i was created i have a error say : Fatal error: Call ...
1
vote
1answer
16 views

blocks become hidden!

I created some blocks, and I assign them to regions for specific layout using context (and context_omega). now I can't see these assigned block in the admin/blocks. but I can see them being rendered, ...
1
vote
0answers
11 views

How to determine screen size using the context module programatically?

I have created a node template that needs to display content differently depending on screen size. Basically I have quicktabs being rendered horizontally when in desktop mode and then would like to ...
0
votes
0answers
20 views

Display Drupal block on node pages with taxonomy term set on node

I added a taxonomy term field to the "Basic page" content type. I'd like to display a specific Drupal block on all pages where these "Basic page" nodes are displayed in "full" view mode (not as ...
0
votes
0answers
12 views

added context with “context block disable” module and got two errors

The errors say "Unidentified property" and as a non programer I guess it's not something serious, but I do wonder why does the two errors repeat one another and why would they appear? thx.
0
votes
0answers
18 views

Context is not being applied in Drupal 7

I searched for my problem so please forgive me, when this is duplicate as I'm newbie and the drupal specific terminology isn't my native tounge :) I set up a delta "delta_theme" for a theme I'm ...
0
votes
1answer
29 views

How can I change page elements (menu, blocks, etc) based on a chosen 'audience' link?

There are many sites which allow users to select their "customer type" or "audience", which then displays different information on the front page and provides them with navigation and content ...
0
votes
0answers
22 views

Context omega with Omega 4 not rendering block

I have Omega 4 installed along with the Context omega module. I am trying to add a context based on my path to add two blocks to the template. I am working on a development server and based my context ...
0
votes
0answers
27 views

context condition for field group multipage

I have a node form configured with field group multi page, my node form is outputted as a block on the front page. I want to disable(hide) the rest of my front page blocks when the user is on the ...
0
votes
1answer
8 views

how can i re-direct a user of a particular role, if that user tries to access a page containing certain content type?

i have set a up a role called subscriber. If a non-subscriber (authenticated or anonymous user) tries to access a page with content type of ‘video class’ i’d like to have them redirected to a page ...
0
votes
0answers
12 views

how can I use the context module to make a view display only one type of taxonomy?

I am using context to add a taxonomy term as a class in the html. how can I make the view read this class and decide based on the taxonomy whether this piece of content belongs or not
0
votes
1answer
47 views

Is it possible to hide a menu item using menu blocks in context based on user roles in Drupal 7

I am using the Menu block module to create menu blocks and have them attached to the menu in Drupal 7. I am also using the Context module to display the menu and items on different pages. I have a ...
0
votes
0answers
11 views

Exposing article contents to blocks loaded within a context

I have a context that dictates some blocks to be rendered on any node of the type "article", and some of these blocks have dependencies on contents provisioned by the Article content type (namely, the ...
1
vote
1answer
149 views

Show block on all 404 / 403 pages only via context

Without having to install even more modules on the site for context. I know there a boat load of plugins for context, but I was wondering if this can be achieved by just using core context: I ...
0
votes
0answers
32 views

Problem getting context module for Drupal 7 to load template

I am using the Context module for Drupal 7 and am experiencing the following problem (I suspect I am missing something basic here): I am trying to select a different template to use for the user ...
0
votes
1answer
107 views

how does context mobile detect module work?

I cant find the documentation as to how to use the context mobile detect module. Is it used the same as the mobile detect module? With these parameters? $detect = mobile_detect_get_object(); ...
0
votes
1answer
76 views

Using Drupal 7 & Omega 3.x - Page Titles + Edit Tabs are not showing up on node content types!

It seems that my page titles and the edit tabs have disappeared. I'm currently using omega 3.x and drupal 7. However the weird thing is that its showing up one content type, but not on others. I even ...
0
votes
0answers
15 views

Quicktabs instance (3 tabs) - How to place in a node?

I'm probably missing something obvious. I have a Content Type called "News-Notices" with specific input fields for the content editor. One of the fields is a Term Reference (3 subtypes of ...
0
votes
1answer
41 views

hour - based context

I would like to add body classes by context depending on the time of the day. One class for the morning, another for the midday, another for evening. I expected the context date module to do thatm, ...
0
votes
1answer
91 views

context block visibility - disable block for certain role

I use drupal 6. I want to show a block for all users (anonymous, authenticated, all roles) except role XY and some paths. I use context module where it is easy to set path rules. However, setting ...
0
votes
0answers
32 views

Getting required contexts in a panels style plugin

I'm trying to make a panel region style plugin that wrapps a panel around a link. And I'm trying to get the list of available contexts $plugin = array( 'title' => t('Linked'), 'description' ...
0
votes
0answers
12 views

Correct use of the context module to overtake the blocks assignments page?

Currently I'm using the regular blocks page to make assignments to the head/footer regions as those are relatively static. But one issue im running into is that I need to assign the "main content" ...
-1
votes
1answer
24 views

How do I target different types of anonymous user after a gateway page?

So there are a whole bunch of useful tools in Drupal for changing how a website looks depending on a number of factors, including which page you're on, what roles you have, whether you're logged in or ...
0
votes
1answer
46 views

Filter nodes matching user account field [list (text)] using different field names but same key

There is a field of type list (text) [field_list_user] on user accounts and a field of type list (text) [field_list_node] on nodes. Both fields have exactly the same keys but different labels [and ...
0
votes
1answer
102 views

How to hide header and footer from 404 page?

I create a 404 page on D7 site ( ie. mysite.com/404), which is a Basic Page. I am trying to hide the header and footer from this page. The header and footer are blocks, and they are placed in every ...
0
votes
0answers
44 views

Default value for entity reference inside panel

I want to use panels for a users to submit reviews for other users. The idea is to use panels and have the reviewed user in the top section of the page. Then below the add form fields for the content ...
0
votes
1answer
29 views

Using the Sites module with a multiligual site

My multilingual site has three sets of (anonymous or logged-in) users: public, set1 and set2. They will all get the same site structure, but set1 or set2 will see slightly different content on some ...
0
votes
2answers
132 views

How to make a custom block listen to context module?

I've been creating my own module that consist an array of blocks. I plan to print them using context as oppose programatically as I already have the module on use (no need to reinvent the wheel). ...
0
votes
0answers
28 views

How to load different menus according to context?

This should be seemingly simple. I've bought a Drupal theme and it doesn't allow custom menu modules to be used for displaying menu items, e.g. menu_block or tb_mega_menu. It displays menu items from ...
0
votes
1answer
29 views

How can I disable a region at with the context module at all pages but the <front> (home page)

How can I disable a region at with the context module at all pages but the (home page). I've been trying to disable a region on all pages, except the , without having to write all the paths. I can't ...
1
vote
0answers
124 views

How to load all contexts of a Panels page?

The Panels Ajax Tab module is loading panes (minipanel pane) on panel pages via Ajax: $pane = panels_mini_block_view($name); echo $pane['content']; This will get the contexts defined on the ...
0
votes
3answers
77 views

Drupal 7 template_preprocess_block

I am trying to alter content of the system main block but only on the front page. I have added template_preprocess_block() in the template.php file, but is_front is FALSE even though I am on the front ...
0
votes
0answers
42 views

terms selected using entity reference and context module

Possibly a bug while communicating term selected by entity reference to context module with condition taxonomy. I created a view of type term, display: entity reference,fields:taxonomy term name Then ...
0
votes
1answer
344 views

How to disable/enable a context programmatically

I want to disable contexts programmatically (for automated updates, where a new release of a website needs a context to be disabled). I manage contexts using Features, but Features doesn't hold the ...
0
votes
1answer
129 views

How to make blocks contextually aware of current webform page

I have a multipage Webform that lives at a single URL and I would like to place certain blocks depending on which page the Webform is on. None of the webform hooks give access to page number, and the ...
0
votes
1answer
111 views

How to add active class to a specific menu only, while ignoring other menus?

I have 2 conflicting menus I need to solve by adding an active class to a targeted menu only, they are a user menu and a profile and account settings menu which have overlapping links. User Menu (in ...
0
votes
2answers
29 views

Can't place context-controlled block below user picture on user profile page

I have a views block of user content that I want to display on the user profile page below a custom generated block of user information created in code via a theme function (using the ...
0
votes
0answers
14 views

Using Context with triggers and actions

I want to use several actions on node update/create but redirect to different URI based on node type. Using context and triggers and actions is it possible to accomplish this?
0
votes
1answer
73 views

404 when using named placeholders for variable parts of Panels path

I'm creating a landing page using a custom content type in Drupal 7, I've set up the views and had everything working correctly, but then I decided to change something at the last minute and add named ...
0
votes
2answers
58 views

How do I create a page (with a url) that displays only views blocks

I have been using views to create all of my pages. I am wondering if there is a way to set up a page (with url) that is initially blank. I want to use context to place view blocks on this page based ...
0
votes
1answer
113 views

Context shows empty views block

I've got a views block that shows data from node field. I've set up a contextual filter NID: WHEN THE FILTER VALUE IS NOT AVAILABLE Provide default value: content ID from url. I've also set up a ...
0
votes
1answer
41 views

Customizing where to show block

Let's say I have nodes with the following paths: /chapters/university-of-florida/classrooms/class1 /chapters/university-of-chicago/classrooms/class2 /chapters/ucla/classrooms/cla I'd like to ...
0
votes
2answers
298 views

hook_context_default_contexts() in Drupal 7?

I used Bulk Export to export all my Context definitions into my module in a function that implements hook_context_default_contexts(). However, my default context definitions do not appear if I delete ...
0
votes
1answer
64 views

Separate panels variants for 'edit' & 'add' nodes of same type

[D7/Panels 3] I have two different panels layouts - one for editing, the other for adding nodes of the same content type ("Contact Details"). A panel page for overriding 'edit' pages exists in ...
1
vote
2answers
74 views

which context reaction is firing

im creating some pages that have specific layouts for tablets and mobiles, to send a targeted view and template im using context, context breakpoints and delta. But i need some way of seeing which ...