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

learn more… | top users | synonyms

0
votes
2answers
19 views

When to use views_get_view_result Drupal 7

I have basic listing in a View. I can give styles, or unformatted text, provide a link, etc. However, I would need the listing to be a list of linked items, with the destination URL changing depending ...
2
votes
1answer
28 views

Altering the view mode of rendered entities in a View Context via Ctools Plugin

I don't even know if what I want to do is possible, so bear with me. My set-up: I have a View Context that accepts an author UID argument from the Panel context, and then displays content created by ...
0
votes
0answers
14 views

context of view page doesn't show reaction block

So, I'm trying to have a block show up when my page has a specific page view, and to do so I use the context module. To make sure my context works, I added a class to the html. It does show up. But, ...
1
vote
1answer
23 views

How do you go about using contexts and a menu page callback?

Currently we have a page that is generated by a hook menu page callback. The path is structured like menu/%location_name/menu/%parent_category/%child_category. The function requires at least one of ...
0
votes
0answers
17 views

Better way to find out which context rule sets a block [duplicate]

I'm using Context to put blocks on my pages. When there are ~10 or more contexts, things can get pretty unwieldy. I can no longer look at a page and see immediately which context rule is responsible ...
0
votes
0answers
25 views

Explain : Please choose which context and how you would like it converted

Can you please explain what is "No context" means here and how would changing it affect my results? Thanks in advance. :)
0
votes
0answers
16 views

Trying to show and hide panes respectively based on whether view is empty

I am trying to show one panel pane (of a View) and hide another Panel Pane if a particular View is empty. Let's call them Pane1 (the View pane) and Pane2 (which is technically a nodequeue View, but ...
0
votes
2answers
27 views

How to make a specific template according number of nodes in a content type?

I have a content type article and I need a specific template for showing articles according the number of nodes. If I have 2 nodes (content type article) I need to make a template, if I have 3 nodes ...
0
votes
0answers
19 views

Context path on multiple subpath

So, I have a hook_menu creating a page like category/page. I allow two parameters on this URL. It looks like this : // Menu declaration $items['category/page'] = ... // Page argument 'page ...
0
votes
1answer
34 views

Hide blocks in node page using context

i am new to context module and based on some tutorial i have used context. Now my problem is, Currently, I have created one context which will show default header logo in all the pages. Now got new ...
0
votes
0answers
30 views

Add block fields as contextual filter in view

Is it possible to add field from block into contextual filter? There is a custom block listed on front page containing three drop down select list fields depending to one another. First field ...
0
votes
1answer
39 views

Is it possible to override configuration with yml files?

Override configuration guide shows how users can override configuration with global $config variable, for example by using settings.php file (the same method as for D7). But is it possible to ...
0
votes
0answers
21 views

Update view when attribute change are made on a product

My goal is to print the stock level with an out of stock message on a product display page using drupal commerce kickstart2. I am using Display Suite's dynamic field to include a view as a field. In ...
0
votes
0answers
19 views

set context based on age of most recent comment on page?

Can I set a context for article pages where the most recent comment has <24 hours? I would like to change caching behavior for "active" articles (for this I can to use context and ...
1
vote
0answers
26 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
28 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
24 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
33 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
24 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
19 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
38 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
30 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
17 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
25 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
38 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
33 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
35 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
10 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
15 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
69 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
13 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
229 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
39 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
188 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
107 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
26 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
43 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
126 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
39 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' ...
1
vote
0answers
17 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
34 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
56 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
158 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
59 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
33 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
194 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
30 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
41 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
165 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 ...