Forums / Setup & design / [solved] Site title missing on certain pages

[solved] Site title missing on certain pages

Author Message

Nathan Kelly

Sunday 13 November 2005 9:34:22 pm

Hi all, more problems with things going missing when browsing the site, this time it's the site title thats missing.

I'm using the standard page_head.tpl, as soon as I go to an url such as "user/edit" or "content/edit" or even "content/advancedsearch" the title is missing (except for the name of the top node) but here on ez.no this is not the case.

This is the code, I imagine this is the same code that ez.no uses, I've done nothing to change it?

{let name=Path
     path=$module_result.path
     reverse_path=array()}
  {section show=is_set($module_result.title_path)}
    {set path=$module_result.title_path}
  {/section}
  {section loop=$:path}
    {set reverse_path=$:reverse_path|array_prepend($:item)}
  {/section}

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

{/let}

    <title>{$site_title}</title>

I have tried fetching the $module_result.path into the pages in question but it seems to be unable to find the path, is this normal behaviour?

Please help if you know what may cause this... Deadline approaching rapidly.

Cheers!

Pardon me while I burst into flames...

Nathan Kelly

Tuesday 15 November 2005 2:27:43 pm

Hi all, I've lost two days on this problem now, has anybody got any idea why the site title might be missing from the pages mentioned above?

Or more to the point how I can add a site title to these pages?

As I said the $module_result.path seems to be the culprit but I don't know why it will not work I haven't done anything that should effect it.

Please please help, any ideas welcome...

Cheers!

Pardon me while I burst into flames...

Bruce Morrison

Tuesday 15 November 2005 9:06:17 pm

Hi Nathan

I suspect that this is the same issue as with the navigation on these pages - variables that you are relying on simply do not exist or have a different form when in these modes.

What you are tring to do does appear to work in the standard admin templates while editing.

Look at how it's done in design/standard/templates/page_head.tpl

Cheers
Bruce

My Blog: http://www.stuffandcontent.com/
Follow me on twitter: http://twitter.com/brucemorrison
Consolidated eZ Publish Feed : http://friendfeed.com/rooms/ez-publish

Nathan Kelly

Tuesday 15 November 2005 9:17:02 pm

Thanks Bruce, I agree this is similar to my previous problem.

The template you mention "design/standard/templates/page_head.tpl" is the template I am currently using, even if I let ez fall back to that exact template the problem persists.

Is there perhaps an .ini setting I may have overlooked?

Cheers!

Pardon me while I burst into flames...

Bruce Morrison

Tuesday 15 November 2005 10:56:38 pm

Hi Nathan

What does adding {$module_result.title_path|attribute(show,3)} to the pagelayout give you when you are on these pages?

Cheers
Bruce

My Blog: http://www.stuffandcontent.com/
Follow me on twitter: http://twitter.com/brucemorrison
Consolidated eZ Publish Feed : http://friendfeed.com/rooms/ez-publish

Nathan Kelly

Wednesday 16 November 2005 3:10:17 pm

Hi Bruce thanks for your suggestion, I tried {$module_result.title_path|attribute(show,3)} in the page layout and I found that on my "content" pages the output was something like this (depending on the depth of the node)

Attribute 	Type 		Value
0 		array 		Array(4)
>text 		string 		'Site name'
>url 		string 		'/content/view/full/2'
>url_alias 	string 		''
>node_id 	string 		2
1 		array 		Array(4)
>text 		string 		'Folder name'
>url 		string 		'/content/view/full/77'
>url_alias 	string 		'folder_name'
>node_id 	string 		77
2 		array 		Array(3)
>text 		string 		'Page name'
>url 		boolean 	false
>url_alias 	boolean 	false

But on pages such as "content/advancedsearch", "content/edit" etc. there is no output.

I tried the same thing with {$module_result.path|attribute(show,3)} and on the "content/advancedsearch" and "content/edit" etc. and I got this output (depending on the page, this is the search page).

Attribute 	Type 		Value
0 		array 		Array(2)
>text 		string 		'Search'
>url 		boolean 	false
1 		array 		Array(2)
>text 		string 		'Advanced'
>url 		boolean 	false

Any ideas? Should I try replacing the title_path in page head?

Cheers!

Pardon me while I burst into flames...

Gurudutt Verma

Thursday 17 November 2005 2:05:41 am

Hi!

Could you show me the template code showing the title ?

for e.g. page_head.tpl

Nathan Kelly

Thursday 17 November 2005 2:40:49 pm

Hi Gurudutt, I think I have found the problem, the custom page_head.tpl I was using had a couple of slight changes that have affected the output (not sure why).

However I have switched my template with the original and the title is working correctly now.

In the custom template I tried to change the reverse path, I'm not used to reverse paths on the site title so I attempted to un-reverse it, it seems this is what caused the problem.

So now I know I can't un-reverse the path I can live with that, I wouldn't have thought this would cause a problem because it worked on most of the pages, just not the pages like "content/edit" etc.

Sorry for the trouble, this was really bugging me but thankyou all for your patience.

Cheers!

Pardon me while I burst into flames...

eZ debug

Timing: Jan 19 2025 04:40:38
Script start
Timing: Jan 19 2025 04:40:38
Module start 'content'
Timing: Jan 19 2025 04:40:39
Module end 'content'
Timing: Jan 19 2025 04:40:39
Script end

Main resources:

Total runtime0.8402 sec
Peak memory usage4,096.0000 KB
Database Queries211

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0065 591.0781180.8125
Module start 'content' 0.00650.6922 771.8906656.7500
Module end 'content' 0.69870.1414 1,428.6406345.0547
Script end 0.8401  1,773.6953 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00410.4911210.0002
Check MTime0.00170.1983210.0001
Mysql Total
Database connection0.00080.095210.0008
Mysqli_queries0.739387.99742110.0035
Looping result0.00220.25692090.0000
Template Total0.816097.120.4080
Template load0.00190.224520.0009
Template processing0.814196.893220.4070
Template load and register function0.00010.010110.0001
states
state_id_array0.00070.086810.0007
state_identifier_array0.00080.090920.0004
Override
Cache load0.00170.1984600.0000
Sytem overhead
Fetch class attribute can translate value0.00120.145140.0003
Fetch class attribute name0.00100.1156110.0001
XML
Image XML parsing0.00180.212840.0004
class_abstraction
Instantiating content class attribute0.00000.0045160.0000
General
dbfile0.00310.3670390.0001
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
8content/datatype/view/ezimage.tpl<No override>extension/sevenx/design/simple/templates/content/datatype/view/ezimage.tplEdit templateOverride template
8content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
13content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
3content/datatype/view/ezxmltags/literal.tpl<No override>extension/community/design/standard/templates/content/datatype/view/ezxmltags/literal.tplEdit templateOverride template
2content/datatype/view/ezxmltags/line.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/line.tplEdit templateOverride template
1pagelayout.tpl<No override>extension/sevenx/design/simple/templates/pagelayout.tplEdit templateOverride template
 Number of times templates used: 36
 Number of unique templates used: 7

Time used to render debug report: 0.0002 secs