Main
Index
Search
Posts
Who's
Online
Log
In

Home: Discontinued/Classic Products: Article Manager 2:
Sitemap

 

 


diness
User

Dec 28, 2006, 3:35 PM

Post #1 of 12 (5032 views)
Shortcut
Sitemap Can't Post

I would like to make a sitemap, where i make a publishing rule, that will list the articles like this :

Main category
- subcategory1
- article1
- article2
- subcategory2
- article1
- article2

Main category2
- subcategory1
- article1
- article2
- subcategory2
- article1
- article2

etc.
How do I make this easy?
can i do it, witch just one page, so I do not need all those includes?

Is it possible to use the IF command to say, if category = name or how
does it work? I could use some more toturials, so I could get more familair with the publishing rule system.


Donna
Staff / Moderator


Jan 2, 2007, 5:21 PM

Post #2 of 12 (4997 views)
Shortcut
Re: [diness] Sitemap [In reply to] Can't Post

Hi diness!

This is a little complicated, but I was able to make it work for you. :) What we'll end up doing is basing this on the Grouped by Headlines rules that create the default headlines on the right side of the global index page. Right now, this does almost exactly what you're looking for, except it doesn't show the sub-categories, only the top-level cats.

Here's how!

1. First, we'll make a copy of two templates, so you can adjust the look & feel of each (and some other minor changes). The two templates you'll be modifying are:

/templates/categoryMenus/groupedHeadlines.html
/templates/articleLists/articlesForGroupedHeadlines.html

I made copies of these called:

/templates/categoryMenus/sitemapHeadlines.html and
/templates/articleLists/articlesForSitemap.html

Leave them as is for now, we'll come back and modify them in a minute.

2. Next, make a copy of the Grouped Headlines publish rule. To do this, click modify for the "Grouped Headlines (grouped by category)" publish rule, and scroll down to the bottom until you see the "Copy Rule" button on the left hand side. Click Go, and you'll have a new rule that you can start modifying immediately. Make the following changes to the new rule:

- Update the name - I changed the name of mine to "Site Map" to make it easy to keep track of.
- Change the template to use the one that you created a minute ago. You can select this from the dropdown list. (sitemapHeadlines.html)
- Modify the placeholder to something different. (I used "sitemap")
- Modify the filename so that it's not overwriting the default headlines. I called mine sitemap <ext> -- by default, this will publish to your main publish directory, as sitemap.shtml
- Scroll to the bottom and change the Menu Format to "Show All".

Then save.

3. Next, we'll make a copy of the Articles for Grouped Headlines publish rule. Make the following changes:

- Choose different names (including the placeholder set name -- I changed mine to sitemaparticles) as before
- Choose the new template from the dropdown menu. (articlesForSitemap.html)
- Change the "Limit Results" section to show as many as you want. (If you want all of your results to show, set the second number to something very high, like 1-1000.)
- Under "Advanced Options" and uncheck the box that says "Include articles from subcategories".

Then save.

4. Now we'll get back to those templates. :) Open the categoryMenu template we modified earlier (I called mine sitemap.html). Here's what I used as the content:

Code
<!-- template insert : $categoryList$ --> 

<!-- templatecell : categoryRow -->

<!-- templateIf : $category.depth$ == "0" -->
<strong>$category.name$</strong><br>
<!-- /templateIf -->

<!-- templateIf : $category.depth$ == "1" -->
&nbsp;$category.name$<br>
<!-- /templateIf -->

<!-- templateIf : $category.depth$ == "2" -->
&nbsp;&nbsp;$category.name$<br>
<!-- /templateIf -->


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

<!-- /templatecell : categoryRow -->



You can, of course, format this as needed -- I've set mine to be pretty barebones for demonstration purposes. I'd recommend starting with this -- you can come back later and format it to fit your look & feel.

For the second template (the articlesForSitemap.html), I trimmed it down to just this:


Code
			<!-- template insert : $articleList$ --> 

<!-- templatecell : articleRow -->
<a href="$published.articlePage.url$">$article.title$</a><br>
<!-- /templatecell : articleRow -->


Again, you format it as needed later. Save both templates.

5. Now, go back to the admin.cgi and click Publish All to republish your site, and take a look at the published file. :) If you used my naming scheme, it will be at something like http://www.yoursite.com/artman/publish/sitemap.html -- otherwise, go to whatever you set the filename to be.

Let me know if that works for you, or if you have any other questions or concerns!

Donna

--
support@interactivetools.com


ibis70
User

Mar 9, 2008, 9:59 AM

Post #3 of 12 (4750 views)
Shortcut
Re: [Donna] Sitemap [In reply to] Can't Post

Hi Donna,

This works, great !
I am publishing in shtml and Google won't handle that extention. What should I do?

Thanks,
Elisabeth


Jake
Staff


Mar 10, 2008, 1:09 PM

Post #4 of 12 (4731 views)
Shortcut
Re: [ibis70] Sitemap [In reply to] Can't Post

Hi Elisabeth,

