You aren't signed in     Sign In    Help

PreTemplateSet Nucleus Plugin API Call

Old code for setting template.
Old code
New code for enabling a per blog / per category / per tag / per item template.
PreTemplateSet Nucleus Plugin API Call by /.\.
This is the function readLogAmount in BLOG.php.

I have annotated the jpeg with notes showing the old code and where the new code should be.

This code change will enable per blog / per category / per tag /per item template ..

Basically, this helps to achieve different templates for different kind's of posts on the main page .. A look similar to kottke.org. 
This photo has notes. Move your mouse over the photo to see them.

Comments

view profile

roel  Pro User  says:

So how do you use this in a skin/skinvar?
Posted 51 months ago. ( permalink )

view profile

/.\  Pro User  says:

I will then use a simple plugin to hook into this call and override the template on a per blog, per category, per tag , per item basis.

I haven't implemented the per tag, per item template thing yet. But tamizhan.com currently is using blogOptions and CategoryOptions to override it for flickr/delicious post templates.
Posted 51 months ago. ( permalink )

view profile

gireeshjr says:

Ah! finally found you my friend.
Posted 50 months ago. ( permalink )

Would you like to comment?

Sign up for a free account, or sign in (if you're already a member).

[?]
view photos Uploaded on May 12, 2005
by /.\

/.\'s photostream

664
uploads

This photo also belongs to:

Nucleus CMS (Pool)

Tags

Additional Information

AttributionNoncommercial Some rights reserved Anyone can see this photo

Add to your map