Tagged Questions

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
7 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" ...
0
votes
1answer
9 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
11 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
16 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
10 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
15 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
31 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
22 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
18 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
27 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
42 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
19 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
83 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
42 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
64 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
14 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
9 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
56 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
21 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
39 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
53 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
39 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
0answers
22 views

Context Entity Field does not showing the field entity option

After installed the Context entity field module and enabled it and when i am in the context form, under the drop down list "Add a Condition" the option "Entity Field" does not showing up. is there ...
0
votes
1answer
35 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
149 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
38 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 ...
0
votes
0answers
81 views

Use all results from a View's Context Display as Contextual Arguments for another View displayed as a Content Pane in a Panel

I have two fairly simple Views, the first (a "Master" display and a "Context" display): Name: Content Display all Content Types Show Node Title and Node ID Sort by Note Title ASC Contextual Filter: ...
1
vote
2answers
45 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
0answers
20 views

Turn on Debug context reaction for every active context rule

Is there a way to toggle the Debug context reaction for each active Context Condition?
0
votes
1answer
126 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
31 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
142 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
92 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
0answers
10 views

How do I apply a context if the page's menu scope is NOT in “main menu”

I see how I can apply a context if a page belongs to a menu. However, I'd like to apply a condition if the node's menu is not a part of the Main Menu tree.
0
votes
0answers
57 views

How do I display context links with EntityFieldQuery?

So I wrote a custom Quicktabs module to load all content of type 'tree' using EntityFieldQuery. What I want to be able to do is when I click the active tab of the Quicktabs, I want to have the context ...
0
votes
0answers
42 views

Remove Context on node edit page?

Is there a way to make a Context not active if your on the node edit page? Ive tried adding a node type context and not selecting any of them and choosing no on set node form but the context is not ...
0
votes
1answer
52 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
177 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
108 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
20 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 ...
1
vote
0answers
205 views

Context OG Reaction: Block does not appear on Views override pages

I'm using the module Context OG in order to use the condition "OG - Member Role" in a context. The context by itself works without problems, until I override the node page with a view. The view by ...
0
votes
1answer
271 views

How to set context by url argument for node preprocess

I have a View of nodes, rendered using a Display Suite view mode. I need for users to either view the page with or without an argument in the path. If they don't enter an argument, I want the nodes ...
1
vote
1answer
15 views

Integrate Switchtheme with Context?

Im using Switchtheme to allow users to switch the theme of my site. Im also using Context and id like to create a new context depending on what theme has been chosen, but I cant see any options for ...
1
vote
2answers
77 views

Make a block display in one page and not in other

I am using Drupal 7 with omega and adminimal theme. I use adminimal theme for my iframe in the site (using entity iframe module). I would like to display a block in the adminimal theme alone, but not ...
2
votes
2answers
154 views

Advantages of using context for sitewide blocks?

As far as loading time is concerned I haven't seen anywhere, including the documentation, if there is a real advantage in using the context module to display sitewide blocks over the Drupal default ...
0
votes
1answer
165 views

Fatal error: Call to undefined function context_get()

I got an error after trying to update two modules: Fatal error: Call to undefined function context_get() in sites/all/modules/context/context_ui/context_ui.module on line 422 Also: An AJAX ...
0
votes
1answer
66 views

Context module not triggering Delta snapshot

I am using the Omega theme, and have the Delta and Context modules enabled. I created a Delta snapshot, and then created a Context to load that snapshot on the front page. I created the context ...
0
votes
1answer
195 views

how to import cck data from drupal6 to drupal7?

Now I have to upgrade to drupal7 website from drupal6, but there has been a new during the upgrade of the old site data, mainly CCK and taxonomy, what would I do for the way to the input of CCK in 6 ...
2
votes
1answer
43 views

How do I tell hook_block() about placement

I may have a disconnect and I'm just not sure if what I'm asking is possible. I'd like to tell Drupal where to place a block. So far I'm using a Context with a path condition to user/* and stream. ...
0
votes
1answer
71 views

context path and subpaths

I have a problem with Context path condition. I would like on the conditions region to assign something like path/* where * indicates all its subpaths. For instance, if we have path/subpath1/subpath2 ...