If Panels is not found on the system, the module should provide a "node/%node/%node_tab" callback that returns the node rendered using a specific view mode.
Every unique tab name gets its own view mode.
| Comment | File | Size | Author |
|---|---|---|---|
| #15 | 2005384-node_tab-real_tabs.patch | 2.95 KB | jose reyero |
| #1 | 2005384-node-tab-without-panels.patch | 2.39 KB | bojanz |
Comments
Comment #1
bojanz commentedWould love some feedback :)
Comment #2
bonchak commentedHello,
thanks for the great module, although i could not mange to work it yet. I tried the patch but it gives errors during the patch.
here is the error:
[~/public_html/dr/sites/all/modules/node_tab]# patch -p0 <2005384-node-tab-withou t-panels.patch
can't find file to patch at input line 5
Perhaps you used the wrong -p or --strip option?
The text leading up to this was:
--------------------------
|diff --git a/node_tab.module b/node_tab.module
|index db2ab19..1f3eddb 100644
|--- a/node_tab.module
|+++ b/node_tab.module
--------------------------
File to patch: 2005384-node-tab-without-panels.patch
patching file 2005384-node-tab-without-panels.patch
Hunk #1 FAILED at 41.
Hunk #2 FAILED at 79.
Hunk #3 FAILED at 186.
3 out of 3 hunks FAILED -- saving rejects to file 2005384-node-tab-without-panels.patch.rej
kongren@kongre.net [~/public_html/dr/sites/all/modules/node_tab]# patch <2005384-node-tab-without-pa nels.patch
patching file node_tab.module
Hunk #3 succeeded at 194 (offset 8 lines).
so i've tried to add the patch manually and some how managed to run... i can add tabs, i can see the tabs listed in the block and also in the custom display list ( already checked) however i can't see them in the upper right list where i can switch the display modes. I tried to switch between modes manually from url ..../admin/structure/types/manage/page/display/teaser and when i change the teaser with my custom tab name it actually triggers the default value. well the block works and creates the correct url when selected but the field displays are shown as default display.
This module is what i've been looking for a long time, there was the filed groups menu but it is not a multilanguage solution. I found a way to handle this very similar to your solution: I create different displays and order the fields according to this displays. I am using menu tokens to link to different display options. Please have a look at http://www.kongre.net/dr/intercontinental-istanbul and click the hotel menu on the left. I am using menu tokens for the current node and adding http://www.kongre.net/dr/intercontinental-istanbul?v=meeting_halls. ?v= directs to different display options. well this was the only way i could manage with a multilanguage soltion. Your module looks very similar to what i've been trying to. However i could not manage to patch properly. Could you please provide a patched version so that i can give another try?
Best regards
Halil
Comment #3
bonchak commentedHello,
thanks for the great module, although i could not mange to work it yet. I tried the patch but it gives errors during the patch.
here is the error:
[~/public_html/dr/sites/all/modules/node_tab]# patch -p0 <2005384-node-tab-withou t-panels.patch
can't find file to patch at input line 5
Perhaps you used the wrong -p or --strip option?
The text leading up to this was:
--------------------------
|diff --git a/node_tab.module b/node_tab.module
|index db2ab19..1f3eddb 100644
|--- a/node_tab.module
|+++ b/node_tab.module
--------------------------
File to patch: 2005384-node-tab-without-panels.patch
patching file 2005384-node-tab-without-panels.patch
Hunk #1 FAILED at 41.
Hunk #2 FAILED at 79.
Hunk #3 FAILED at 186.
3 out of 3 hunks FAILED -- saving rejects to file 2005384-node-tab-without-panels.patch.rej
kongren@kongre.net [~/public_html/dr/sites/all/modules/node_tab]# patch <2005384-node-tab-without-pa nels.patch
patching file node_tab.module
Hunk #3 succeeded at 194 (offset 8 lines).
so i've tried to add the patch manually and some how managed to run... i can add tabs, i can see the tabs listed in the block and also in the custom display list ( already checked) however i can't see them in the upper right list where i can switch the display modes. I tried to switch between modes manually from url ..../admin/structure/types/manage/page/display/teaser and when i change the teaser with my custom tab name it actually triggers the default value. well the block works and creates the correct url when selected but the field displays are shown as default display.
This module is what i've been looking for a long time, there was the filed groups menu but it is not a multilanguage solution. I found a way to handle this very similar to your solution: I create different displays and order the fields according to this displays. I am using menu tokens to link to different display options. Please have a look at http://www.kongre.net/dr/intercontinental-istanbul and click the hotel menu on the left. I am using menu tokens for the current node and adding http://www.kongre.net/dr/intercontinental-istanbul?v=meeting_halls. ?v= directs to different display options. well this was the only way i could manage with a multilanguage soltion. Your module looks very similar to what i've been trying to. However i could not manage to patch properly. Could you please provide a patched version so that i can give another try?
Best regards
Halil
Comment #4
bojanz commentedYou need to use "patch -p1", not p0.
Comment #5
bonchak commentedwell thanks for the ultra fast reply :) I've also been trying to patch the beta3 version not he dev version now i am trying the dev version
Comment #6
bonchak commented[~/public_html/dr/sites/all/modules/node_tab]# patch -p1 <2005384-node-tab-without-panels.patch
patching file node_tab.module
Hunk #3 succeeded at 194 (offset 8 lines).
however i stil can't manage to show on display. I am using Display suite and maybe this is sth related to DS?
THX
Halil
Comment #7
bonchak commentedHello,
I tried on another site after removing Display suite and installed node_tab dev version with patch. However same thing happens here, i can't see the tabs listed so that i can modify the fields...
best regards
Halil
Comment #8
ahimsauziHi bojanz,
This module is a great idea! Thanks for that and all the other great modules you contributed to.
I am also unable to see the view mode edit on the content type. The tabs seem to be added (albeit not styled).
Are there any dependencies?
~Uzi
Comment #9
bojanz commentedKeep in mind that the view modes are added only if you don't have Panels installed.
Otherwise, it is assumed you would use that (since it's vastly superior).
Comment #10
bonchak commentedthanks for the info bojanz,
it would be great to have the option to use panels in other contents while not using in some.....
anyway... i'll give a try and disable the panels...
best regards
Comment #11
claudiu.cristeaHey @bojanz, Nice module.
I successfully applied the patch I see each page by URL but no tabs. I configured the display views correctly.
Comment #12
claudiu.cristeaHey @bojanz, Nice module.
I successfully applied the patch, I see each page by URL but no tabs. I configured the display views correctly.
Comment #13
hanskuiters commentedSame here. Applied the patch. Cleared cache. Created tabs and extra fields to content type. In display fields I added each field to a different tab. Fields are showing at node/%nid/tabname. But no tabs showing. I you can help me to get it work this moduel would be a great replacement for field group or quicktabs in my project.
Comment #14
hanskuiters commentedOk, found it after reading through the module file. There is a Tab Block on the blocks admin page. After enabling this there will be a list if tabs. I'll do some testing with it.
Edit: it is explaned on the project page, sorry.
Comment #15
jose reyero commentedBased on #1, but actually creating tabs
Comment #16
etron770 commentedwhich patch is necessary for the latest dev version?
.x-1.x-dev tar.gz (19.4 KB) | zip (26.28 KB) 2014-Aug-11
and if it is patched is it working also with panels?