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!

Powered by eZ Publish™ CMS Open Source Web Content Management. Copyright © 1999-2014 eZ Systems AS (except where otherwise noted). All rights reserved.

eZ debug

Timing: Jan 18 2025 19:36:36
Script start
Timing: Jan 18 2025 19:36:36
Module start 'layout'
Timing: Jan 18 2025 19:36:36
Module start 'content'
Timing: Jan 18 2025 19:36:37
Module end 'content'
Timing: Jan 18 2025 19:36:37
Script end

Main resources:

Total runtime0.7843 sec
Peak memory usage4,096.0000 KB
Database Queries69

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0050 589.3438152.6250
Module start 'layout' 0.00500.0024 741.968839.4453
Module start 'content' 0.00740.7755 781.4141588.0703
Module end 'content' 0.78290.0014 1,369.484416.1641
Script end 0.7843  1,385.6484 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00340.4373160.0002
Check MTime0.00150.1946160.0001
Mysql Total
Database connection0.00070.085310.0007
Mysqli_queries0.720691.8684690.0104
Looping result0.00050.0678670.0000
Template Total0.759996.920.3800
Template load0.00200.260720.0010
Template processing0.757996.625820.3789
Template load and register function0.00010.012110.0001
states
state_id_array0.00080.098910.0008
state_identifier_array0.00080.106620.0004
Override
Cache load0.00210.2668390.0001
Sytem overhead
Fetch class attribute can translate value0.00050.069520.0003
Fetch class attribute name0.00110.135190.0001
XML
Image XML parsing0.00080.106820.0004
class_abstraction
Instantiating content class attribute0.00000.0039140.0000
General
dbfile0.00090.1104230.0000
String conversion0.00000.001440.0000
Note: percentages do not add up to 100% because some accumulators overlap

Templates used to render the page:

UsageRequested templateTemplateTemplate loadedEditOverride
1node/view/full.tplfull/forum_topic.tplextension/sevenx/design/simple/override/templates/full/forum_topic.tplEdit templateOverride template
7content/datatype/view/ezimage.tpl<No override>extension/sevenx/design/simple/templates/content/datatype/view/ezimage.tplEdit templateOverride template
7content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
9content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
2content/datatype/view/ezxmltags/literal.tpl<No override>extension/community/design/standard/templates/content/datatype/view/ezxmltags/literal.tplEdit templateOverride template
4content/datatype/view/ezxmltags/line.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/line.tplEdit templateOverride template
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 31
 Number of unique templates used: 7

Time used to render debug report: 0.0001 secs