Blog Post Page in Splash

1 view
Skip to first unread message

Clarke Bishop

unread,
Mar 3, 2010, 2:37:21 PM3/3/10
to spla...@googlegroups.com

Russ, Raul, and others who might have ideas:

 

I already have a nice looking Blog Post in Splash. Here’s an example:

http://www.donorup.com/index.cfm/fundraising-magic-is-in-the-people-not-the-software

 

Inside each page, I put this:

 

<s:snippet name="blogHeader" />

 

   All the actual post content.

 

<s:snippet name="blogFooter" />

 

The BlogHeader snippet sets up the Title/Date/Author/Tags at the top of the post, and the BlogFooter snippet closes the tags.

 

 

This is fine, but it is a bit of a hassle, as you have to remember to put in the header and footer with each post. And, now I’ve come across another problem with this approach. I’m adding an RSS feed using my <s:children-each> tag. It’s almost working, but …

 

The problem is that I want to include the content of a post in the RSS feed. The content is in the body pagepart. But, all that <s:snippet> stuff is in there too.

 

I think we need another kind of layout that only affects the pagepart Content.  Or is this what page types are for?

 

I’m trying to think this through and solve the general problem – I already have lots of quick fix ideas. Thanks for any ideas you have!

 

   Clarke

 

Office: 770-642-1353
eMail: cbi...@resultantsys.com

 

raulriera

unread,
Mar 3, 2010, 11:03:14 PM3/3/10
to Splash CMS
To answer your first "hassle" :) you can make a "post" layout and auto
include the "postHeader" and "postFooter" (that how I would call
those) so that your users just need to enter the title and the body :)

About the other thing I am not quite sure... I don't know if there is
a way to detect if this is going to be a RSS render so you can skip
certain outputs (you can place that logic inside your snippets or
tags)

On Mar 3, 3:37 pm, "Clarke Bishop" <cbis...@resultantsys.com> wrote:
> Russ, Raul, and others who might have ideas:
>
> I already have a nice looking Blog Post in Splash. Here's an example:
>

> http://www.donorup.com/index.cfm/fundraising-magic-is-in-the-people-n...


> software
>
> Inside each page, I put this:
>
> <s:snippet name="blogHeader" />
>
>    All the actual post content.
>
> <s:snippet name="blogFooter" />
>
> The BlogHeader snippet sets up the Title/Date/Author/Tags at the top of the
> post, and the BlogFooter snippet closes the tags.
>
> This is fine, but it is a bit of a hassle, as you have to remember to put in
> the header and footer with each post. And, now I've come across another
> problem with this approach. I'm adding an RSS feed using my

> <s:children-each> tag. It's almost working, but .


>
> The problem is that I want to include the content of a post in the RSS feed.
> The content is in the body pagepart. But, all that <s:snippet> stuff is in
> there too.
>
> I think we need another kind of layout that only affects the pagepart
> Content.  Or is this what page types are for?
>

> I'm trying to think this through and solve the general problem - I already


> have lots of quick fix ideas. Thanks for any ideas you have!
>
>    Clarke
>
> Office: 770-642-1353

> eMail: cbis...@resultantsys.com

Clarke Bishop

unread,
Mar 4, 2010, 9:10:17 AM3/4/10
to spla...@googlegroups.com
That's a good idea on the post layout.

It's funny how you think sometimes. I was thinking that the layout
controlled everything except for the body. But, of course, it doesn't have
to be this way!

Clarke

Reply all
Reply to author
Forward
0 new messages