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

learn more… | top users | synonyms

0
votes
0answers
14 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
26 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
17 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
21 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
9 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
43 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
10 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
104 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
27 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
58 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
60 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
13 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
40 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
74 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
26 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
11 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
38 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
85 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
32 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
28 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
105 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
24 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
96 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
66 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
36 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
276 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
110 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
95 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
24 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
12 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
0answers
179 views

Node Add Form in Panels 3

I created a page from the page manager and added a new variant in it. Then I went to the variant's context setting tab and added a context for node add form. I selected a type then head towards the ...
0
votes
0answers
29 views

Setting views block arguments from context

I'm using context to display block made with views. I would like to set the argument (contextual filter) from the context UI. I want to do that so I can create one views to display many block on the ...
0
votes
1answer
67 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
57 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
90 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
39 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
250 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
55 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
58 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 ...
0
votes
1answer
187 views

Add class to body depending on role of author of user page

I need to add a class to the body based on the author of the user profile page. I have two roles on my site: standard and premium. I would like to create a body class to reflect this. So, if I am on a ...
0
votes
0answers
32 views

Reference to content type

I have multiple content types for consumer electronics goods, like "tv", "laptop", "mouse" etc. Every content type has its own fields and exposed using contexts and views with custom facet api blocks ...
0
votes
1answer
231 views

Link webform to a specific node

Use-case-scenario: There are multiple content types. There is the webform module. Context and Views are used. Requirement: Display specific webform below specific node. The content editor should be ...
0
votes
1answer
121 views

Context Module Rehashing Blocks Slows Website on Development

So I'm working on a big website that runs fine on live (A bit on the slow side, but not unbearable), but when it comes to development servers it runs like ass (30 seconds to load a page ass). I used ...
0
votes
1answer
74 views

See which context is used on a page when looking at the page

When you are watching a page, is there a quick way for seeing all of the contexts that are being applied? Ideally I would like to be able to see which context is responsible per the blocks.
0
votes
0answers
235 views

views arguments not working with context

I am using Drupal commerce, context and search api module in Drupal 7 website. I have created views to display all products, which is working fine. Now, I have added contextual filter product ...
2
votes
0answers
127 views

Contextual filter that checks front page URL for taxonomy term

My site is laid out in the following way using the Sites Module: mysite.com/one mysite.com/two mysite.com/three (And so on) Additionally, there are subpages created with Context for each of these ...
0
votes
1answer
31 views

Context within context?

I need 2 context that are identical expect that a single block will not be shown for one. Do I have to create 2 completely separate context (which will be more work to maintain)? Or is there someway ...