Main
Index
Search
Posts
Who's
Online
Log
In

Home: Discontinued/Classic Products: Article Manager 2:
Issue with Selected Branch Only

 

 


brucedt
User

Jan 13, 2010, 8:38 AM

Post #1 of 13 (6747 views)
Shortcut
Issue with Selected Branch Only Can't Post

I'm trying to set up a template for a side bar menu using the option, "Selected Branch Only". When I select this option and then publish the rule, none of the categories are visiable. If I select the options "Show All", "One Level" or "Two Level" from the menu format area, the categories are visible. Below I have pasted the code that I'm trying to use, can anyone help?

The code I'm using comes from the categoryMenuAlternate.html template.

Under Rule Options, I have "One File - listing all selected categories" selected.

Under Advanced Options, I have "Use default publish directory" selected. Category Files option, I have "Include all categories" selected.

Under Menu Format option, I have "Selected Branch Only" selected.

Code I'm using:

<!-- templateComment --><link href="../../../../webroot/artman2/style/stylesheet.css" rel="stylesheet" type="text/css" /><!-- /templateComment -->

<!-- templateComment -->

<!--

Alternative version of the nav menu using classes instead of unordered

lists.

-->

<!-- /templateComment -->

<h1><a href="$published.globalIndex.url$">$my.homepageName$</a></h1>

<div class="nav-box">

<div class="altmenu"><!-- templateInsert : $categoryList$ -->

<!-- templatecell : categoryRow -->

<!-- templateIf: $category.isSelected$ != '1' -->

<div class="catMenu-$category.depth$"><a href="$published.categoryIndex.url$">$category.name$</a></div>

<!-- /templateIf -->

<!-- templateIf: $category.isSelected$ == '1' -->

<div class="catMenu-$category.depth$"><a href="$published.categoryIndex.url$" class="selected">$category.name$</a></div>

<!-- /templateIf -->

<!-- /templatecell : categoryRow -->

</div>



<div class="rss"><a href="$published.globalRSS.webpath$">News Feed</a></div>

</div>



Donna
Staff / Moderator


Jan 14, 2010, 10:35 AM

Post #2 of 13 (6738 views)
Shortcut
Re: [brucedt] Issue with Selected Branch Only [In reply to] Can't Post

Hi Bruce,

What exactly do you want to show up on that list?

"Selected Branch Only" will never show anything if you're only publishing one file, because it doesn't know what category to use -- there's no selected branch.

Try setting it to create a file for each category, and that might get closer to what you're looking for?

Donna

--
support@interactivetools.com


brucedt
User

Jan 14, 2010, 3:15 PM

Post #3 of 13 (6735 views)
Shortcut
Re: [Donna] Issue with Selected Branch Only [In reply to] Can't Post

That makes sense, so I changed the Publish Files option to multiple files. After saving and publishing the rule, I get a server side include error. " ******>> An error has occurred while processing a Server Side Include file ".

All the options under the Menu Format now give me the server side include error when selected for the rule. I must be doing something wrong, so let me step back and explain what I'm doing.

I'm dealing with two of the default published rules, "Global Index" and "Global Menu".

1. I made some modifications to the Global Index's template, but have not modified the information for the side menu in the template that I'm pointing too:

<div id="sidebar"><!--#include virtual="$published.globalMenu.webpath$" --></div>
<!-- ends "sidebar" -->

2. I created a new template for the Global menu and pasted the exact code that is in the categoryMenuAlternate.html template.

3. I set the Global Menu's option for menu Format to "Show All", saved and published the rule and everything looks fine. All my Categories and Sub-Categories show up on the side bar menu with the correct links to the categories home page.

We didn't like the look ( all categories and sub-categories visiable ), I was asked if it was possible to only show the sub-categories of the selected category. Thats when I tried selecting the option "Selected Branch Only" and the problems began.

I'm not sure what I'm missing, but hopefully this explains things a little better.

Bruce


brucedt
User

Jan 15, 2010, 9:47 AM

Post #4 of 13 (6732 views)
Shortcut
Re: [brucedt] Issue with Selected Branch Only [In reply to] Can't Post

I found out what is causing the problem, but I'm not sure how to resolve the issue.

The information for the multiple files is, "<catfile>usars_branch_category.<ext>". The files were created under each category folder, but when I look at the index.shtml files, the side bar points to a file in the publish directory, example:

<div id="sidebar"><!--#include virtual="/artman2/publish/usars_branch_category.shtml" --></div>.

There is no such file, I guess I need a starting point for the menu, for example:

<div id="sidebar"><!--#include virtual="/artman2/publish/news/usars_branch_category.shtml" --></div>.

but I not sure how to set this up.


Donna
Staff / Moderator


Jan 18, 2010, 2:50 PM

Post #5 of 13 (6724 views)
Shortcut
Re: [brucedt] Issue with Selected Branch Only [In reply to] Can't Post

Hi Bruce!

I think rather than going back and forth, it'll be a little easier if I can just look at what you've got directly. Would you be able to fill in a support request?

