Discovered in #1528626: Submenu tree links (possibly blocks) disappear from the email option in 6.x-1.15 upgrade

submenutree only adds its content when the page is explicitly 'full' view_mode. That's normal and expected for the majority of use cases.
But it could be possible to implement hook_extra_fields() and allow site architects to position it on more contexts.
Although core only provides 'full', 'teaser' and 'rss' view modes, and you usually don't want it in teasers, it's *possible* we'd want it in rss. And we do today want it in 'print' mode.
And developers are able to add any number of extra view modes that fall somewhere along the spectrum.

It's probably easy to add. I'll have a go.

Comments

dman’s picture

Title: Should submenu tree support alternatie drupal 'view_mode's ? » Should submenu tree support alternate drupal 'view_mode's ?

title typo

dman’s picture

Priority: Normal » Minor

On investigation, print module doesn't even publish its 'print' view_mode to the UI, so maybe this isn't the most useful way forward.
Just something to consider

cybermache’s picture

This is a nice module to use if you are using the teaser modes of this module.

https://drupal.org/project/advanced_text_formatter

dman’s picture

Issue summary: View changes

Bumping, as in recommending this today I acknowledged that the fact that submenutree does NOT support view_modes is an annoying oversight.
Getting field_weight support in also would be perfect.

What we want is the submenutree component to behave as responsive and dynamic as any other fieldAPI sort of rendering element on the rendering management UI. Then win.

reeller_sk’s picture

Status: Active » Needs review
StatusFileSize
new2.76 KB

Hi guys
Currently I was dealing with issue to allow submenutree on other node display mode than 'full'. I have created patch with include adding possibility to choose on which display mode the submenutree will be displayed to the module administration and altered the displaying logic to consider this settings.

ivnish’s picture

Status: Needs review » Closed (outdated)