Were you setting up a Google sitemap file? I think they require xml files. To change the extension, go modify the publishing rule used to create this file and change the file extension setting from <ext> to xml. Once that's done, re-publish your file and it will take on that new extension. If you had any other questions about setting up a Google sitemap, Donna wrote more on this subject here:

http://www.interactivetools.com/iforum/gforum.cgi?post=57928;search_string=google%20sitemap;t=search_engine#57928

Let us know if you have any other questions about this!
-----------------------------------------------------------
Cheers,
Jake Marvin - Product Specialist
support@interactivetools.com

[hr][i][url "http://www.interactivetools.com/consulting/"][b]Hire me![/b][/url]
Save time by getting our experts to help with your project. Template changes, advanced features, full integration, whatever you need. Whether you need one hour or fifty, get it done fast with [url "http://www.interactivetools.com/consulting/"][b]Priority Consulting[/b][/url].[/i]


ElizaDay
User

Jun 9, 2008, 8:32 AM

Post #5 of 12 (4379 views)
Shortcut
Re: [Jake] Sitemap [In reply to] Can't Post

Hi. I want to follow this tutorial but my installation doesn't have :

/templates/categoryMenus/groupedHeadlines.html
/templates/articleLists/articlesForGroupedHeadlines.html

or any Rules for 'Articles for Grouped Headlines'

Have I omitted something major?

Tks.


Jake
Staff


Jun 9, 2008, 12:25 PM

Post #6 of 12 (4376 views)
Shortcut
Re: [ElizaDay] Sitemap [In reply to] Can't Post

Hi ElizaDay,

Those files aren't necessarily required to set up the Site Map - you should be able to use the code that Donna provided on its own in a new template file to get this going.

If you need anything else, let us know!
-----------------------------------------------------------
Cheers,
Jake Marvin - Product Specialist
support@interactivetools.com

[hr][i][url "http://www.interactivetools.com/consulting/"][b]Hire me![/b][/url]
Save time by getting our experts to help with your project. Template changes, advanced features, full integration, whatever you need. Whether you need one hour or fifty, get it done fast with [url "http://www.interactivetools.com/consulting/"][b]Priority Consulting[/b][/url].[/i]


ElizaDay
User

Jun 9, 2008, 1:47 PM

Post #7 of 12 (4374 views)
Shortcut
Re: [Jake] Sitemap [In reply to] Can't Post

I've tried that. Not really sure if I am right but I used a Menu Rule for the sitemapHeadlines.html and an List of Articles Rule for the articlesForSitemap.html
The results are giving me the Category names with a list of articles underneath each. The list of Articles is incorrect though. The list seems to be a list of all the Articles in the site. But limited to 5. So like 3 from the first Category and 2 from the second. It's the same list under every Category name.
Hard to explain.
Any ideas?


MikeB
Staff


Jun 9, 2008, 4:33 PM

Post #8 of 12 (4370 views)
Shortcut
Re: [ElizaDay] Sitemap [In reply to] Can't Post

Hi,

I just sent you an email about this a couple of minutes ago, and wanted to follow-up here for anyone else that is encountering similar issues.
I've had a look at this and it looks like everything should be working now. It seems as though the publishing rule that was used to create the list of articles for each category was set to publish a single file, rather than a different file for each category. I've tweaked this publishing rule for you and you should now see the results you're looking for.

I hope this helps! Smile

Cheers,
Mike Briggs - Product Specialist
support@interactivetools.com

[hr][i][url "http://www.interactivetools.com/consulting/"][b]Hire me![/b][/url]
Save time by getting our experts to help with your project. Template changes, advanced features, full integration, whatever you need. Whether you need one hour or fifty, get it done fast with [url "http://www.interactivetools.com/consulting/"][b]Priority Consulting[/b][/url].[/i]


Luke101
User

Mar 26, 2009, 12:10 AM

Post #9 of 12 (3640 views)
Shortcut
Re: [MikeB] Sitemap [In reply to] Can't Post

so what was the solution to his problem? I am having the same problem
listsergeant.com


Donna
Staff / Moderator


Mar 27, 2009, 11:08 AM

Post #10 of 12 (3602 views)
Shortcut
Re: [Luke101] Sitemap [In reply to] Can't Post

Hi Luke!

I think Mike mentioned the solution in his previous post -- switching the publish rule that created the list of articles from a "single file" to "multiple files". :)

Donna

--
support@interactivetools.com


Luke101
User

Mar 28, 2009, 7:48 PM

Post #11 of 12 (3579 views)
Shortcut
Re: [Donna] Sitemap [In reply to] Can't Post


In Reply To
Hi Luke!

I think Mike mentioned the solution in his previous post -- switching the publish rule that created the list of articles from a "single file" to "multiple files". :)



OK..I did that and this is what i got

http://www.listsergeant.com/publish/alllist.shtml
listsergeant.com


Donna
Staff / Moderator


Mar 31, 2009, 3:28 PM

Post #12 of 12 (3503 views)
Shortcut
Re: [Luke101] Sitemap [In reply to] Can't Post

Hi there,

Can you let me know what's not working the way you expected it?

Donna

--
support@interactivetools.com