Forums / Setup & design / Page title

Page title

Author Message

Amina Bacar

Friday 26 December 2003 9:13:33 am

When I view my page in IE the title is the article URL.
Using the option view source of the browser, the title is correct.

I have changed the title in site.ini.append.php in the siteaccess

Is there another place where I have to set the Page title?

Thanks in advance.

Amina.
Mzbusiness.com

Paul Borgermans

Friday 26 December 2003 11:56:45 am

Hi Amina

The title you set in site.ini.append.php is the default. This means it is overriden by the module being called. For content views, it is the object name with the path to the object appended to it.

So it is hard to change without modifying the kernel code. What did you have in mind?

-paul

eZ Publish, eZ Find, Solr expert consulting and training
http://twitter.com/paulborgermans

Balazs Halasy

Friday 26 December 2003 1:32:35 pm

I believe Amina would like to have a static title that appears, for example "My cool company" for all pages, regardless of the content/node that is displayed. Just guessing.. not exactly sure how to do this myself - never tried.. any suggestions Paul?

Balazs

Amina Bacar

Saturday 27 December 2003 12:38:14 am

Yes Balazs that's what i have in mind.

I'm not to concerned about other pages, but i would like to have a nice title in the homepage.

Did anyone tried this before?

Amina.

Paul Borgermans

Saturday 27 December 2003 4:12:27 am

Hi Balazs & Amina

It turns out to be easy by modifying page_head.tpl

Suppose your sitedesign is "mysite", then copy the template file design/standard/templates/page_head.tpl to
design/mysite/templates/page_head.tpl and look for the code around line 14 and comment out the section that loops the reverse path as below and leaving only the site title

-----------------------------
{set-block scope=root variable=site_title}
{*section loop=$Path:reverse_path}{$:item.text|wash}{delimiter} / {/delimiter}{/section*}{$site.title|wash}
{/set-block}
-----------------------------

After this, clear the template cache and you should only get the site name as title in the <head> section.

I suggest to do this only for your "mysite" design, and not to modify the design/standard/templates/page_head.tpl

If you need to change other templates like this always copy them to your specific design in the templates directory.

regards

-paul

eZ Publish, eZ Find, Solr expert consulting and training
http://twitter.com/paulborgermans

eZ debug

Timing: Jan 18 2025 18:30:46
Script start
Timing: Jan 18 2025 18:30:46
Module start 'content'
Timing: Jan 18 2025 18:30:47
Module end 'content'
Timing: Jan 18 2025 18:30:47
Script end

Main resources:

Total runtime1.0664 sec
Peak memory usage4,096.0000 KB
Database Queries202

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0089 588.6563180.8516
Module start 'content' 0.00890.8864 769.5078607.5469
Module end 'content' 0.89530.1711 1,377.0547337.3984
Script end 1.0663  1,714.4531 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00450.4238210.0002
Check MTime0.00150.1430210.0001
Mysql Total
Database connection0.00080.075010.0008
Mysqli_queries0.981592.03312020.0049
Looping result0.00250.23512000.0000
Template Total1.027996.420.5139
Template load0.00220.207620.0011
Template processing1.025696.177420.5128
Template load and register function0.00020.017810.0002
states
state_id_array0.00110.102010.0011
state_identifier_array0.00100.090720.0005
Override
Cache load0.00190.1828410.0000
Sytem overhead
Fetch class attribute can translate value0.00250.231040.0006
Fetch class attribute name0.00150.136570.0002
XML
Image XML parsing0.00140.129440.0003
class_abstraction
Instantiating content class attribute0.00000.001880.0000
General
dbfile0.00170.1592340.0000
String conversion0.00000.000630.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
1node/view/full.tplfull/forum_topic.tplextension/sevenx/design/simple/override/templates/full/forum_topic.tplEdit templateOverride template
5content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
4content/datatype/view/ezxmltags/line.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/line.tplEdit templateOverride template
8content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
3content/datatype/view/ezimage.tpl<No override>extension/sevenx/design/simple/templates/content/datatype/view/ezimage.tplEdit templateOverride template
1pagelayout.tpl<No override>extension/sevenx/design/simple/templates/pagelayout.tplEdit templateOverride template
 Number of times templates used: 22
 Number of unique templates used: 6

Time used to render debug report: 0.0002 secs