Add new attachment

Only authorized users are allowed to upload new attachments.

This page (revision-8) was last changed on 12-Jun-2007 23:55 by JanneJalkanen  

This page was created on 17-Nov-2006 19:10 by George Kendall

Only authorized users are allowed to rename pages.

Only authorized users are allowed to delete pages.

Difference between version and

At line 7 changed one line
|[Bug status]|NewBug
|[Bug status]|ClosedBug
At line 14 changed one line
! Why would I want to comment out section dividers?
Have you thought about adding a different way to define sections to be inserted by the InsertPage feature? Insert Page works great, but it forces you to leave horizontal rules in your low level pages, which may not fit with the look and feel you are after.
At line 16 changed 2 lines
In my wiki, I am using certain pages to hold information about news stories: news story title, short summary, full text. These sections can then be referenced by other pages. For example, the home page includes summaries of and links to three news stories.
The simplest way to hold this information seemed to be to hold the information in separate sections, with one wiki page per story. This would work fine, if that page was subdivided by horizontal rules, but my internal client doesn't want this. I thought an easy solution would be to comment out the sections, but that results in the problem described below.
You can get rid of the section markers by adding the following css to your template jspwiki.css file:
At line 19 changed one line
! Problem with inserting commented out sections
{{{
hr { display:none; }
}}}
At line 21 changed one line
If the section marker (----) is commented out using the {{{%%(display:none)%%}}} technique, then the closing </div> is lost when the preceding section is included. This currently seems only to be a problem if the InsertPage contains style information. It would be nice if, either a section included till the end of the line, or there were another way to comment out section markers without this side-effect.
This disables all horizontal rules. It's what I ended up doing, but it's not ideal, as it prevents the use of horizontal rules in all situations.
At line 23 changed one line
(See [JSPIncludeDisplayNoneSection] for details)
----
At line 25 changed one line
! One possible solution
This is rather strange, indeed.
At line 27 changed 5 lines
In the template css file (eg jspwiki.css), add the following line:
{{{
hr { display:none; }
}}}
This disables all horizontal rules. It will probably do what I want, but obviously isn't ideal, as it prevents the use of horizontal rules in all situations.
-- JanneJalkanen
----
-- [JDuprez] the description was edited since the original logging of this bug (which had to do with unexpected side-effects of using the {{display:none}} trick), which by the way makes Janne's comment sound quite off-base... If this "bug report" now aims to find a way to better define sections and include them, let me link to a related proposal [Idea Named Sections]. As far as I'm concerned, I would close this bug report indeed, if it's actually not a bug.
----
Agree. Closing this bug.
-- JanneJalkanen, 12-Jun-2007
Version Date Modified Size Author Changes ... Change note
8 12-Jun-2007 23:55 1.534 kB JanneJalkanen to previous closed, wontfix
7 13-Apr-2007 10:54 1.462 kB JeromeDuprez to previous | to last Pointed to related idea, suggested closing.
6 06-Apr-2007 19:47 0.99 kB George Kendall to previous | to last
5 06-Apr-2007 19:46 0.938 kB George Kendall to previous | to last
4 21-Nov-2006 23:55 1.923 kB JanneJalkanen to previous | to last
3 21-Nov-2006 17:54 1.859 kB George Kendall to previous | to last
2 17-Nov-2006 19:12 0.892 kB George Kendall to previous | to last
1 17-Nov-2006 19:10 0.892 kB George Kendall to last
« This page (revision-8) was last changed on 12-Jun-2007 23:55 by JanneJalkanen