Jump to content

Recommended Posts

Posted

Hi- 2 issues I hope to get help with.

 

1.) I am getting thoroughly confused by the location of template tags and which ones to edit in order to achive a specific result. In this case I merely want to exclude some categories from being listed in the side bar. Currently, my main index template contains this code and lists all categories I have created:

><div id="categories">
<h2>Categories</h2>
<MTSubCategories>
<MTSubCatIsFirst>
<ul></MTSubCatIsFirst>  <MTIfNonZero tag="MTCategoryCount">
<li><a href="<$MTCategoryArchiveLink$>" title="<$MTCategoryDescription$>"><MTCategoryLabel></a>
<MTElse>  
<li><MTCategoryLabel>  </MTElse>  </MTIfNonZero>
<MTSubCatsRecurse max_depth="3">
</li> 
<MTSubCatIsLast>
</ul></MTSubCatIsLast>  </MTSubCategories>
</div>

 

However, I'd like to prevent one or more categories from showing up in this list. How do I do this?

 

2.) Other major issue is that I keep getting a 404 error when i click on a category name in the sidebar. Permissions on the archive folders are set to 755. Here's my test site: www.siliconvalleywatcher.com/nophun

 

TIA to you fab folks here-

Dida :dance:

Posted

On question 2, it looks like you have an error somewhere in your MT config for that blog in the folder options for the archives. The code is calling for the files in http://www.siliconvalleywatcher.com/nophun/archives/fishing/index.php but the files are actually stored in http://www.siliconvalleywatcher.com/mt/nophun/archives/fishing/index.php. Notice that the archives are within the mt and not the nophun folder in public_html.

Posted

Hello Didak

 

On question 2, are you using static or dynamic templating (this assumes you have MT 3.1 or greater) If its static templating, make sure you have rebuilt all pages in your blog. If its dynamic templating make sure the .htaccess code is in the appropriate folders

Posted

I myself am stuck on #1, there doesn't seem to be any plugins/tags to take care of this. There is the ExcludeCategories plugin but that is for entries not listing of categories.

 

Why not just put the category listing in a test page, grab the HTML produced, remove the categories you don't want listed!

Posted

Well Arvind- if *YOU* don't know how to do this either-and i do know about the excludecategoreis plugin also but found it to not be what I want-then there is a need for a plug in to be written! (I'm not that far yet in my skills to do so myself)

 

I'll try your idea and get back to you, ok?

Dida

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...