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!

eZ debug

Timing: Jan 20 2025 06:02:39
Script start
Timing: Jan 20 2025 06:02:39
Module start 'content'
Timing: Jan 20 2025 06:02:39
Module end 'content'
Timing: Jan 20 2025 06:02:39
Script end

Main resources:

Total runtime0.1787 sec
Peak memory usage2,048.0000 KB
Database Queries141

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0069 590.0703180.8359
Module start 'content' 0.00690.0073 770.9063101.9922
Module end 'content' 0.01420.1645 872.8984529.7109
Script end 0.1787  1,402.6094 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00362.0232200.0002
Check MTime0.00140.8069200.0001
Mysql Total
Database connection0.00110.597110.0011
Mysqli_queries0.125470.18071410.0009
Looping result0.00140.78701390.0000
Template Total0.164191.810.1641
Template load0.00090.506410.0009
Template processing0.163291.292210.1632
Override
Cache load0.00060.359210.0006
Sytem overhead
Fetch class attribute can translate value0.00100.581310.0010
XML
Image XML parsing0.00030.148910.0003
General
dbfile0.00713.9631200.0004
String conversion0.00000.003930.0000
Note: percentages do not add up to 100% because some accumulators overlap

CSS/JS files loaded with "ezjscPacker" during request:

CacheTypePacklevelSourceFiles
CSS0extension/community/design/community/stylesheets/ext/jquery.autocomplete.css
extension/community_design/design/suncana/stylesheets/scrollbars.css
extension/community_design/design/suncana/stylesheets/tabs.css
extension/community_design/design/suncana/stylesheets/roadmap.css
extension/community_design/design/suncana/stylesheets/content.css
extension/community_design/design/suncana/stylesheets/star-rating.css
extension/community_design/design/suncana/stylesheets/syntax_and_custom_tags.css
extension/community_design/design/suncana/stylesheets/buttons.css
extension/community_design/design/suncana/stylesheets/tweetbox.css
extension/community_design/design/suncana/stylesheets/jquery.fancybox-1.3.4.css
extension/bcsmoothgallery/design/standard/stylesheets/magnific-popup.css
extension/sevenx/design/simple/stylesheets/star_rating.css
extension/sevenx/design/simple/stylesheets/libs/fontawesome/css/all.min.css
extension/sevenx/design/simple/stylesheets/main.v02.css
extension/sevenx/design/simple/stylesheets/main.v02.res.css
JS0extension/ezjscore/design/standard/lib/yui/3.17.2/build/yui/yui-min.js
extension/ezjscore/design/standard/javascript/jquery-3.7.0.min.js
extension/community_design/design/suncana/javascript/jquery.ui.core.min.js
extension/community_design/design/suncana/javascript/jquery.ui.widget.min.js
extension/community_design/design/suncana/javascript/jquery.easing.1.3.js
extension/community_design/design/suncana/javascript/jquery.ui.tabs.js
extension/community_design/design/suncana/javascript/jquery.hoverIntent.min.js
extension/community_design/design/suncana/javascript/jquery.popmenu.js
extension/community_design/design/suncana/javascript/jScrollPane.js
extension/community_design/design/suncana/javascript/jquery.mousewheel.js
extension/community_design/design/suncana/javascript/jquery.cycle.all.js
extension/sevenx/design/simple/javascript/jquery.scrollTo.js
extension/community_design/design/suncana/javascript/jquery.cookie.js
extension/community_design/design/suncana/javascript/ezstarrating_jquery.js
extension/community_design/design/suncana/javascript/jquery.initboxes.js
extension/community_design/design/suncana/javascript/app.js
extension/community_design/design/suncana/javascript/twitterwidget.js
extension/community_design/design/suncana/javascript/community.js
extension/community_design/design/suncana/javascript/roadmap.js
extension/community_design/design/suncana/javascript/ez.js
extension/community_design/design/suncana/javascript/ezshareevents.js
extension/sevenx/design/simple/javascript/main.js

Templates used to render the page:

UsageRequested templateTemplateTemplate loadedEditOverride
1pagelayout.tpl<No override>extension/sevenx/design/simple/templates/pagelayout.tplEdit templateOverride template
 Number of times templates used: 1
 Number of unique templates used: 1

Time used to render debug report: 0.0001 secs