Closed (fixed)
Project:
Quick Tabs
Version:
7.x-3.x-dev
Component:
Miscellaneous
Priority:
Normal
Category:
Feature request
Assigned:
Reporter:
Created:
8 Feb 2012 at 08:48 UTC
Updated:
2 Oct 2013 at 01:01 UTC
Jump to comment: Most recent file
Comments
Comment #1
rudiedirkx commentedAnd a patch.
Includes backward compat. (If 'teaser' was previously checked, the teaser view mode is now selected.)
Comment #2
katbailey commentedFirst of all - great feature request, and I too am surprised nobody else has asked for this yet :-P
And it is so nice to get a feature request that comes with a patch :-) However, your patch has been rolled against your entire codebase, not just against quicktabs - can you please reroll and I'll try to get this in asap.
Comment #3
mark trappI was looking for this as well: re-rolled the patch to only include quicktabs. :)
Comment #4
jonhattanBasicly it works but lacks an upgrade path.
All existing quicktabs must be setted a value for the new
view_modeoption (teaser or full depending on theteaseroption value).Without that, two things happen to previously created quicktabs:
* it fails to render nodes in the correct view_mode.
* it raises a warning on edition form.
Comment #5
mark trappThe attached patch adds the upgrade path by converting the contents of the
teaservalue intoview_mode: if it exists and isTRUE,view_modeis set toteaser. Otherwise,view_modeis set tofull.Comment #6
jonhattanIt works great
Comment #7
mark trappI took another look at this and it still wasn't 100%. This new patch fixes a few things:
QuickNodeContent::optionsFormnow that there's an upgrade pathteaserset toTRUEto thedefaultview mode instead offull.Attached is a new patch plus an interdiff from the patch in #5.
Comment #8
jonhattanI have no strong preference, just note that the default view mode for a node is full http://api.drupal.org/api/drupal/modules%21node%21node.module/function/n...
Comment #9
mark trappHm, I was thinking you could change the default, but you're right: it's hard-coded for nodes. There's no standard way to define a default view mode for entities, so future-proofing the UI for an inevitable expansion to support entities doesn't make sense, either.
The attached patch sets the default back to
fulland removes the superfluous "Default" option in the view modes drop-down menu.Comment #10
jonhattanThanks Mark!
Comment #11
jesss commentedThe patch works for me. This is exactly the functionality I need but I'm wary of using a patched module on a production site -- can this be committed soon?
Comment #12
mark trappI was going through my local forks of contrib modules, checking to see if anything needs a reroll, and this patch still applies with latest HEAD. Is there anything that's preventing this patch from being committed?
Comment #13
interdruper commentedPatch #9 works OK and this feature is very useful for those who play with view modes.
IMHO, it should be committed to next -dev release.
Comment #14
kevincrafts commentedWorked for me.
Comment #15
ultimateboy commentedThanks for the great patch. Applied to 7.x-3.x
http://drupalcode.org/project/quicktabs.git/commit/cbc3eb9c4e51dc87faa6f...
Comment #16
mark trappAwesome, thanks ultimateboy!
Comment #17
ultimateboy commentedThis change actually introduced a few problems in our tests. Re-opening for the time being, a patch is coming soon.
Comment #18
ultimateboy commentedWell that was easier than I thought. I've pushed to 7.x-3.x.
http://drupalcode.org/project/quicktabs.git/commit/5f668d7d351bde3ef9db2...