[pmwiki-users] Nested divs needed for blog styling...

Patrick R. Michaud pmichaud at pobox.com
Sun Dec 11 21:54:22 CST 2005


On Sun, Dec 11, 2005 at 10:50:17PM -0500, Ryan R. Varick wrote:
> On 12/11/05, Patrick R. Michaud <pmichaud at pobox.com> wrote:
> > Perhaps don't use the div markup for the box -- just use a normal
> > HTML <div> tag:
> >
> >          $digest  .= "\n<div class='blogitem'>\n";
> >          $digest  .= $stuffing;  // The actual post.
> >          $digest  .= "\n</div>\n";
> 
> This is the solution.  I'll be adding code similiar to this to
> alternate back and forth between two blog classes (for different
> backgrounds).
> 
> Just FYI, you have to have to add div to $AllowedTags set in order for
> this to work.

If $digest is being built from within a markup rule, you shouldn't
need $AllowedTags or the EnableHTML recipe.  Ohhhh, I see, you're
setting up $digest to be saved in the page, not as markup processing.  

I'd do it entirely differently then -- I'd create a 
(:blogitem:)/(:blogitemend:) markup to be saved in the page and that
translates into <div>...</div>, and have $digest use (:blogitem:).

Pm




More information about the pmwiki-users mailing list