if the id of the object is 113 then you can go to the url content/edit/113 to edit it.
the reason why the system don't use your template might be because there is an override rule for the class of the object you are trying to look at, you can check this in settings/siteaccess/your_site/override.ini
the tutorial says to make these folders:
"design/tscm/templates/node"
"design/tscm/templates/node/view"
and then to create this file:
"design/tscm/templates/node/view/archive.tpl" and that was to make another template for the view.
now my question is:
in order to make another template for the edit (not the view), what folders and files shall I create. and then, what is the url which tells ez which template to use, the first one or the newer one?
>in order to make another template for the edit function I have made:
> "design/tscm/templates/content"
> and in it:
> "design/tscm/templates/content/edit.tpl"
> is this right?
Yes, this is right. By doing this you are overriding the edit template. So when you are trying to edit an object it should automatically use this template, unless there is an override rule for the class or the node you are looking at.
An override rule for the class "comment" for example looks like this:
Yelitza,
I have user with many child objects,
I need to show or hide some of these objects according to the user condition.
Ok, I can pass a parameter and use if statements,
but this lead me to huge template files. so I want to use two templates in the same section for the same class, for edit and for view.
my friend Mazen has summarized the problem in: http://ez.no/community/forum/developer/2_override_templates_bug
You must be logged in to post messages in this topic!