Forums / Developer / How to fetch site name

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

eZ debug

Timing: Jan 20 2025 12:57:33
Script start
Timing: Jan 20 2025 12:57:33
Module start 'content'
Timing: Jan 20 2025 12:57:33
Module end 'content'
Timing: Jan 20 2025 12:57:33
Script end

Main resources:

Total runtime0.0254 sec
Peak memory usage2,048.0000 KB
Database Queries4

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0068 590.2500180.8438
Module start 'content' 0.00680.0073 771.093893.8672
Module end 'content' 0.01410.0112 864.960970.7031
Script end 0.0253  935.6641 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.003011.8351120.0003
Check MTime0.00124.6330120.0001
Mysql Total
Database connection0.00103.826810.0010
Mysqli_queries0.003011.696240.0007
Looping result0.00000.066620.0000
Template Total0.010842.710.0108
Template load0.00145.590410.0014
Template processing0.009437.050310.0094
Override
Cache load0.00124.566410.0012
General
dbfile0.007830.7315100.0008
String conversion0.00000.024430.0000
Note: percentages do not add up to 100% because some accumulators overlap

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.0002 secs