Nodes As Tabs

Nodes As Tabs 1.5.1

No permission to download
Hi Jake,

Wonderful plugin! Using it to add information pages to our site, which works great. What I did was:

Information [link node]
-- Information Threads [forum node] (in my example "inhoud info pagina's")

and in the last forum I made threads which contained the information I'd like to link to ("Over Jos-Kroew", "Evenementen", "Terugblik" and "Contact"). I also added a Links template to the Information link node, so I could define the target threads as sub-items of Information, without creating a complicated forum structure (that would require seperate link-nodes and forums for every subitem, correct?).

So I'm quite happy now, but two problems are still present (of which one has to do - I think - with the addon?)

nodeastab1.webp

* I'd like to hide the breadcrumb for threads I use in this way, because that extra forum-name in it ("inhoud info pagina's") is useless.
* I'd like to hide the left side information block about the author of the thread, so it looks more like a blog / information post.

I'll search around for the second, but can you tell me if the first one is possible?

Thanks!
 
I also added a Links template to the Information link node, so I could define the target threads as sub-items of Information, without creating a complicated forum structure (that would require seperate link-nodes and forums for every subitem, correct?).

If all of the threads are in "inhoud info pagina's" then you only need to link to the threads using additional link-forums (no additional forums). But the links template would work well here too.

* I'd like to hide the breadcrumb for threads I use in this way, because that extra forum-name in it ("inhoud info pagina's") is useless.
* I'd like to hide the left side information block about the author of the thread, so it looks more like a blog / information post.

Admin CP -> Appearance -> Templates -> EXTRA.css

Add this code to remove the breadcrumbs and user block (replace the "1" with the node_id of that forum):

Code:
body.node1 .breadBoxTop,
body.node1 .breadBoxBottom
{
	display: none;
}

body.node1 .messageUserInfo
{
	display: none;
}

body.node1 .message .messageInfo
{
	margin-left: 0px;
}
 
How can I put in a external link and have it open a new window when someone clicks it instead of them leaving my website?
 
Hi Jake, it seems I miss a feature :). If I have a node that is shown in menu as subtab (because I for main node has enabled "children as links"), the tab title cannot be customized for the this subtab, can this be added in a future version?
 
Hi Jake, it seems I miss a feature :). If I have a node that is shown in menu as subtab (because I for main node has enabled "children as links"), the tab title cannot be customized for the this subtab, can this be added in a future version?

That's true. It is sort of intentional. I wanted to keep all configurable tab options in the parent tab itself. The organization gets a bit loose when some of the tab options can apply to child nodes.

Alternatively you can use the Links Template option to manually define your secondary links instead of using Children As Links.
 
