plugin staticpage

Creating and modifying plugins.
Post Reply
JWalker
Regular
Posts: 177
Joined: Mon Sep 12, 2005 4:14 pm
Location: Botevgrad, Bulgaria
Contact:

plugin staticpage

Post 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.
Ivan Cenov
OKTO-7 Co., Botevgrad
Bulgaria
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Re: plugin staticpage

Post 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
# 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/
JWalker
Regular
Posts: 177
Joined: Mon Sep 12, 2005 4:14 pm
Location: Botevgrad, Bulgaria
Contact:

Post by JWalker »

I use regular static page, neither overview nor linked to a category.
Ivan Cenov
OKTO-7 Co., Botevgrad
Bulgaria
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Post 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
# 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/
JWalker
Regular
Posts: 177
Joined: Mon Sep 12, 2005 4:14 pm
Location: Botevgrad, Bulgaria
Contact:

Post 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.
Ivan Cenov
OKTO-7 Co., Botevgrad
Bulgaria
Post Reply