Page 1 of 1

serendipity_showPlugin class for Plugin findmore ?

Posted: Wed Jun 01, 2011 11:02 am
by seraphyn
It is possible to call the Twitterplugin with:

Code: Select all

{serendipity_showPlugin class="serendipity_plugin_twitter"}
but for the serendipity_event_findmore I need to put everything from the plugin_findmore.tpl into my entries.tpl.
Is there another way to call it like the Twitterplugin?
thx in advance
Chris

Re: serendipity_showPlugin class for Plugin findmore ?

Posted: Fri Jun 03, 2011 10:01 am
by garvinhicking
Hi!

Actually, before you do that, you should simply put the whole CONTENTS of plugin_findmore.tpl into your entries.tpl. This is much more clever due to performance.

Simpyl replace $entrydata with $entry in the copied code.

HTH,
Garvin

Re: serendipity_showPlugin class for Plugin findmore ?

Posted: Fri Jun 03, 2011 10:50 am
by seraphyn
garvinhicking wrote:Hi!

you should simply put the whole CONTENTS of plugin_findmore.tpl into your entries.tpl.
Hi Garvin,
that's what I actually said ;)
I searched another way for that, because I'll try to keep the entries.tpl a little bit cleaner for me.
Is it possible to include the plugin_findmore.tpl in the entries.tpl?
Ae to have if else in the entries.tpl and it is possible to switch findmore on and off in the config of the template, with a small code footprint in entries.tpl?
Chris

Re: serendipity_showPlugin class for Plugin findmore ?

Posted: Fri Jun 03, 2011 3:55 pm
by garvinhicking
Hi!

You can do that with include_file etc. But it costs much more performance than when you'd use copy and paste and use {* and *} to turn on/off certain parts of the tpl.

Regards,
Garvin

Re: serendipity_showPlugin class for Plugin findmore ?

Posted: Fri Jun 03, 2011 4:34 pm
by seraphyn
Okay,

Thanks for the answere, I'll give it a try.
Have a nice weekend...
Chris

Re: serendipity_showPlugin class for Plugin findmore ?

Posted: Thu Jun 09, 2011 10:08 am
by seraphyn
Okay I tested it.
Found another way, I changed {$entry.plugin_display_dat} directly next to {$entry.add_footer} in entries.tpl of the theme
This helps absolutly and let me done the rest with CSS.
Thanks Garvin