Page 1 of 1

plugin staticpage

Posted: Sat Sep 01, 2007 8:47 am
by JWalker
Hi,

I made some changes in plugin_staticpage.tpl in order to remove doubled title of the articles:

Code: Select all

{if $staticpage_articleformat}
<div id="staticpage_{$staticpage_pagetitle|@makeFilename}" class="serendipity_Entry_Date serendipity_staticpage">
    <h3 class="serendipity_date">{$staticpage_articleformattitle|@escape}</h3>
{/if}

    <h4 class="serendipity_title"><a href="#">{$staticpage_headline|@escape}</a></h4>
I deleted first five lines here. But when refreshed in the browser nothing had changed. I even renamed plugin_staticpage.tpl at last but the page appeared as before. Is this some problem with caching? I reloaded the page in FireFox (Ctrl-R) but it didn't help. Is it possible Apache to do some caching? If so, how to refresh / clear it?
I run all on my PC:
Windows XP SP2/Apache 2.0.59/PHP 5.2.3/MySQL 5.0.41/FireFox 2.0.0.6.

Re: plugin staticpage

Posted: Sat Sep 01, 2007 9:56 am
by garvinhicking
Hi!

The template file that gets used for a staticpage depends on the "article type" you chose for it. When you used "overview" articletype for your staticpage, you must modify plugin_staticpage_overview.tpl instead!

Regards,
Garvin

Posted: Sat Sep 01, 2007 10:05 am
by JWalker
I use regular static page, neither overview nor linked to a category.

Posted: Sat Sep 01, 2007 11:49 am
by garvinhicking
Hi!

Maybe there's a permission problem with the compiled smarty template, you might want to delete all *staticpage*.* files in the templates_c/ directory?

Regards,
Garvin

Posted: Mon Sep 03, 2007 2:47 pm
by JWalker
Hm,

There are two 'plugin_staticpage.tpl' files, one in plugins/serendipity_event_staticpage and the other one in templates/bulletproof. I didn't expect this and didn't look for this file in templates/bulletproof directory ...
It seems that serendipity searches first in templates/current_selected_theme directory for the staticpage templates, and if it does not find them there searches for in plugins/serendipity_event_staticpage.