How to link from menu to an article?

Get help with installation and running phpwcms here. Please do not post bug reports or feature requests here.
Post Reply
RealTime
Posts: 6
Joined: Wed 19. Apr 2006, 09:00

How to link from menu to an article?

Post 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!
User avatar
Klappstuhl28
Posts: 833
Joined: Fri 4. Mar 2005, 01:58
Location: Hamburg
Contact:

Post 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
Lars

Don't say you don't have enough time. You have exactly the same number of hours per day that were given to Helen Keller, Pasteur, Michaelangelo, Mother Teresa, Leonardo da Vinci, Thomas Jefferson, and Albert Einstein. - H. Jackson Brown -
RealTime
Posts: 6
Joined: Wed 19. Apr 2006, 09:00

Post 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.
User avatar
Klappstuhl28
Posts: 833
Joined: Fri 4. Mar 2005, 01:58
Location: Hamburg
Contact:

Post by Klappstuhl28 »

Lars

Don't say you don't have enough time. You have exactly the same number of hours per day that were given to Helen Keller, Pasteur, Michaelangelo, Mother Teresa, Leonardo da Vinci, Thomas Jefferson, and Albert Einstein. - H. Jackson Brown -
Post Reply