Forums / Developer / User profile edit template, where to define ?!

User profile edit template, where to define ?!

Author Message

Selmah Maxim

Sunday 01 June 2003 2:35:38 am

Hi ..

How to define which class and which template will execute basd on class id ?

i had write this into /settings/mydesign/override.ini.append.php :

[user_edit]
Source=node/view/full.tpl
MatchFile=user_edit.tpl
Subdir=templates
Match[class]=4

that when user click 'Edit Profile' will view this template user_edit.tpl, and the template is under design/mydesign/override/user_edit.tpl .

But still no result, i get always design/standard/templates/content/edit.tpl template !

why ?
what am understand form this :
[user_edit]
Source=(If template not exists load this one)
MatchFile=(template name)
Subdir=(the folder name where located the template under override folder)
Match[class]= (classid, or nodeid, or sectionid)

am i right ?

any help plz ?

Selmah Maxim

Sunday 01 June 2003 3:47:40 am

ok .. found it :)

i miss understand it :)

[Template file Name]
Source= the template path/name to override
MatchFile=(template name)
Subdir=(the folder name where located the template under override folder)
Match[class]= (classid, or nodeid, or sectionid)

i tho the Source is the same for all, i tho is will be viewed if the main remplate not found, but this wrong :), i had change the settigns to see the loaded template, it was standard/templates/content/edit.tpl , so i put this as Source value, didn`t work content/edit.tpl is the right path, coz standard is the default !

now i understand , i hope some will find this useful !