Page 1 of 1

Footer bei Static Pages verhindern

Posted: Sat Nov 11, 2006 9:10 pm
by ocj
Gibt es eine Möglichkeit, zu verhindern, daß auf Static Pages unten das Datum und der Autor, auf meinem Blog also etwa
ocj
2006-11-10
angezeigt werden?

ocj

Posted: Sat Nov 11, 2006 9:19 pm
by carl_galloway
ja naturlich, aus plugin_staticpage.tpl und plugin-staticpage_aboutpage.tpl umwandeln

Code: Select all

{if $staticpage_author}
    <div class="staticpage_author">
{$staticpage_author|@escape}</div>
{/if}

    <div class="staticpage_metainfo">
{if $staticpage_lastchange}
    <span class="staticpage_metainfo_lastchange">
{$staticpage_lastchange|date_format:"%Y-%m-%d"}</span>
{/if}

{if $staticpage_adminlink AND $staticpage_adminlink.page_user}
    | <a class="staticpage_metainfo_editlink" href="{$staticpage_adminlink.link_edit}">{$staticpage_adminlink.link_name|@escape}</a>
{/if}
    </div>
zu

Code: Select all

    <div class="staticpage_metainfo">
{if $staticpage_adminlink AND $staticpage_adminlink.page_user}
    | <a class="staticpage_metainfo_editlink" href="{$staticpage_adminlink.link_edit}">
{$staticpage_adminlink.link_name|@escape}</a>
{/if}
    </div>

Posted: Sat Nov 11, 2006 9:33 pm
by ocj
Vielen Dank!

Das wird dann aber bei jedem Update des Plugins überschrieben, oder?

ocj

Posted: Sat Nov 11, 2006 9:41 pm
by carl_galloway
ja, sondern sie kannst abschreiben jene files zu dieser templaten Inhatlsverzeichnis

Posted: Sat Nov 11, 2006 10:10 pm
by ocj
Just to make sure that I understand that electronic translation (which I think it was) as you meant it:

If I copied those files to my template directory they would be read from there and, therefore, would not be overwritten by future plugin updates?

Thank you very much, Carl!

Posted: Sat Nov 11, 2006 10:17 pm
by carl_galloway
I actually hate using babelfish, and I must apologise, I am using a dictionary and my trusty phrasebooks. Normally I wouldn't have the courage to answer the german forums but Garvin, yellowled and a few of the other german speakers who usually answer these threads seem to be doing other things and haven't been so active this weekend, I wanted to help. I hope my bad German hasn't offended anyone, and if you can forgive my attempts with a dictionary...

And yes, copying them into the template folder prevents them being overwritten when a plugin is updated

Posted: Sat Nov 11, 2006 10:45 pm
by ocj
Carl, your help is very much appreciated. I don't care whether you reply in German (by using Babelfish) or English. I don't think that others could feel offended in any way either.

Posted: Sat Nov 11, 2006 11:07 pm
by ocj
Amended it and it works.

May be seen here:
http://www.yadayada.de/blogroll.html

Thank you very much, Carl!