OpenNTF.org - DominoWiki

My Links (Not logged in)
User Name Password
Hosted by Prominic.NET

   Project: DominoWiki (Managed by Benedict R Poole)
Actions:


Response
SubjectAnother idea
Created 06/23/2008 02:24 PM by Dave Parillo.
Modified06/23/2008 02:32 PM by Dave Parillo.
Body

I ended up not bothering with lists at all, but changing the '*' markup to be the same as the ':' markup - i.e. an indented div which stands on it's own. To make it unique, give the div its own class attribute. You don't have to know it's part of a larger list.

Private Function doList(txt As String, amount As Integer) As String
doList= ReplaceRangeEnds(txt, Chr(10) & Ustring(amount, "*"), Chr(10), _
Chr(10) & "<div class='listitem' style='margin-left: " & (2 * amount) & "em'>" , " </div>" & Chr(10), "*" , True)

doList= ReplaceRangeEnds(doList, Chr(10) & Ustring(amount, "*"), Chr(10), _
"<div class='listitem' style='margin-left: " & (2 * amount) & "em'>" , " </div>", Chr(10) , False)
End Function


Change parseLists to call this function for varying numbers of *'s

Then you can style the div to make it look like a list (i.e. give it a background-url)



Feedback

Hide details for On of the issues I have found in us... (Peter D Presnel... on 03/11/2008 02:01:20 PM )On of the issues I have found in us... (Peter D Presnel... on 03/11/2008 02:01:20 PM )
. . Another idea (Dave Parillo on 06/23/2008 02:24:43 PM )
Check out other projects
Switch to project: