ezurl doesn't make full URL in cli script

Author Message

Andrey Astakhov

Monday 08 October 2007 2:20:42 am

My cli script:

$script->setUseSiteAccess( 'siteaccess name' ); 

...skipped...

$template =& templateInit();
$template->setVariable( 'items', $items );
$emailContent =& $template->fetch('design:template.tpl');

Template:

{foreach $items as $item}
	<a href={$item['link']|ezurl(,'full')}>{$item['title']|wash}</a></li>
{/foreach}

The problem is that ezurl returns relative but not FULL url.
What's wrong?

Kåre Køhler Høvik

Friday 12 October 2007 1:33:52 am

Hi

Please report this bug ( it looks like a bug ) in the issue tracker: http://issues.ez.no/ProjectSelect.php?Id=3

Kåre Høvik

Andrey Astakhov

Friday 12 October 2007 1:48:44 am

Hi, Kåre
thank you for your answer.
I was unsure that it is a bug because i'm not familiar with command line interface. Is my approach correct?

Kåre Køhler Høvik

Friday 12 October 2007 1:54:35 am

Hi

According to the documentation your implementation looks correct. There's either a bug in the code or the documentation in this case.

Best regards
Kåre

Kåre Høvik

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 21 2025 02:47:45
Script start
Timing: Jan 21 2025 02:47:45
Module start 'layout'
Timing: Jan 21 2025 02:47:45
Module start 'content'
Timing: Jan 21 2025 02:47:47
Module end 'content'
Timing: Jan 21 2025 02:47:47
Script end

Main resources:

Total runtime1.4326 sec
Peak memory usage4,096.0000 KB
Database Queries60

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0076 588.0469151.2266
Module start 'layout' 0.00760.0051 739.273436.6797
Module start 'content' 0.01281.4187 775.9531565.5391
Module end 'content' 1.43150.0011 1,341.492211.8125
Script end 1.4326  1,353.3047 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00370.2554160.0002
Check MTime0.00160.1084160.0001
Mysql Total
Database connection0.00170.115910.0017
Mysqli_queries1.380796.3737600.0230
Looping result0.00070.0498580.0000
Template Total1.373995.920.6869
Template load0.00220.151220.0011
Template processing1.371795.745320.6858
Template load and register function0.00030.018910.0003
states
state_id_array0.00230.159710.0023
state_identifier_array0.00240.166120.0012
Override
Cache load0.00180.1237230.0001
Sytem overhead
Fetch class attribute can translate value0.00060.043220.0003
Fetch class attribute name0.00120.086150.0002
XML
Image XML parsing0.00060.043620.0003
class_abstraction
Instantiating content class attribute0.00000.001060.0000
General
dbfile0.00100.0664150.0001
String conversion0.00000.000840.0000
Note: percentages do not add up to 100% because some accumulators overlap

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
4content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
7content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
2content/datatype/view/ezxmltags/literal.tpl<No override>extension/community/design/standard/templates/content/datatype/view/ezxmltags/literal.tplEdit templateOverride template
3content/datatype/view/ezxmltags/line.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/line.tplEdit templateOverride template
2content/datatype/view/ezimage.tpl<No override>extension/sevenx/design/simple/templates/content/datatype/view/ezimage.tplEdit templateOverride template
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 20
 Number of unique templates used: 7

Time used to render debug report: 0.0002 secs