Hello,
on nodes that contain a supersized image, the SEVEN theme displays the supersized background image and makes it difficult to manage WHEN EDITING.
How is is possible to avoid this problem ?

CommentFileSizeAuthor
#10 context_settings.png54.21 KBmaxplus
#10 node_edit.png999.75 KBmaxplus

Comments

ahlofan’s picture

at the moment, you could use Context to avoid Supersized.

webmestre’s picture

Perhaps, but how ?

ahlofan’s picture

hi webmestre, I'm very sorry I made a mistake. You are right, currently this module is not providing any way to disable Supersized. Please allow a little time for a little thought of how to best implement this. I will push this feature to the latest dev version within days, and make sure to keep this issue update.

webmestre’s picture

Hello ahlofan,
thanks to think on a way to fix this problem.

maxplus’s picture

Hi,
I tried to install the current dev version of june 7th but I still get the supersized background on node edit.
Is it already implemented in the dev version?

Great module by the way, so easy to install and configure => THANKS!

ahlofan’s picture

hey guys, I'm so sorry that due to my really busy day time job, I'm still working on this. But it will be soon. I'm creating another context reaction that actually disable Supersized. In this case, it will be so much more flexible, you could use any condition to disable Supersized. For example:

Condition:
Path -> node/*/edit

Condition:
Disable Supersized

ahlofan’s picture

Hey guys, tried pushed the latest snapshot to dev. You may download and try it. I added a new context reaction, "Supersized (Disable)". You may disable Supersized in any condition such as Path -> node/*/*. Please let me know if any problem found.

* Latest snapshot won't popup right away, make sure it is on June 14, or later.

cheers, and have fun!

webmestre’s picture

Hello,
the new context reaction, "Supersized (Disable)" only appears in the reactions list after flushing all caches. OK.
BUT it has no effect neither with node/*/* nor node/*/edit path condition.
No effect when giving a real path (i.e. node/4/edit)

ahlofan’s picture

I have tested that again, seems no problem. Any other having the same problem?

a snapshot of the logic of context in supersized.moudle line 381

  if (module_exists('context')) {
    // Check disable context reaction.
    $plugin = context_get_plugin('reaction', 'supersized_disable_context');
    if (is_object($plugin) && $plugin->execute()) {
      return;
    }
    // Try to see if there's any supersized set by context.
    $plugin = context_get_plugin('reaction', 'supersized_context');
    if (is_object($plugin)) {
      $node = node_load($plugin->execute());
    }
  }

You can see that if 'supersized_disable_context' is found and return TRUE, nothing will happen at all by 'return;'.

Can I have more details on your context settings? Maybe an export?

maxplus’s picture

StatusFileSize
new999.75 KB
new54.21 KB

Hi,
thanks for the effort but I have the same problem.
I can add the context to disable Supersized on node/*/edit is doesn't get disabled.
Now I have tested it on one specific node (node/122) but that didn't make any difference.
Below you can see my context export and some screenshots.
I'm using your current dev version of Supersized of june 14th and I tried Context 3.0 beta 6 and also the current dev version of april 28th.

$context = new stdClass();
$context->disabled = FALSE; /* Edit this to true to make a default context disabled initially */
$context->api_version = 3;
$context->name = 'supersized_niet_op_node_edit';
$context->description = '';
$context->tag = '';
$context->conditions = array(
  'path' => array(
    'values' => array(
      'node/122/edit' => 'node/122/edit',
    ),
  ),
);
$context->reactions = array(
  'supersized_disable_context' => array(
    'disable_supersized' => 1,
  ),
);
$context->condition_mode = 0;
ahlofan’s picture

Thanks for the info maxplus! And apologise to whoever tested the dev. I know this will piss you guys off, but I have to tell the truth. I did NOT push the Context checking changes to GIT, and have just done it a minute ago. Please download the latest dev again when you see it updated. (>= June 18th)

kvoltz’s picture

I can confirm that the new dev version works as designed.

Fantastic module ahlofan!

I used to install supersized with a nasty combination of custom themed views, and hacked JS.

I really appreciate the module and the time it saves me.

maxplus’s picture

YES,

I can confirm that the dev version of june 18th works perfect on disabling Supersized on any Context condition.

Thanks, keep up the great work!

ahlofan’s picture

Status: Active » Closed (fixed)

Thanks everyone. Since this is confirmed by 2 persons, I will release this feature with some little bug fixes.

webmestre’s picture

Hello ahlofan,

the new release works perfectly.
Congratulations and thanks for your very good module !!!

webmestre’s picture

Issue summary: View changes

add "when editing"