Closed (fixed)
Project:
Node Subpages
Version:
7.x-2.x-dev
Component:
User interface
Priority:
Normal
Category:
Feature request
Assigned:
Unassigned
Issue tags:
Reporter:
Created:
24 Apr 2012 at 00:28 UTC
Updated:
4 Jan 2014 at 02:05 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #1
BrockBoland commentedThe "tab bar" refers to the Node Subpages Menu Bar block, which (I think?) you've placed on the page. I think I need to clarify this section better:
Perhaps the first sentence should be bolded or something to make it clear that that's what needs to happen, and the second sentence explains how to make it happen. If you have any suggestions on this, I'm all ears.
In any case, the tabs should appear in that block when you're viewing a node. Note that tabs for Field content will only be shown if the node being viewed has content for that Field, so double check that you've got some text in the field.
If that doesn't help, please provide some more details about your setup so we can get you up and running.
Comment #2
ds1964 commentedThanks for the quick response. I did indeed place the Node Subpages Menu Bar on the page (in the Content region in Bartik). It shows up there, but as a simple bullet list, not as tabs. Is there any additional styling, or anything else display wise, that needs to be done for the tabbed display?
Regarding the clarification to the instructions, how about:
"Place the tab bar on the page using the Node Subpages Menu Bar block, which will be available on the Drupal Blocks administration page. When placed on a node page, this displays links for each subpage for that node."
Comment #3
BrockBoland commentedI like your version, and I hope it's OK that I stole it ;-)
As for the tabs: I never considered my wording. You're right, it does just print out an unordered list. In the sites where I've used the module, I've styled that list to look like tabs, but the CSS to do so isn't included.
So, I'm changing this issue to add default CSS to style these as tabs.
Comment #3.0
BrockBoland commentedUpdated to include new plan
Comment #4
ds1964 commentedSounds good. Any thoughts on how to get basic tabs styling done would be appreciated. Perhaps hook into the basic node tab styling that comes with the vertical/horizontal tabs through field groups somehow?
Glad to contribute to the instructions.
Comment #5
BrockBoland commentedYou might be able to re-use some of that code, but getting them to fall into tabs is pretty straightforward, and you will probably want to style them further so that they look good in your theme. This might be a good starting point: http://www.alistapart.com/articles/taminglists/
Comment #6
ds1964 commentedI'll check that out. Thanks again.
Comment #7
ds1964 commentedIt occurred to me that the revised wording for the tab bar might still be unclear, particularly for people who aren't familiar with how tab bars are created using lists and CSS. Maybe it should be changed to something like:
"Place the tab bar on the page using the Node Subpages Menu Bar block, which will be available on the Drupal Blocks administration page. When placed on a node page, this displays links for each subpage for that node. The links can be used as is or styled as tabs to match your theme. See http://www.alistapart.com/articles/taminglists/ for more information."
Hope this suggestion is useful.
Comment #8
BrockBoland commentedActually, my intention was to fix just that, so that the tabs DO display like tabs. I'm going to add CSS to the module so that, out of the box, it will look halfway decent. Site admins will still be able to style them however they want to.
Comment #9
ds1964 commentedGreat. Thanks for the clarification. Still learning how the support/feature request process works.
Comment #12
inders commentedAttached CSS patch file to address this issue. Also attached screenshot after attaching CSS. Hope it would be helpful.
Thanks
Comment #13
BrockBoland commented@inders: I really appreciate your willingness to contribute to the project and don't want to discourage you from doing so in the future, but there are a few problems with this path:
theme-default.css) wasn't actually included in the patch file.Comment #14
BrockBoland commentedAdded basic CSS in http://drupalcode.org/project/node_subpages.git/commit/50c8fe9
To override this in your theme, add a
node_subpages.cssfile to your theme, and then define it in your .info file:Comment #15.0
(not verified) commentedFixed username