Forums / Setup & design / Hide article author and date

Hide article author and date

Author Message

Alex Kink

Tuesday 26 October 2004 12:20:57 pm

Hello again,

how can I hide article author and date of creation from being displayed on the final page

Thank you!

Vjeran Vlahovic

Tuesday 26 October 2004 1:10:44 pm

Override the default article.tpl by copying it to /design/yourdesign/override/templates/full/article.tpl and comment or delete following lines which display author and date:

        {section show=$node.object.data_map.author.content.is_empty|not()}
        <div class="attribute-byline">
        <p class="author">
             {attribute_view_gui attribute=$node.object.data_map.author}
        </p>
        <p class="date">
             {$node.object.published|l10n(date)}
        </p>
        </div>
        {/section}

http://www.netgen.hr/eng

Alex Kink

Wednesday 27 October 2004 10:39:32 am

Thank you Vjeran. Works perfectly

Also, can anyone point me to the template that lists all the articles in the category?

Thank you!

Vjeran Vlahovic

Wednesday 27 October 2004 1:47:45 pm

Hi Alex!
The best way to figure out which template do some part is to turn on the template debug option by editing /settings/override/site.ini.append.php file.
Add the following lines into that file:

[TemplateSettings]
Debug=enabled

Don't forget to clear the cache after that.

http://www.netgen.hr/eng

Alex Kink

Wednesday 27 October 2004 2:44:13 pm

tnx again Vjeran.
My problem wasn't even that much of the filename issue I guess, but rather where do I put the override file. I'm trying to figure out the filestructure for the override files but I don't seem to understand it.

I understand that it has to be somewhere within /design/my_site/override/templates/, but where do I place it from there forward. I'll go through the available documentation again and try to figure it out

Vjeran Vlahovic

Thursday 28 October 2004 10:40:51 am

Hi.
Template overrides are handled trough /settings/override/siteacces/mysite/override.ini.append.php, so check it.

The easiest way (or maybe not, I'm also a beginner ;-)) is to follow same directory structure as in /standard or /base dir. So, if you want to override
design/standard/templates/node/view/sitemap.tpl, copy it to the /design/mysite/templates/node/view/.
Hope this helps.

http://www.netgen.hr/eng

Alex Kink

Thursday 28 October 2004 1:57:47 pm

Ok, that makes sence Vjeran!

Thanks a bunch for your help!