fetch_alias with Constant[sort_by] - anyone got it working?

Author Message

Silke Fox

Friday 16 July 2004 1:23:23 am

Hi all,

I'm trying to use a fetch_alias with constant sorting by published date (descending).
In the examples in fetchalias.ini it looks like this:

Constant[sort_by]=published;0

Also tried

Constant[sort_by]=published;falsed

and sorting by name

Constant[sort_by]=name;false

None of these works as expected.
Has anybody got a working example for this?

Thanks,
Silke

Jan Borsodi

Thursday 22 July 2004 4:02:29 am

The reason for the changes not showing immediately is that the settings are included when compiling the template.

To get the template compiler to know of this update you need to get the timestamp on the template file updated, for instance using the 'touch' command or restoring it in a text editor.

I can also recommend turning off the template compiler when developing on a site, that way all INI settings are read dynamically.
The live site should ofcourse have the template compiler on.

In the future we will probably make the template compiler script (eztc.php) smarter, for instance it detect that the INI file has changed and update template files accordingly.

--
Amos

Documentation: http://ez.no/ez_publish/documentation
FAQ: http://ez.no/ez_publish/documentation/faq

Silke Fox

Thursday 22 July 2004 6:22:59 am

Thanks for your reply.

Strange, I had TemplateCompile disabled all the time and it didn't work, but it is
working now...

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 18 2025 16:12:39
Script start
Timing: Jan 18 2025 16:12:39
Module start 'layout'
Timing: Jan 18 2025 16:12:39
Module start 'content'
Timing: Jan 18 2025 16:12:39
Module end 'content'
Timing: Jan 18 2025 16:12:39
Script end

Main resources:

Total runtime0.0158 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.0063 589.5859152.6563
Module start 'layout' 0.00630.0032 742.242239.5078
Module start 'content' 0.00950.0047 781.750089.5234
Module end 'content' 0.01410.0016 871.273434.3047
Script end 0.0158  905.5781 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.002415.2295140.0002
Check MTime0.00116.9991140.0001
Mysql Total
Database connection0.00084.842610.0008
Mysqli_queries0.003421.433330.0011
Looping result0.00000.087510.0000
Template Total0.00138.510.0013
Template load0.00074.595110.0007
Template processing0.00063.873810.0006
Override
Cache load0.00053.114710.0005
General
dbfile0.00031.898480.0000
String conversion0.00000.043840.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