[Zope] www.mysite.com/Members/<someone>
Bill Anderson
bill@libc.org
Tue, 06 Jun 2000 03:32:49 -0600
Ian Sparks wrote:
>
> I have the source here, perhaps you can point me to where I should be
> looking - the PTK is reasonably large.
>
> AFAICS the PTK uses a folder called Members and adds folders under that for
> each registered user :
>
> Members
> Fred
> FredContent1
> FredContent2
> FredContent3
> Jim
> JimsContent
>
> Nothing database-driven about that.
See below...
...
> >I want to produce a home-page on my site using a URL like :
> >
> >http://www.zope.org/Members/Fred
> >
> >
> >I'm a little confused as to how I would go about this in a dynamic way
> where
> >I would pull the contents of the page out of a database.
> >
> >A non-database way would be to :
> >
> >/Members (folder)
> > /Fred (sub-folder or Document)
> > /Jim (sub-folder or Document)
> > /Jane (sub-folder or Document)
> >
> >But I want to be able to generate the /Members/Fred page dynamically.
What exactly would you generate this off of?
I would guess from data in a databse (SQL)?
If so, you could do a select statement to ge tthe userlist.
You would then make a 'template' that built a page from the data in a
database, where username==username (ie Fred).
But, you could be asking for something completely different. ;)