https://www.interactivetools.com/support/email_support_form.php

Thanks!

Donna

--
support@interactivetools.com


brucedt
User

Jan 19, 2010, 1:42 PM

Post #6 of 13 (6713 views)
Shortcut
Re: [Donna] Issue with Selected Branch Only [In reply to] Can't Post

That might be diffucult, the site is on an intranet site for a goverment project. I can't just give you access to the side. I can send you the code and/or screen prints? Let me know also if I still need to fill out a support request?

I do believe that I have narrowed down were the problem is. Our "Home Site" ( index.shtml ) which has a server side include for the side bar menu for the list of categories. The server side in the index.shtml file is pointing to a file that doesn't exist. When I selected "Multi Files", a new file is created for each of the categories and placed in the folder for the category on the server.

This is the information for the server side include is:

<div id="sidebar"><!--#include virtual="/artman2/publish//usars_branch_category.shtml" --></div>

The "usars_branch_category.shtml" file doesn't exist in the publish folder ( where the index.shtml file is ), there is an individual "usars_branch_category.shtml" file in each of the folders for the categories on the server.

Shouldn't there be a way to set the server side include in the index.shtml file to point to a default category?

Bruce


Donna
Staff / Moderator


Jan 20, 2010, 3:34 PM

Post #7 of 13 (6710 views)
Shortcut
Re: [brucedt] Issue with Selected Branch Only [In reply to] Can't Post

Hi Bruce,

Instead of using a hardcoded SSI, you'll want to use the placeholder. So, it'll be something like this:

<!--#include virtual="$published.PlaceholderName.webpath$" -->

...where "PlaceholderName" is the placeholder from that publish rule.

Give that a try and let me know if it works for you. :)

Donna

--
support@interactivetools.com


brucedt
User

Jan 21, 2010, 8:19 AM

Post #8 of 13 (6702 views)
Shortcut
Re: [Donna] Issue with Selected Branch Only [In reply to] Can't Post

I looked at the template for the index.shtml file and the SSI is not hardcoded, it has the same code that you suggested.

The template for the index.shtml has the following code for the SSI (gobalMenu is the placeholder):

<div id="sidebar"><!--#include virtual="$published.globalMenu.webpath$" --></div>

After I publish the rule, with the options "One File" and "Show All", the code for the SSI in the index.shtml file is:

<div id="sidebar"><!--#include virtual="/artman2/publish/include_globalMenu.shtml" --></div>

After I publish the rule with the options "Multiple Files" and "Selected Branch Only", the code for the SSI in the index.shtml file is:

<div id="sidebar"><!--#include virtual="/artman2/publish//usars_branch_category.shtml" --></div>

The code that is used for the placeholder is the default code that comes with Article Manager 2. The only change that I make is when I selected the "Multiple File" option, I switch the code to the Alternate Menu ( as suggested in the comments of the template for the Global Menu.


Donna
Staff / Moderator


Jan 22, 2010, 4:58 PM

Post #9 of 13 (6687 views)
Shortcut
Re: [brucedt] Issue with Selected Branch Only [In reply to] Can't Post

Hi Bruce,

Would you be able to send me an email to support@interactivetools.com with some screenshots of what you've got in your publish rules?

Donna

--
support@interactivetools.com


brucedt
User

Jan 25, 2010, 9:37 AM

Post #10 of 13 (6539 views)
Shortcut
Re: [Donna] Issue with Selected Branch Only [In reply to] Can't Post

Sure, I've attached a screen shot of the rule for the Global menu and the actual code for the template. Please let me know what other files or screen shots you need.

Thanks Bruce
Attachments: gobal_menu_rule copy.gif (121 KB)
  usars_globalMenu_alt.html (0.93 KB)


Donna
Staff / Moderator


Jan 28, 2010, 1:26 PM

Post #11 of 13 (6262 views)
Shortcut
Re: [brucedt] Issue with Selected Branch Only [In reply to] Can't Post

Hi Bruce,

Is there a reason you're trying to make these changes on the global menu, rather than the category menu?

The global menu is only used on pages that don't have a specific category (ie, the index page) so setting "Selected Branch" would have nothing associated with it -- it's the global index, so there IS no category selected. If you instead changed this on the Category Menu page, this should have the effect you're looking for.

Does that make sense?

Donna

--
support@interactivetools.com


brucedt
User

Jan 29, 2010, 2:20 PM

Post #12 of 13 (6234 views)
Shortcut
Re: [Donna] Issue with Selected Branch Only [In reply to] Can't Post

After reading your last posting, it's like a light came on. I moved my code to the category menu and with a little tweaking I was able to get the effects we were looking for.

Thanks for your help.

Bruce


Donna
Staff / Moderator


Feb 1, 2010, 1:32 PM

Post #13 of 13 (6102 views)
Shortcut
Re: [brucedt] Issue with Selected Branch Only [In reply to] Can't Post

Excellent! Glad we got that sorted out. :)

Donna

--
support@interactivetools.com