[pmwiki-users] RandomQuote without the anchor?
Patrick R. Michaud
pmichaud at pobox.com
Sat Sep 13 00:49:56 CDT 2008
On Sat, Sep 13, 2008 at 01:27:04AM -0400, Andy Kaplan-Myrth wrote:
> I have a question about generating random *colours* -- I'm sure it's not
> too difficult, but any help would be appreciated!
> I'm trying to create a "grid" view for my blog, sort of like
> yongfook.com, as an example. What I have so far is at
> I did this the same way I generate my regular blog view -- a pagelist
> that gives each blog post a style, and in this case that style creates
> small floating boxes. The layout works. Now I'd like to give each box a
> different background color.
> I found the RandomQuote cookbook and thought I could use it, and I
> created a page with a listing of my favourite background colours, but
> when I include them in the pagelist template they come out with the
> anchors from the list of colours, so they mess up the >>div code<<
> Does anybody have a solution or a suggestion for how to change the
> RandomQuote cookbook so it will only return a colour?
Instead of just returning a color, could you have RandomQuote
return the entire >>div color<< line?
If that doesn't work, then perhaps RandomQuote could return a nested div
to handle the background color:
More information about the pmwiki-users