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

Context Module - not triggering menu active

I need the menu called "Questionários" to be active/visible (and styled in different color) only for the node 115. I've installed the context module and tried to use the path pointing to my node but ...
2
votes
1answer
33 views

How can I get the sub-navigation to show up in the sidebar on child pages

Drupal newb here :) So I may not have the Drupal lingo correct in my explanation... I have a menu block called "Sub Navigation". Here are my configurations: (I've inherited this site so I'm not ...
0
votes
1answer
16 views

How do I make a block appear in a panels display based on the state of a field

I have a field that is a single on/off checkbox. Whenever it has been selected it outputs a key of 1 into the panel display, if it hasn't it outputs a 0. I want it to output custom html for a link to ...
0
votes
0answers
17 views

Context module not changing page title tag

Issue is, that in my case Context module isn't changing <title> tag of the page. I've configured Context module to change Meta tags (title and meta description) for specific view pages of my ...
1
vote
0answers
19 views

How to print a field from the content of a node using Omega 4 Layouts?

I'm designing a web with Drupal and my theme is a subtheme of Omega 4. I'm using Context/Context Omega and Omega Layouts. I have a node type("Product node", for example) that has a title field(like ...
0
votes
0answers
11 views

Applying a Drupal Condition-reaction CONTEXT to all themes?

Background details: I use Drupal 7.40 and use the module Context to Hide the Sidebar regions in Panel-pages and Panel-nodes so that for example, it won't appear in my Panel-node homepage (That I want ...
1
vote
1answer
20 views

How to select Views as a Context reaction block?

I've been stuck on this for a while: I would like to create a new Context (Drupal 7.39) and choose Blocks as reaction. In blocks, I would like to choose a specific View and add it to a region. ...
0
votes
1answer
20 views

Why not all menus are available in context settings page?

I want to put main-menu to certain block via context. But only few menus are available: I've 3 contexts already, but none of them uses any menu.
0
votes
1answer
27 views

check current path in using comtext php [closed]

I use Context PHP module to write a simple condition: $curr_uri = check_plain(request_uri()); if($curr_uri == '/mypath?123'){ return TRUE; } else{ return FALSE; } While this works perfectly ...
0
votes
1answer
27 views

context - url wirh parameter

I'm using Drupal 6 and context. It seems that context does not react on path like this mypath?123 Is there any way to check such path with context?
1
vote
2answers
62 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
52 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 ...
1
vote
0answers
24 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
29 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
33 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
25 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
0answers
24 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
68 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
43 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
69 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
50 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
44 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
40 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
31 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
45 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 ...
1
vote
0answers
29 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
22 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
74 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
45 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
21 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.
1
vote
0answers
33 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
45 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 ...
1
vote
0answers
55 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 ...
1
vote
0answers
49 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
1answer
104 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 ...
1
vote
1answer
372 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
1answer
307 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
128 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
1answer
51 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
171 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 ...
1
vote
0answers
21 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
39 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
81 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
41 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
252 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
1answer
59 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 ...