Closed (fixed)
Project:
Contextual View Modes
Version:
7.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
6 Dec 2012 at 05:02 UTC
Updated:
27 Aug 2015 at 14:38 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #1
sherakama commentedThanks for this. I will take a look and see what it will take to make this work with those add on context modules. No promises :)
Comment #2
steven.wichers commentedI just started looking in to this. First glance shows that contextual_view_modes_node_view_alter() is being called before any contexts are set via context_context().
Related issue? #1136270: block_view_alter
Comment #3
steven.wichers commentedContext does not currently provide a hook for modules to use that will fire early enough in the process to allow this module to function. I have created a patch that specifically looks for the context mobile module and then calls its condition function directly. I tested it on the current site I am developing and got different view modes based on mobile or not mobile.
Comment #4
steven.wichers commentedAnother, slightly more generic way to do this is to call
module_invoke_all('context_page_reaction');instead. This is what I wound up doing for a custom module that had a similar issue. This works, but isn't ideal because there really should be block specific hooks within Context.Comment #5
byenary commentedyep same here silent failing with context breakpoint
Comment #6
sherakama commentedAdded the mobile detect call to latest dev.
Thanks!
Comment #7
sherakama commentedComment #8
deelite commentedAre there any news about context breakpoint?