I currently have several sites where I permit users to update page
content using Markdown, saving the code in the database. I use a Page
object tied to the url of the page, and a PageOps snippet. Then I
surround the template thus:
<lift:PageOps.public>
<div id="main">
<page:blockOne/>
</div>
<div id="sidebar">
<page:blockTwo/>
</div>
</lift:PageOps.public>
Now I realize that I want to include some items (namely banners) that
are in the default template. I suppose I could just move the
<lift:PageOps.public> tags to the default template (would that work?),
but I'm wondering if there's a better way.
Is there some simple way I could put every site page (or say, every
public page) through a snippet that looked for an equivalent page in the
pages database table and, if it found one, inserted the text, etc. in
the right places?
Chas.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Lift" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/liftweb?hl=en
-~----------~----~----~----~------~----~------~--~---