I have reviewed all "additional plugins" to determine which seem to be setting staticpage_pagetitle. The majority of these plugins render their content with the expectation that they are NOT going to be rendered via entries.tpl.
In the plugin serendipity_event_cal, I found this comment just prior to the code setting staticpage_pagetitle: "
/* templates detection that this is not a regular entry view and avoid processing entries.tpl, which will obviously contain serendipity_Entry_Date, etc. */" I am in total agreement - page types that set a staticpage_pagetitle should not be using entries.tpl, as they are probably already emitting their own html structure, either directly, or through a plugin-specific tpl.
Plugins emitting their own html (not using tpls) which include an option to "format as article":
- serendipity_event_pollbox.php
- serendipity_event_externalphp.php
- serendipity_event_customarchive.php
Plugins using tpls which include an option to "format as article". Tpl's use typical article/entry structure beginning with .serendipity_EntryDate:
- serendipity_event_staticpage
- serendipity_event_contactform
Plugins using tpls which do NOT include an option to "format as article". Tpl's use typical article/entry structure beginning with .serendipity_EntryDate:
- serendipity_event_usergallery.php
- serendipity_event_suggest.php
- serendipity_event_guestbook.php
- serendipity_event_downloadmanager.php
- serendipity_event_cal.php
The following plugins set staticpage_pagetitle, but behave slightly differently than those above as follows:
serendipity_event_wrapurl.php - emits its own containing div. Would not want entries.tpl's html structure that typically contains serendiipity_EntryDate. All content is emitted within an iframe.
serendipty_event_userprofiles.php - uses its own tpl. staticpage_pagetitle does not seem to be correctly assigned - is not detected using isset, empty, if =''.
serendipity_event_thumbnails.php This plugin doesn't seem to work as expected. It does NOT output its own entry style html, nor use its own tpl. This is the only plugin I found that would benefit from being output via entries.tpl.
**EDIT**: This plugin has a dependency on serendipity_event_photoblog.php to work (a little) as expected.
serendipity_event_forum.php - uses own tpls, but tpls do not use typical entry html structure, ie class serendipity_EntryDate.
The issue here of why most plugins setting staticpage_pagetitle should NOT be using entries.tpl is this:
entries.tpl typically creates an html structure that is duplicated by the plugin output - either directly from the php file, or from a plugin's own smarty tpl's.
So how about we finally get a way to generate these non-entry pages without using entries.tpl, or at least a logical test that lets us avoid entries.tpl?? A different hook? A different $view? Perhaps another variable in these plugins which specifically let's us know that this plugin renders to its own template (ie, $serendipity['smarty']->assign('plugin_tpl', true); )??? Then we could do something like:
{if !$plugin_tpl}.... continue with entries.tpl... {/if}