Why not a sample db included??

Use GitHub to post feature requests for phpwcms.
Locked
budman
Posts: 1
Joined: Tue 16. Mar 2004, 23:39
Location: Canada
Contact:

Why not a sample db included??

Post by budman »

My biggest problem is figuring out the templates etc. I did download the 4 main page types from the site , 1_full., 2_2-col-left , 3_2-col-right, 4_1-col. but as I am a silly man still am not getting it :oops:

One thing I would have liked in the install was a sample database with 4 templates types and features kind of filled in, I am a typical user I guess that learns fast if presented with visual input...

If a sample db was included with tags etc, I could then see the structure and pretty well would understand somewhat instantly.

I wonder if anyone could post a typical site database export from phpMyAdmin with or without the images for download preferable witht he 4 template types. I would suggest this then be included as a feature for silly users like me :oops:

I would save a huge learning curve, that I see arisisng.

thanks
alchemistkevin
Posts: 15
Joined: Sun 11. Apr 2004, 22:09
Location: London
Contact:

Post by alchemistkevin »

same here, have u got this working yet?
if yes, would u mind posting further info?
in an alternate time
User avatar
pSouper
Posts: 1552
Joined: Tue 11. Nov 2003, 15:45
Location: London
Contact:

Post by pSouper »

First off - the tempates are not stored in a DB. they are in flat files.

the samples are so easy you are probably looking to hard.

any code you want to apear in any section you write the in that section.
of course you could use your favorite html editor. write stuff that works and cut&paste it in to the desired area.
bingo.
the replacement tags should be written exactly as they are in the phpwcms.de documents (case sensitive).
alchemistkevin
Posts: 15
Joined: Sun 11. Apr 2004, 22:09
Location: London
Contact:

Post by alchemistkevin »

i do understand a part of this, but to be sure i am understanding it the way it is, can any1 post a sample template (however simple or complex) as defined in phpwcms?

it would be of gr8 help to me and others here

thanks.
in an alternate time
User avatar
pSouper
Posts: 1552
Joined: Tue 11. Nov 2003, 15:45
Location: London
Contact:

Simple example

Post by pSouper »

ok, just cut and paste this in to your templates...

html head

Code: Select all

<title>mysite | welcome</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<LINK REL="SHORTCUT ICON" HREF="http://www.mydomain.net/favicon.ico">
header

Code: Select all

this is my header section
{BREADCRUMB}
main

Code: Select all

this is my main section
{CONTENT}
and some more stuff here
left block

Code: Select all

this is my left block
{NAV_TABLE_COLUMN}
and some more stuff here
right block

Code: Select all

this is my right block
{NAV_TABLE_SIMPLE}
and some more stuff goes here
footer

Code: Select all

this is my footer
{BREADCRUMB}
more stuff goes here
error

Code: Select all

this will apear if there is no articles in this menu
User avatar
pSouper
Posts: 1552
Joined: Tue 11. Nov 2003, 15:45
Location: London
Contact:

Post by pSouper »

of course - having a layout, some menu structures and a few article within will really show this off nicely ;)
Locked