Account Options

  1. Sign in
The old Google Groups will be going away soon, but your browser is incompatible with the new version.
Google Groups Home
« Groups Home
how to exchange "blog-post-full-text-version" into "blog-post-excerpt" in the index-file of categories
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  4 messages - Collapse all  -  Translate all to Translated (View all originals)
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
Tobias  
View profile  
 More options Jul 19 2011, 1:45 pm
From: Tobias <tob...@googlemail.com>
Date: Tue, 19 Jul 2011 10:45:25 -0700 (PDT)
Local: Tues, Jul 19 2011 1:45 pm
Subject: how to exchange "blog-post-full-text-version" into "blog-post-excerpt" in the index-file of categories

Hi at all,

first thanks to you for programming and supporting blogofile. In wich way
its possible to change the category-index-handling. I wish to show in the
categorie-index-files only an excerpt and not the full text of an blog-post.
I would be pleased, if one of you could give me a hint/tip, to change this.

Thanks for help,

Tobias


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Peter Zsoldos  
View profile  
 More options Jul 20 2011, 4:08 pm
From: Peter Zsoldos <peter.zsol...@gmail.com>
Date: Wed, 20 Jul 2011 13:08:14 -0700 (PDT)
Local: Wed, Jul 20 2011 4:08 pm
Subject: Re: how to exchange "blog-post-full-text-version" into "blog-post-excerpt" in the index-file of categories

Tobias,

I have not yet tried this, but AFAIK (I've been using blogofile (0.8-dev)
for about a month) it's not possible without changing the internals. My
approach would be to create a new template (by default, it'd only inherit
from chronological.mako), and change the categories.py file to pass the
newly created template name to the materialize_template call.

Please let me know whether the above makes sense, and if you try it out, let
us know whether it worked!

HTH,

Peter


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Ryan McGuire  
View profile  
 More options Jul 20 2011, 8:15 pm
From: Ryan McGuire <tellar...@gmail.com>
Date: Wed, 20 Jul 2011 20:15:52 -0400
Local: Wed, Jul 20 2011 8:15 pm
Subject: Re: how to exchange "blog-post-full-text-version" into "blog-post-excerpt" in the index-file of categories

I admit this is bit hacky, but here's a way you could do what you want
without modifying the internals:

In your chronological.py:

replace:
<%include file="post.mako" args="post=post" />

with:
  % if bf.template_context.render_path.startswith("/blog/category"):
    <%include file="post_excerpt.mako" args="post=post" />
  % else:
    <%include file="post.mako" args="post=post" />
  % endif

That is just including a different post template depending on the URL being
rendered, in this case the category pages.

On Wed, Jul 20, 2011 at 4:08 PM, Peter Zsoldos <peter.zsol...@gmail.com>wrote:


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Ryan McGuire  
View profile  
 More options Jul 20 2011, 8:18 pm
From: Ryan McGuire <tellar...@gmail.com>
Date: Wed, 20 Jul 2011 17:18:55 -0700 (PDT)
Local: Wed, Jul 20 2011 8:18 pm
Subject: Re: how to exchange "blog-post-full-text-version" into "blog-post-excerpt" in the index-file of categories
Of course that would be chronological.mako not chronological.py

And if you're using the latest git, you would need to instantiate
those templates by running:

blogofile blog templates copy _templates/blog

and then follow the directions spit out on your screen for using the
copied templates.

On Jul 20, 8:15 pm, Ryan McGuire <tellar...@gmail.com> wrote:


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »