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

learn more… | top users | synonyms

1
vote
1answer
14 views

How change Drupal Context with a button?

Context is great for delivering content to the right part of my site in the right circumstances, in the right order and to the right user. I'd like to be able to add the ability for a user to toggle ...
1
vote
1answer
31 views

How to hide empty blocks supplied by the User Relationship module?

I am trying to hide a module supplied block (User Relationships action block) from appearing on nodes posted by the logged in user. The block shows as empty on those pages. I have tried php in the ...
1
vote
1answer
51 views

How to compute and display value of some fields?

I'm facing the issue but not found the way to resolve. is there any way to help me this. The issue is that I want to display the total value (included sum and get percent, etc) of some fields depend ...
0
votes
1answer
14 views

Using Context, can I (programiatically) move the page's menu to a different region?

Using Context, can I move a node's menu to a different region? Or more specifically, from inside hook_context_page_reaction(), can I get access to the page's render array to move items between ...
1
vote
1answer
19 views

How to find which content type is using which context?

How to find which content type (abc) is using which context? As I do have around 30 contexts in my site. Is there a way to find which context is using content type (abc)?
1
vote
1answer
33 views

Context and Page Caching

Just started a gigantic Drupal build and I'm trying to validate if the Context Module is the correct option for a segmented content delivery system. It appears to be and I am optimistic. The project ...
1
vote
2answers
144 views

Showing each node's creation date but in the content-list (instead on in each node)?

In Drupal 7, we can show nodes' creation date very easily by going to the edit back-end forum, scroll to the lower part of the form, and there add "show node creator and creation time date" (or a ...
4
votes
1answer
96 views

Where do I add a new cache context for an entity?

I have not been able to get adding a cache context to work for entities in drupal 8. Specifically I'm going for headers:User-Agent. I tried many variations on the following in a module. use ...
0
votes
1answer
8 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
50 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
18 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 ...
1
vote
0answers
21 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
25 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 ...
1
vote
1answer
83 views

Applying a Drupal Condition-reaction CONTEXT to all themes?

Background details: I use Drupal 7.43 and the module Context to Hide the Sidebar regions in certain content-types so that their nodes will have full-width. The problem: Each time I change a theme, ...
1
vote
1answer
21 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
23 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
31 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
57 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
143 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
66 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
25 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
32 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
37 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
40 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
28 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
102 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
45 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
115 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
67 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
53 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
51 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
38 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
53 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
25 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
98 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 ...
1
vote
0answers
39 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
59 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
58 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
11 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
122 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
460 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
364 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
135 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
57 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
195 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 ...