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

learn more… | top users | synonyms

0
votes
1answer
6 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
33 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
10 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
6 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
16 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
26 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
0answers
14 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
23 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
25 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
10 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
59 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
29 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
67 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
52 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
7 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
47 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
25 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
29 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
126 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
87 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
19 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
155 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
173 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 ...
0
votes
0answers
14 views

Remove a single menu link with Context?

Is it possible to disable a single menu link with the Context module?
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
67 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
104 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
0answers
24 views

How to enforce Top Menu to show using Context

I have a new 'temp' user registration page which after a user signs ups using LogginToboggin is taken to a temporary holding page 'tempuserpage', I wish to have a alternative temporary menu which I ...
0
votes
1answer
108 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
0answers
13 views

List all paths used by Context

Is there a way (view, module, or even SQL statement) that will list paths that Content uses and to which condition names those paths belong? I'm managing a site with a legacy of 30+ context rules with ...
0
votes
1answer
46 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
113 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
40 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
0answers
54 views

Context & Views - Views block behaviour based on taxonomy of content

I hope I can explain this well. I'm confusing myself at the moment. Pretty new to drupal. I have contexts (https://drupal.org/project/context‎) set that come into effect when the condition is met ...
0
votes
0answers
31 views

Menu block dissapears

I am using Context: Menu block module to change a menu block in left sidebar depending of the Context. My problem is that I use a path rule when I define the conditions. So when the path does not ...
0
votes
1answer
60 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 ...
1
vote
1answer
52 views

taxonomy menu links change with path

Is there any way to change taxonomy menu links depending on path? I have a Taxonomy menu in a block with different levels and depending on path I would like to change the taxonomy level depending ...
0
votes
2answers
152 views

Display block based on main content type with view

I have created a view in a block, to display some related information to the current content type being displayed into the block. More precisely, I want to display the block only for book pages. What ...
0
votes
2answers
137 views

How to change the place of a block or region based on url path?

I have a menu block and it will be displayed on all pages, but I need to change the placing of it. On certain pages (dependent on path) I need to display it above the main content, while on other ...
4
votes
1answer
549 views

how to programmatically check if a context is active

I am reading through the API of the drupal 7 context module, and searching for examples, but I can't find a working example of how to programmatically test if a context is active for the current page. ...
0
votes
1answer
109 views

Use taxonomy terms to set node access for a user

I have a vocabulary with two terms. Vocab:A Terms:b,c I use them in two places. At the first in the registration:In the config->account->fields. And in the one of my content type. Now I want when a ...
0
votes
0answers
391 views

drupal_get_form() in hook_block_view() causing 'Warning: mb_strlen() expects parameter 1 to be string, array given in drupal_strlen'

I am using Omega3 - Context - Delta. The site cannot be seen by unauthenticated users. It has a custom 3-step registration form that sits inside of a block on the front page. The error only appears ...
-1
votes
1answer
69 views

Design help, for classified site [closed]

I am looking to develop classified site as a way to teach myself drupal 7. My main question is how to create context aware based on the city selected. eg. On the top I will have way to select city. ...
0
votes
1answer
319 views

Drupal 7 Panels Custom Context

I have created a Panels Everywhere variant that uses a single View with a contextual filter (Content Type). The Panel variant is set to page paths. These paths are related to content types. For ...
0
votes
0answers
230 views

Drupal 7 Form Add URL Arguments

I have a complex page with a few blocks including a Views block that I need to contextually filter on. How can I create a form in Drupal that passes arguments (selections from the form, i.e. text, ...
0
votes
1answer
89 views

How would I add a section header sub-image based on path in Drupal?

A client has asked me to enter a graphic header (really a sub heading) on a site. This sub-heading graphic would fit nicely, side aligned into the header or leader region inside our subtheme based on ...
1
vote
3answers
48 views

Ways to have lots of blocks on a site which is easy to manage

I am building a new site and the client has about 400 pages under about 5 main categories. Each of these 5 sub-categories has further sub-categories. My client want to put a block onto each page ...
0
votes
0answers
53 views

Context module missing “conditions” and “reactions”

I'm having a strange issue with the context module after having successfully used it. No options appear when the context's "condition" is changed during the setup or edit phase of a new context. A few ...
0
votes
0answers
127 views

Substitution keywords not working in Mini Panel (D6)

After loading and rendering a mini panel programmatically (see code below), substitutions are not working when adding a "custom content" to the panel (for example: %node:nid) I have the checkbox "Use ...
0
votes
1answer
108 views

Does a Context Condition Path need to exist?

I have a context that has a condition Path of FooBar/* I added a block (Reaction) view for that context. When I go to /FooBar/Mens_Bible_Studies, the view shows, but I also get "Page not found"? Page ...