The Context module allows you to manage contextual conditions and reactions for different portions of your site.
0
votes
0answers
10 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
19 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
17 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
15 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
16 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
38 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
13 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
52 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
26 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
60 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
11 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
7 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
35 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
18 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
33 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
47 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
32 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
19 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
34 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
122 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
32 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
69 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
42 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
16 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
113 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
117 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
87 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
9 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
53 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
38 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
49 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
157 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
105 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
199 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
255 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
17 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
73 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
139 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
25 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
151 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
14 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
64 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
173 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
41 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
69 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
61 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
222 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 ...