#75 ✓resolved
Gaspard Bucher

Confusion between template name and mode/format

Reported by Gaspard Bucher | September 3rd, 2008 @ 03:03 PM | in public beta

Originally posted on Trac by anonymous Original Trac Ticket

 Description (Last modified by gaspard)

When rendering a page, we use a mode/format url:


pageName_mode.format

A template to render this mode and format should not be named like "Klass_mode.format". If we do, how do we render the template itself in xml format with "info" mode:


Klass_mode.format_info.xml ?

This is horrible. We should use the following format for template names:


Klass-mode-format   ---> Klass-mode-format_info.xml

We should also use a special syntax for "internal" modes (popupLayout, login, index, notFound, adminLayout, search, editTab, ...), so they cannot be used in urls. We could use the star "*" prefix:


Node-*login

Trac Attachments

Trac Comments

2007-09-07 05:39:22 changed by gaspard

status changed from new to assigned.

description changed.

status changed from new to assigned.

description changed.

2007-09-07 05:40:31 changed by gaspard

description changed.

description changed.

2007-09-11 15:49:32 changed by gaspard

(In [741]) Renamed basic templates to use 'zafu' extension instead of 'html' and to use new naming convention. Refs #75 (1).

hours set to 1.0.

totalhours changed from 0.0 to 1.0.

(In [741]) Renamed basic templates to use 'zafu' extension instead of 'html' and to use new naming convention. Refs #75 (1).

hours set to 1.0.

totalhours changed from 0.0 to 1.0.

2007-09-11 15:52:49 changed by gaspard

(In [743]) More work done on template names/format. Refs #75 (2.5)

hours set to 2.5.

totalhours changed from 1.0 to 3.5.

(In [743]) More work done on template names/format. Refs #75 (2.5)

hours set to 2.5.

totalhours changed from 1.0 to 3.5.

2007-09-17 13:32:27 changed by gaspard

(In [746]) Less confusion between template modes, klass and format and the template's actual name. Fixes #75 (2.5) Moved all attribute translation (dates, zips) into the Node class. When a class needs to alter/add attributes it is now done in "attributes=". Fixes #83 (2) [CAUTION] This commit includes a migration that alters version text as the code for template inclusion has changed.

hours set to 2.5.

status changed from assigned to closed.

resolution set to fixed.

totalhours changed from 3.5 to 6.0.

(In [746]) Less confusion between template modes, klass and format and the template's actual name. Fixes #75 (2.5) Moved all attribute translation (dates, zips) into the Node class. When a class needs to alter/add attributes it is now done in "attributes=". Fixes #83 (2) [CAUTION] This commit includes a migration that alters version text as the code for template inclusion has changed.

hours set to 2.5.

status changed from assigned to closed.

resolution set to fixed.

totalhours changed from 3.5 to 6.0.

2007-09-23 09:00:30 changed by gaspard

(In [751]) Implemented basic drag&drop support. Closes #89 (4) Fixed some bugs related to templates. Refs #75 (1.5) Some cleanup in Parser (removed @pass). Closes #87 (1.5)

hours set to 1.5.

totalhours changed from 6.0 to 7.5.

(In [751]) Implemented basic drag&drop support. Closes #89 (4) Fixed some bugs related to templates. Refs #75 (1.5) Some cleanup in Parser (removed @pass). Closes #87 (1.5)

hours set to 1.5.

totalhours changed from 6.0 to 7.5.

2007-10-09 12:14:17 changed by gaspard

(In [758]) New template test. Refs #75.

No comments found

Please Sign in or create a free account to add a new ticket.

With your very own profile, you can contribute to projects, track your activity, watch tickets, receive and update tickets through your email and much more.

New-ticket Create new ticket

Create your profile

Help contribute to this project by taking a few moments to create your personal profile. Create your profile ยป

Anyone knows how to use formatting here ?

Git repository: http://github.com/zena

Official website: http://zenadmin.org

Shared Ticket Bins

People watching this ticket

Tags

Referenced by

Pages