removing author name and date from static pages

Random stuff about serendipity. Discussion, Questions, Paraphernalia.
Post Reply
koopatroopa64
Posts: 2
Joined: Tue Sep 26, 2006 2:11 am
Location: Miami
Contact:

removing author name and date from static pages

Post by koopatroopa64 »

Hello,
I just installed Serendipity and am in the process of integrating my old site (which was all in html) with Serendipity. I was planning on using static pages, and copying and pasting the html from my old pages into them, and tweaking them so they'd adopt the Serendipity layout.

The only problem is that when I use the static page plugin it leaves the author name and date at the top of all my pages. How can I modify the plugin so that this is not shown?

And is there a more efficient way than this of intergrating older html files so that they adopt the new layout? I have a few years worth of pages that need to be moved over, so if there is a quicker and easier method I'd love to know :D
judebert
Regular
Posts: 2478
Joined: Sat Oct 15, 2005 6:57 am
Location: Orlando, FL
Contact:

Post by judebert »

In your template's directory, or in the templates/default/ directory as a fallback, you'll find plugin_staticpage.tpl. If it's not there, try the plugins/serendipity_event_staticpage/ directory.

In any case, that's the file that has the author in it. Around line 50, you'll see an {if} looking for $staticpage_author. Remove that if, from the {if...} to the {/if}.

Since it's doing the check, that implies you can unset the author; this might be a quick-and-dirty workaround that avoids editing files.
Judebert
---
Website | Wishlist | PayPal
koopatroopa64
Posts: 2
Joined: Tue Sep 26, 2006 2:11 am
Location: Miami
Contact:

Post by koopatroopa64 »

It worked, thanks a lot!
Post Reply