The kottke.org problem

5 views
Skip to first unread message

anand

unread,
May 7, 2005, 12:58:55 AM5/7/05
to nucle...@googlegroups.com
kottke.org has different templates for short posts and long posts.

While doing the delicious to nucleus importer, I needed a different way
to show my posts imported from del.icio.us from my regular posts (since
these had the description as the title, the url as the body and
extented section in the nucleus extended section.)

How do we do the kottke look in nucleus ?

A different template on a per blog basis (needed while using "show
posts from all blogs chronologically sorted") / per category basis /
per tag basis / even on a per item basis ?

For now, I have added a new plugin call in my local copy of blog.php to
send out an event before setting the template for each item. I
intercept this call in a plugin and change the template for my
delicious posts. The results can be seen at tamizhan.com.

What I would like to have here is a discussion on the best way of doing
this. What do you guys think ?

Roel Groeneveld

unread,
May 8, 2005, 3:45:50 PM5/8/05
to nucle...@googlegroups.com
Anand, couldn't you do that like this:

http://forum.nucleuscms.org//viewtopic.php?p=33351#33351

I think that tells Nucleus to selectively display items from a certain
category using a certain template while the rest is displayed using
the default blog template.
try it out, and let us know if it works!

Roel
--
Groet!

Roel

[w] http://roelg.nl
[e] roel.gr...@gmail.com
[im] icq: 173708392 / msn: roelgro...@hotmail.com / skype: roelgroeneveld

anand

unread,
May 8, 2005, 10:11:12 PM5/8/05
to nucle...@googlegroups.com
if I am not mistaken, the if category call works only when the user is browsing the particular category .. not when the user is viewing the main page. Do correct me if i am wrong here.
 
Anyways, if i need a tags based template, i need this plugin approach (or a similar core hack which will not be possible since tags are not there in the core).
 
Further, a new plugin I am writing to allow public editing of selected posts via AJAX inline editing needs a per item template.
 
- Anand.
 

anand

unread,
May 13, 2005, 2:40:09 AM5/13/05
to nucle...@googlegroups.com
I have added a photo to our flickr group explaining the core code
change ..

http://www.flickr.com/photos/anand/13657501/

> > > kottke.org <http://kottke.org> has different templates for short


posts
> > and long posts.
> > >
> > > While doing the delicious to nucleus importer, I needed a
different way

> > > to show my posts imported from del.icio.us <http://del.icio.us>


from my
> > regular posts (since
> > > these had the description as the title, the url as the body and
> > > extented section in the nucleus extended section.)
> > >
> > > How do we do the kottke look in nucleus ?
> > >
> > > A different template on a per blog basis (needed while using
"show
> > > posts from all blogs chronologically sorted") / per category
basis /
> > > per tag basis / even on a per item basis ?
> > >
> > > For now, I have added a new plugin call in my local copy of
blog.php to
> > > send out an event before setting the template for each item. I
> > > intercept this call in a plugin and change the template for my
> > > delicious posts. The results can be seen at

tamizhan.com<http://tamizhan.com>

Reply all
Reply to author
Forward
0 new messages