Is it possible to display all content that is tagged with a XenPorta category under a tab? Right now I'd like to have one tab and list most XenPorta categories as child links in the main tab. When viewing any article in a given category, I'd like for the original main tab to be selected (it currently won't stay selected - tried using a link forum for categories); or, ideally, once the child link in the main tab is selected, a new tab would be created showing that category title (and all child content/articles).

I suspect the later is not possible, but I'd very much like to display all categories under one tab and have these articles keep the tab selected. Can this be done?
 
Is it possible to display all content that is tagged with a XenPorta category under a tab? Right now I'd like to have one tab and list most XenPorta categories as child links in the main tab. When viewing any article in a given category, I'd like for the original main tab to be selected (it currently won't stay selected - tried using a link forum for categories); or, ideally, once the child link in the main tab is selected, a new tab would be created showing that category title (and all child content/articles).

I suspect the later is not possible, but I'd very much like to display all categories under one tab and have these articles keep the tab selected. Can this be done?

I'm not sure I follow you exactly. But the latest update enables tab selection for link-forums as well as manual tab assignments:

http://xenforo.com/community/resources/nodes-as-tabs.9/update?update=1441

Tab-selected link-forums can be used to create a new tab for any page on the forum (doesn't have to be a node). And manual tab assignments let you assign any node to any tab. These two features allow for a lot of flexibility in reorganizing your navbar.

If you can provide specific examples with URLs then I can help with specific instructions.
 
I'm not sure I follow you exactly. But the latest update enables tab selection for link-forums as well as manual tab assignments:

http://xenforo.com/community/resources/nodes-as-tabs.9/update?update=1441

Tab-selected link-forums can be used to create a new tab for any page on the forum (doesn't have to be a node). And manual tab assignments let you assign any node to any tab. These two features allow for a lot of flexibility in reorganizing your navbar.

If you can provide specific examples with URLs then I can help with specific instructions.

I have a tab called "Find Your City" that isn't selected when I view the page currently (http://peoriaunited.com/pages/peoria-area/); I have "Display as Tab" selected and it's set up as a link forum. For some reason, that page shows up under the Community tab (forum index)Furthermore, I have 12+ link forums as children to this tab - they are XenPorta categorys. Not all categories have articles yet. This one does, though: http://peoriaunited.com/articles/peoria/ ;however, this category also does not have the tab selected when viewing the category. It's a child tab of the "Find Your City" tab. I'd like the categories to keep the "Find Your City" tab selected when viewing that category page or any article that's listed within that category.

When I try the same set up, but use a page as the parent of the child forums instead of a link forum to a page, I'm able to get the page tab to stay selected, but the children of that node still don't remain selected.

Regarding the last bit of my previous post; Ideally, I'd have the "Find Your City" drop-down tab not link to a page (link to say #) that way it acts only as a means to select a child category. Once a child category is selected, I'd like a new tab to appear in the menu. So, take the city of Peoria as an example; a user selects Peoria from the list of categories under "Find Your City." Once they're viewing that category page or articles within that category, a new menu tab appears, titled "Peoria," that previous wasn't there. I'm fairly certain this functionality doesn't currently exist, so please correct me if I'm wrong. I can get back just getting the previous paragraphs to work. ;)
 
I have a tab called "Find Your City" that isn't selected when I view the page currently (http://peoriaunited.com/pages/peoria-area/); I have "Display as Tab" selected and it's set up as a link forum. For some reason, that page shows up under the Community tab (forum index)Furthermore, I have 12+ link forums as children to this tab - they are XenPorta categorys. Not all categories have articles yet. This one does, though: http://peoriaunited.com/articles/peoria/ ;however, this category also does not have the tab selected when viewing the category. It's a child tab of the "Find Your City" tab. I'd like the categories to keep the "Find Your City" tab selected when viewing that category page or any article that's listed within that category.

When I try the same set up, but use a page as the parent of the child forums instead of a link forum to a page, I'm able to get the page tab to stay selected, but the children of that node still don't remain selected.

Regarding the last bit of my previous post; Ideally, I'd have the "Find Your City" drop-down tab not link to a page (link to say #) that way it acts only as a means to select a child category.

Since you don't want the "Find Your City" tab to link anywhere you can use this javascript:

http://xenforo.com/community/threads/nodes-as-tabs.26687/page-7#post-389478

Then enable this option:

Admin CP -> Home -> Nodes As Tabs -> Enable Tab Selection For Link-forums

That way all of the link-forums underneath that tab will select the parent tab. This will be your organization:

Find Your City (is a tab, with children as links and popup menu enabled)
- each
- xenporta
- article
- as
- a
- link
- forum
- under
- the
- parent
- node :D

Each link-forum will link to the article page using a relative target like:

articles/asdf/
articles/qwerty/
articles/wasd/

Now each article page will select the "Find Your City" tab.

Once a child category is selected, I'd like a new tab to appear in the menu. So, take the city of Peoria as an example; a user selects Peoria from the list of categories under "Find Your City." Once they're viewing that category page or articles within that category, a new menu tab appears, titled "Peoria," that previous wasn't there. I'm fairly certain this functionality doesn't currently exist, so please correct me if I'm wrong. I can get back just getting the previous paragraphs to work. ;)

I don't like this idea. It is possible by creating new tabs for each article category and then hiding them when not selected, like this:

http://xenforo.com/community/threads/move-menu-items.20654/#post-263851

But I think this is a bad idea for organization.
 
Thanks Jake! I got it working thanks to your help. I didn't have that checked, plus the url in the link forum was the full url (site.com/articles/category). Changing it to articles/category ultimately fixed it.

I'll probably hold off tab changes for now. Just brainstorming here, but is it possible to change the name of the tab once it's selected? So users will see "Find Your City" and once they're viewing something under that tab, it's changed to a different name?
 
Okay, I just came upon a related issue. When I view the category, (http://www.peoriaunited.com/articles/peoria/), the tab is displayed correctly. When I view a specific thread in the news forum (the forum that XenPorta pulls articles from) that is marked with a category (in this case peoria) it changes the tab to the community tab, instead of the Find Your City tab (http://www.peoriaunited.com/threads/a-safe-haven-uphill.21/ for example).

This wasn't the case an hour ago before I made changes in this thread: http://xenforo.com/community/threads/help-customizing-xenporta-categories-layouts.34417/#post-395333 (addressing other issues with XenForo). The News forum is falling under the Community tab instead of the Find Your City tab. I suspect this has something to do with the permissions changes? How can I keep thread that are in the News forum (Recent News Block) and marked with a category to keep prioritizing that category's tab preferences over the forum/community tabs?
 
Just brainstorming here, but is it possible to change the name of the tab once it's selected? So users will see "Find Your City" and once they're viewing something under that tab, it's changed to a different name?

There is no such option.

Okay, I just came upon a related issue. When I view the category, (http://www.peoriaunited.com/articles/peoria/), the tab is displayed correctly. When I view a specific thread in the news forum (the forum that XenPorta pulls articles from) that is marked with a category (in this case peoria) it changes the tab to the community tab, instead of the Find Your City tab (http://www.peoriaunited.com/threads/a-safe-haven-uphill.21/ for example).

This wasn't the case an hour ago before I made changes in this thread: http://xenforo.com/community/threads/help-customizing-xenporta-categories-layouts.34417/#post-395333 (addressing other issues with XenForo). The News forum is falling under the Community tab instead of the Find Your City tab. I suspect this has something to do with the permissions changes? How can I keep thread that are in the News forum (Recent News Block) and marked with a category to keep prioritizing that category's tab preferences over the forum/community tabs?

That is because tab selection with link-forums uses relative URI matching. The thread URLs no longer match the target of the link forum. That is why the note on this setting:

Screen shot 2012-08-08 at 6.23.44 PM.webp

The only real possibility here is if you were to move the forum that contains those threads to underneath "Find Your City" (which is the tab). That would result in all threads in that forum belonging to that tab.
 
The only real possibility here is if you were to move the forum that contains those threads to underneath "Find Your City" (which is the tab). That would result in all threads in that forum belonging to that tab.

I see, thank you. Is there a way to list the News forum underneath the Find Your City tab (for the tab purposes) but exclude it from the actual drop-down menu (so users don't have direct access to it)? At least to non-admins?

I also have XenKingDirectory installed. It seems to work okay with the tabs in the main areas. However, when viewing individual listings, the tab is no longer selected (here, for example: http://peoriaunited.com/reviews/tilted-kilt.10/ )
 
I see, thank you. Is there a way to list the News forum underneath the Find Your City tab (for the tab purposes) but exclude it from the actual drop-down menu (so users don't have direct access to it)? At least to non-admins?

Make it a second level child of the tab. The popup menu only shows first level children.

I also have XenKingDirectory installed. It seems to work okay with the tabs in the main areas. However, when viewing individual listings, the tab is no longer selected (here, for example: http://peoriaunited.com/reviews/tilted-kilt.10/ )

Is this another link-forum? Keep in mind the URI matching.

XenKingDirectory uses 3 different public routes:

directory
reviewposts
reviews

To capture all 3 routes would require 3 different link-forums to link to each route (directory/, reviewposts/, reviews/). For a situation like this the link-forums function more like route handlers and not clickable links. You can hide them from the menu by making them second level children of the tab. Or you could even enable Check Child Permissions for the tab which would allow you to hide certain child links from the popup using node permissions.
 
Make it a second level child of the tab. The popup menu only shows first level children.

Thank you!

Jake Bunce said:
Is this another link-forum? Keep in mind the URI matching.

XenKingDirectory automatically added the link to the nabar upon installation. When I view the node tree, it shows the Directory as a forum, not a link-forum. If need be, I could set up a link forum and follow your instructions above. Is there another reason the entries might not be showing with the directory as a forum (and not a link-forum)?
 
Top Bottom