Page 1 of 1

How to link from menu to an article?

Posted: Thu 20. Apr 2006, 18:29
by RealTime
I started phpwcms not long ago.

I have a few questions regarding the site structure:

1: I have some html for page (for example form.html) and I want to be able to see it when the user clicks on some link on the main menu.
From what I understand, I create an article with html content and then I copy my form.html into the block.

But then how do I tell the main menu link to point to that article?
Should I use my main menu links using some sort of a built-in navagation system of the cms?

2: Under Admin > Default Css , there are some tags like:

I set the page in the layout to rendering: Table.

My question is, is it possible to set different css styles for each of the blocks?

Thanks alot for any help!

Posted: Thu 20. Apr 2006, 20:15
by Klappstuhl28
Hi RealTime,
My question is, is it possible to set different css styles for each of the blocks?
sure it is. And not even for the blocks.
You can build classes in you css like:

.theoneblock {
color: #ffffff;
font: 13px Arial, sans-serif;
padding-top: 3px;
font-weight: bold;
}

When you want to use this set a

<div class="theoneblock"> at the beginning
and a </div> at the end.
In Blocks, or whereever you want to use it.

Or you can write it directly into te block:
<div style="padding: 30px; 40px; 20px; 20px; ...;"
code or the {CONTENT}-Replacement-Tag and than
the closing </div>
in the main-block in you admin-template-section.
I create an article with html content and then I copy my form.html into the block.
You also can use your normal template and create maybe
an article with the content part "contact form".
But of course you can use the contentpart html an place your code.

Maybe you would like to read this. It´s a very good overview
about the phpwcms-features.
http://www.phpwcms-docu.de/the_docu.phtml

So, the easiest way is to start with a template. It just sets the
layout of your page. Than you can add, create articles...
The content which will be combined with the template to
your site.

http://www.phpwcms-docu.de/article.phtml

Posted: Thu 20. Apr 2006, 22:41
by RealTime
Hello Klapp and thanks for your reply.

You have helped me alot!

Im starting to understand what its all about.

I create all my web content which was previously in *.html files and put them in articles.

When I want to directly access them (for example from the main menu), I just link them to thier ID like http://localhost/index.php?id=1,8,0,0,1,0 .

Just making sure this is the right way to build the site :)

Thanks again.

Posted: Fri 21. Apr 2006, 10:28
by Klappstuhl28