Charles,
You can put snippets on the requested page or in the template.  It matters
not.

You can also write a snippet that may return XML that includes references to
other snippets, so you can have a snippet that detects what kind of page
you're on and if you're on a content page, the snippet will return XML that
invokes another snippet that pulls the data from the RDBMS.

Is this helpful or more confusing?

Thanks,

David

On Mon, Jan 12, 2009 at 3:41 PM, Charles F. Munat <[email protected]> wrote:

>
> 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.
>
> >
>


-- 
Lift, the simply functional web framework http://liftweb.net
Collaborative Task Management http://much4.us
Follow me: http://twitter.com/dpp
Git some: http://github.com/dpp

--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to