I've backported it to Drupal 5, see attached.
Using JQuery Update 5.x-2.0, have not tested with default jquery comes with D5
Changes:
- removed Drupal.t() call (not in D5)
- removed collapsible classes using JS instead of #post_render (not in D5)
- CSS to remove tab focus outline
Comments
Comment #1
dmitrig01 commentedI have made quite a few changes, so please update.
I would prefer that you copy Drupal.t (with modifications), Drupal.checkPlain, and Drupal.formatPlural (with modifications) from Drupal 6, so the difference between the two versions becomes smaller.
Comment #2
Bevan commentedConsidering the amount of work needed to get this in drupal seven I think efforts are not well spent backporting this. nodeform module is stable and provides the most important functionality of this module (vertical tabs on node forms) and would likely be easier to backport.
Having said that, this is open source, so scratch your own itch! :)
Comment #3
ckngI believe the new vertical_tabs_menu_alter cannot be ported.
I'll leave that portion out unless someone know of a way to do it in D5.
Comment #4
ckngupdated patch
- copied from D6 Drupal.t (mod), Drupal.checkPlain, and Drupal.formatPlural (mod) into vertical_tabs.node_form.js
- removed admin settings Main Configuration (see comment #3 above)
- changed js to work with D5
- removed collapsible classes using JS instead of #post_render (not in D5)
- included #298971: Fieldset's legend not hidden
Comment #5
realityloop commentedThis isn't working for me, tested on 2 sites..
Comment #6
ckngI believe you need to install jquery_update 2.x for it to work. Because all my sites are using it. Have not tested without it.
Please test and let us know, I will add the dependency.
Comment #7
realityloop commentedJQuery Interface Library 5.x-1.0
jQuery Update 5.x-2.0
^ are both installed and enabled on at least one of the sites I tested it on
Would my theme make any difference? I'm using Marinelli
Comment #8
ckngJust tested with a clean install and tested the dependencies.
Use the latest patch.
- Only dependency is JS Tools.
- Do not need jQuery Update and JQuery Interface
- Fixed a html formating when preview is required
Comment #9
realityloop commentedIt's working now, but the display css still needs some work.. that could be related to my theme though.. about to test on another site
Edit: After testing on another site display appears to be variable based on template but some additions to the CSS could still be useful..
Here is my current version..
Comment #10
andypostsubscribe
Comment #11
dropchew commentedsubscribe
Comment #12
RWWood commentedI've been trying to use the patches with the current version of vertical tabs (6.x-1.x-dev), but the sections of the original to be replaced don't exist. Has vertical tabs been updated so that the patches are no longer appropriate for the current version?
Thanks.
Comment #13
RWWood commentedCould you make available all the modified files that you're using? The current release of Vertical Tabs has been updated since the patches were written, so the patches can't be applied to the newer files.
Thanks
RWW
Comment #14
quicksketchI'm fine with providing a backport if these patches are updated. Try to keep changes minimal to provide ease of maintenance.
Comment #15
ahkiam commentedsubscribing
Comment #16
socialnicheguru commentedsubscribing
Comment #17
designar commentedsubscribing
Comment #18
kansaj commentedsubscribing
Comment #19
pribeh commentedsubscribing
Comment #20
PawelPohl commentedsubscribing, and I think this should go back to normal priority - I would so much like this in my 5.x site!
Comment #21
decipheredIf you really want to get this backported, make sure to keep the patches up to date.
Attached is a new patch to get things rolling again, no way near committable yet, but it does somewhat work.
Cheers,
Deciphered.
Comment #22
decipheredUpdated patch.
Should now be good for review, fixed all issues I was aware of from the last patch.
Only bugs that I have noticed are also visible in D6 versions.
Comment #23
decipheredTODO: Fix support for Garland/Color module.
Comment #24
pribeh commentedHey Deciphered,
Thanks so much for updating this. I patched the latest 6.1-dev version, installed it on a latest D5 site, and get the following whenever visiting a node-type page:
Seems to work fine regardless of this message.
Comment #25
ckngSorry for not updating this. No longer having any D5 sites.
Comment #26
deciphered@pribeh
Thanks for the feedback. I really should have the development build of Drupal 5 running so I get those errors as well, will install it shortly.
The issue has, or should have, been fixed in this latest patch.
Also in this latest patch is some initial work towards the garland/color stuff, but still needs work.
Cheers,
Deciphered.
Comment #27
decipheredExpect updated patch within the next couple of days.
Comment #28
quicksketchThanks Deciphered, after doing the D7 backport of CSS I think there'll be less overall changes needed before a final release. It'll be great to have another review of the latest CVS code before making a new beta. Thanks!
Comment #29
decipheredComment #30
droid19 commentedHi, I applied the latest patch but all I get at the bottom page is "[object Object]" in a fieldset
Thanks
Comment #31
dave reidNo activity for almost six months means this is a won't fix.