Developer forum

Forum » Ecommerce - Standard features » Why does UserManagement output HTML?

Why does UserManagement output HTML?

Lars Larsen
Reply

Hi

Why do you output HTML for the UserManagement tags (all tags starting with UserManagement:User.)? It's very annoying if you for instance want to change the control type for one of the tags, because that is not possible. I wanted to render the country tag as a dropdown listbox but this can't be done. Therefore PLEASE don't output HTML, ALWAYS just output the values and let the rendering of the controls be done within templates (thought that was the concept of templates!).


Replies

 
Nicolai Høeg Pedersen
Reply
This post has been marked as an answer

Hi Lars

 

I guess you mean edit profile in user management frontend?

 

You have 4-5 tags for each field - something like this:

<!--@UserManagement:User.Name-->
<!--@UserManagement:User.Name.Input-->
<!--@UserManagement:User.Name.Input.Error-->
<!--@UserManagement:User.Name.InputName--> 


First tag is the value, next is a full control rendered by DW, next is validation error, and last one the name of the field.

 

So instead of doing this:

<!--@UserManagement:User.Name.Input-->

 

 

You can do like this, and thus change the editor exactly as you want:

<input name="<!--@UserManagement:User.Name.InputName--> " type="text" id="<!--@UserManagement:User.Name.InputName--> " value="<!--@UserManagement:User.Name-->" />

BR Nicolai

Votes for this answer: 1
   
Lars Larsen
Reply

Ups..... very embarrasing :$

I didn't notice those tags! It's just the way it should be, thank you and sorry :-)

 
Lars Larsen
Reply

Hi Nicolai

I think I didn't write the tag correctly in my first post. The problem is with the tags starting with: UserManagement:User.UserAddress.*

It's when you want to modify the form used to update existing alternative addresses (see attached screenshot).

Capture.JPG

 

You must be logged in to post in the forum