
Theo
Project Manager
/ Moderator

Oct 27, 2006, 1:12 PM
Post #10 of 11
(1725 views)
Shortcut
|
|
Re: [happytime] Helllllllllllllp!!
[In reply to]
|
Can't Post
|
|
What you're describing will work nicely, if I understand what you're looking for. You want your category pages to do into your main web folder (about.shtml, news.shtml, etc), but you want the articles to go into subfolders (about/, news/)? This is very close to what Article Manager 2 does by default, the only change you'd need to make is to the "Category Indexes" publishing rule. Instead of publishing as "<catFile>/index.<ext>", it should just be "<catFile>.<ext>". Since you want to publish your indexes to your webroot, and your folders off of that, once you're happy with your Article Manager 2 installation it's just a matter of updating your Default Publish Folder and URL to point to your webroot, instead of /artman2/publish/. Now, if you want to do something *different* with one category (or with a few categories), such as publish to into a totally artibrary folder, you could do this one of two ways: - Put the full folder path (from your publish directory) in the categories "Filename" field (i.e. members/news). This will apply to all instances of <catFile> in publishing rules, so your index would be members/news.shtml and your articles would go into members/news/. If this won't work for your design, you'll have to do the following. - Set up a publish rule for your "special" category. This didn't work quite right in 2.00 (customizing publish location or filename wouldn't work), but has been improved for 2.01. This will work for any rule type, but for example purposes we'll assume you want your Articles to go to a custom location: 1) Go to the Article Pages publishing rule and go down to Category Filter. Select "Exclude" and set the radio button to [Excluse] the selected categories, then select the category you want customize. Save the rule. 2) "Create" a new Publishing Rule. Call it "Article Pages - custom for [Category Name]". Set the Placeholder Set name to be the same as your other rule (articlePage) - this is VERY important, otherwise your templates won't link to the custom files - and select the same template (articlePages/articlePage.html). 3) Go down to Category Filter as per step 1 and "Exclude" the appropriate category. Now you can customize the naming convention for the published page and/or the folder/URL that you want the articles to go into. When you're done, click save, and you're done (except for re-publishing). Note that this same technique can be used to have custom templates, though often you're better off creating custom fields or adding some "tempalteIf's" to your templates, rather than having lots of templates. In general, it's more efficient (and recommended) to define the differences between categories without extra publishing rules or templates. I hope this helps. Regardless of which way you want to do it, I'm sure we can get the effect you're looking for. It's just a matter of fine-tuning the details for your needs, and we're happy to help you through that if necessary. Theo Wiersma Project Manager
|