Extended properties for entries in the recententies-plugin

Creating and modifying plugins.
Post Reply
T
Regular
Posts: 48
Joined: Tue Feb 20, 2007 11:24 pm

Extended properties for entries in the recententies-plugin

Post by T »

Hello,

I was wondering if there's any way to have the Smarty tags ({$entry.properties.ep_MyCustomField}) from the Extended properties for entries-plugin show up in the recententries-sidebar-plugin.

Thanks in advance,
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Re: Extended properties for entries in the recententies-plugin

Post by garvinhicking »

Hi!

The recententries sidebarplugin uses its own code to fetch entries. To be able to use entryproperties, the queries would need rewrite. Also, instead of echo() a smarty template would need to be created.

In short, that's too complex to achieve quickly. Instead, I would patch up the sidebar.tpl template file and directly access {serendipity_fetchPrintEntries} with a custom template.

Regards,
Garvin
# Garvin Hicking (s9y Developer)
# Did I help you? Consider making me happy: http://wishes.garv.in/
# or use my PayPal account "paypal {at} supergarv (dot) de"
# My "other" hobby: http://flickr.garv.in/
Don Chambers
Regular
Posts: 3657
Joined: Mon Feb 13, 2006 2:40 am
Location: Chicago, IL, USA
Contact:

Re: Extended properties for entries in the recententies-plugin

Post by Don Chambers »

garvinhicking wrote:Instead, I would patch up the sidebar.tpl template file and directly access {serendipity_fetchPrintEntries} with a custom template.
Or call a custom sidebar.tpl, which in turns fetches entries using a custom template. :wink:
=Don=
Post Reply