[WM] Exclude pages from site map

Alan Jackson ajackson.oplnk.net
Thu Aug 8 03:33:02 IST 2002


On Wed, 07 Aug 2002 11:22:41 +0100
jm at jmason.org (Justin Mason) wrote:

> 
> Alan Jackson said:
> 
> > But in my case I'm using the same content twice, with different templates.
> > Once for the original page, and again for the printer-friendly style.
> > How can I map one and not the other?
> > 
> > Ahhh... this worked. Kewl! Change the default for the attribute even after
> > the content is defined, around the <out> block!
> 
> cool!  even I didn't know that would work ;)
> 

I found a better way, with more control.

I have 3 <contents> blocks. One for the index, since it is special, one for
files ending in .txt, which define all the other pages, and a special one
for "current_events" which is a little news file that gets embedded in
in the index page.

For the current_events file, I did :

<contents src="file:raw" name="current_events" format="text/html" listname="updates" map="false"/>

which worked well.

For the rest of the pages, I tagged the template :

<template name=home_template format="text/html" map="false">
for the site index, and
<template name=print_template format="text/html" map="false">
for the printer-friendly pages.

Slowly but surely I'm conquering this thing! 8-)


-- 
-----------------------------------------------------------------------
| Alan K. Jackson            | To see a World in a Grain of Sand      |
| alan at ajackson.org          | And a Heaven in a Wild Flower,         |
| www.ajackson.org           | Hold Infinity in the palm of your hand |
| Houston, Texas             | And Eternity in an hour. - Blake       |
-----------------------------------------------------------------------




More information about the Webmake-talk mailing list