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

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