You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@forrest.apache.org by "Paterline, David L." <pa...@westinghouse.com> on 2007/08/20 21:16:34 UTC

Questions about simple formatting changes

Hello -

I have some questions about making relatively minor (I think) changes in the
appearance of pages produced by Forrest, and have tried to find tips for
doing so on the Forrest home pages and in previous user list postings. So,
please excuse me if these have been discussed before and I was unable to
find references.

I'd like to "tweak" the appearance of some text in small ways, such as:

- indenting text so that, for example, the text within a section is indented
slightly relative to the position of the section title. Basically, something
like:

 section title
     section text

- creating nested, indented "lists" without the appearance of numbers
(ordered list) or bullets or other markers (unordered list) on each list
item; something like:

 list one, item 1
    list one-a, item 1    
    list one-a, item 2
        list one-b, item 1
        list one-b, item 2
    list one-a, item 3
 list one, item 2
    list two-a item 1    
    list two-a, item 2

In some cases, I may want to make these appearance changes site-wide, and in
other cases, I may want to make the changes apply only to certain pages.

Can anyone point me to information which would help me to make minor changes
in appearance such as these?

Thank you.

-
David L. Paterline
Principal Engineer       
Westinghouse Electric Company
Nuclear Fuel Engineering
Engineering Computing
paterldl@westinghouse.com   
PH: 412-374-2286
FX: 412-374-2284

Re: Questions about simple formatting changes

Posted by Ross Gardler <rg...@apache.org>.
Paterline, David L. wrote:
> I'd like to "tweak" the appearance of some text in small ways, such as:

If they are minor tweaks that can be done by CSS then simply add the 
necessary CSS to skinconf.xml (see extra-css element).

Alternatively, if you find you are making a great many changes, create 
your own skin http://forrest.apache.org/docs_0_90/your-project.html#skins

> - creating nested, indented "lists" without the appearance of numbers
> (ordered list) or bullets or other markers (unordered list) on each list
> item; something like:

Use <ul> and add CSS to prevent the bullet being displayed. If you need 
lists with bullets as well as without then us <ul class="noBullet"> and 
add CSS accordingly.

> In some cases, I may want to make these appearance changes site-wide, and in
> other cases, I may want to make the changes apply only to certain pages.

Using skins it is only possible to do this on a sitewide basis.

Using dispatcher it is possible to do it on a per directory or per file 
basis. However, the dispatcher is currently whiteboard code. It is in 
the 0.8 release, but only as whiteboard (or alpha) code. If you want to 
switch to using dispatcher then you want to see 
http://forrest.apache.org/pluginDocs/plugins_0_80/org.apache.forrest.plugin.internal.dispatcher/how/howto-dispatcher-quickstart.html

Ross