Are pages with HTML markup possible?

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

Are pages with HTML markup possible?

NorbertHartl
Hi,

I'm still trying to change my application that is pure seaside
to pier. I need to keep the layout of the page that means I
need some control over the markup created. On the other hand
I want to be able to "document" components that means to be
able to put some text before and/or after the component.

So imagine a page that contains three components. I want to
do some specific markup for the layout of these components.
And at the same time I want to be able to press edit and write
some help text above component No. 2.

Regarding layout I would need to do HTML markup. Can a pier
page be enriched by HTML markup? Or is this possible by
tweaking the environment? As far as I understand it the
contents component in an environment determines the place
in the tree where the page is rendered into. Can you have
more than one in an environment?

thanks,

Norbert

_______________________________________________
Magritte, Pier and Related Tools ...
https://www.iam.unibe.ch/mailman/listinfo/smallwiki
Reply | Threaded
Open this post in threaded view
|

Re: Are pages with HTML markup possible?

Lukas Renggli
> So imagine a page that contains three components. I want to
> do some specific markup for the layout of these components.
> And at the same time I want to be able to press edit and write
> some help text above component No. 2.

Yes, you can do that. Add a page a page that adds markup before and
after your components.

The simplest thing is to stick with the Pier markup:

| +component1+ | +component2+ |

> Regarding layout I would need to do HTML markup. Can a pier
> page be enriched by HTML markup?

Of course you can also use plain HTML, if you want. Something along:

<div class="float: left">+component1+</div>
<div class="float: left">+component2+</div>

> Or is this possible by
> tweaking the environment? As far as I understand it the
> contents component in an environment determines the place
> in the tree where the page is rendered into.

Yes, the environment defines the placing of multiple pages. It can
also embed pages, or components. Exactly the same way as shown above.

The only difference of the environment to a normal page, is that it
doesn't surround the wiki text with <p> tags when being rendered. This
makes the HTML more clean if you define layout. Have a look at the
environment of the default Pier installation.

> Can you have
> more than one in an environment?

Yes, every page can have its own environment. Subpages automatically
inherit the environment of the parent page.

Go to 'Settings' to change the environment.

Cheers,
Lukas

--
Lukas Renggli
http://www.lukas-renggli.ch
_______________________________________________
Magritte, Pier and Related Tools ...
https://www.iam.unibe.ch/mailman/listinfo/smallwiki