How to fetch site name

Author Message

John Smith

Monday 19 September 2005 10:03:39 am

Do anyone know how to fetch sitename in any template?

Please help

Cheers

Ɓukasz Serwatka

Monday 19 September 2005 10:08:28 am

You can use:

{def $sitename=ezini( 'SiteSettings','SiteName' )}

Personal website -> http://serwatka.net
Blog (about eZ Publish) -> http://serwatka.net/blog

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 19 2025 15:22:44
Script start
Timing: Jan 19 2025 15:22:44
Module start 'layout'
Timing: Jan 19 2025 15:22:44
Module start 'content'
Timing: Jan 19 2025 15:22:44
Module end 'content'
Timing: Jan 19 2025 15:22:44
Script end

Main resources:

Total runtime0.0127 sec
Peak memory usage2,048.0000 KB
Database Queries3

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0046 589.1484152.6250
Module start 'layout' 0.00460.0027 741.773439.4297
Module start 'content' 0.00740.0038 781.203189.3203
Module end 'content' 0.01110.0016 870.523430.3047
Script end 0.0127  900.8281 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.002216.9340140.0002
Check MTime0.00107.9135140.0001
Mysql Total
Database connection0.00065.091810.0006
Mysqli_queries0.002721.356130.0009
Looping result0.00000.086310.0000
Template Total0.00139.910.0013
Template load0.00075.288810.0007
Template processing0.00064.562810.0006
Override
Cache load0.00053.801110.0005
General
dbfile0.00021.757980.0000
String conversion0.00000.061940.0000
Note: percentages do not add up to 100% because some accumulators overlap

Templates used to render the page:

UsageRequested templateTemplateTemplate loadedEditOverride
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_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