Gossamer Forum
Home : Products : Gossamer Links : Discussions :

build 2 static sites with 2 templates and 1 cat.

Quote Reply
build 2 static sites with 2 templates and 1 cat.
Hi all,

I asked this before but maybe now (1/2 year later) someone know a better solution.

I was wondering if somebody know how to build 2 static 'sites' from 2 template and 1 category ?


I know it's possible to build 1 static, 1 dynamic 'site' from two template and 1 category.
But i want it all static. It's like co-branding in static mode.


Hope somebody knows the answer.

Allready thanks.
Quote Reply
Re: [startpoint] build 2 static sites with 2 templates and 1 cat. In reply to
Not very hard.
Look to build.cgi and build.pm;
the easiest way is to double all the code there.
Try it for your own first, im in hurry and had a problem with this cause i must pass extra vars ;-)
At the moment i build 5 pages from one link, on four different pages (open and closed areas)
Read the code and u will find the way.
Robert
Quote Reply
Re: [startpoint] build 2 static sites with 2 templates and 1 cat. In reply to
You could also use the PageBuilder plugin for this.

The plugin allows you to build 'category' type pages (i.e. a page for every category in your database). You can also build 'link' type pages, i.e. a detailed page for every link. You can include all the templates from your different template directories, so that basically you can build as many different static directories as you like.

Ivan
-----
Iyengar Yoga Resources / GT Plugins
Quote Reply
Re: [Robert] build 2 static sites with 2 templates and 1 cat. In reply to
Aloha thanks for the reply.

Sound like a plan ... i look into it later. If u can pass me tips later on that would be great.
Quote Reply
Re: [startpoint] build 2 static sites with 2 templates and 1 cat. In reply to
Dont know this plugin, but if i understand your words right, its to:

Link1 is in cat1 and cat2, so i can build
cat1/detail/1.html
and
cat2/detail/1.html ???

Fine. What i did is:

Link1 in one or n cats:
Build:
/detail/1.html (maybe for the normal infos
/detail/1a.html (maybe for some more pics)
...
/detail/1n.html

or

/closedarea*/detail/1.html (for some stuff not all should see)

*.htaccess e.g.

Robert
Quote Reply
Re: [Robert] build 2 static sites with 2 templates and 1 cat. In reply to
With the PageBuilder plugin you can build (amongst other things):

1) Category pages, i.e. one page per category (in addition to the normal category pages).
2) Links pages, i.e. one detailed page per link. You can have an unlimited number of detailed pages, so all your 1a.html, 1b.html etc can be built by the plugin. Of course, you can select the directory where the different pages are built, i.e. you can put some detailed pages into your protected area.

I hope that makes sense

Ivan
-----
Iyengar Yoga Resources / GT Plugins
Quote Reply
Re: [Robert] build 2 static sites with 2 templates and 1 cat. In reply to
Hi Robert:

Can u tell me more about:

>Look to build.cgi and build.pm;
>the easiest way is to double all the code there.
>Try it for your own first, im in hurry and had a problem with this cause i must pass extra vars ;-)
>At the moment i build 5 pages from one link, on four different pages (open and closed areas)
>Read the code and u will find the way.

Which extra vars are needed? Some tips would be nice

I try to look into the code this week.

Allready thanks.