Customize label name ?

23 views
Skip to first unread message

Masso Dasuki

unread,
Aug 16, 2016, 9:12:19 AM8/16/16
to ColdBox Platform
<cfoutput>
<h1>Corporate Registration</h1>
<cfif flash.exists( "notice" )>
<div class="alert alert-info">#flash.get( "notice" )#</div>
</cfif>
<cfif flash.exists( "errors" )>
<div class="alert alert-danger">#flash.get( "errors" ).toString()#</div>
</cfif>

<div style="height: 300px;padding:20" style="width: 300px;padding:20" class="panel panel-primary"><div class="panel-heading">Corporate Registration</br>Please select your own Login ID and Password</br>Note(*) indicates mandatory field
</div><table align="center"><tr><td>
#html.startForm(action="users.save")#
#html.entityFields(entity=prc.users,fieldwrapper="div")#
#html.submitButton()# or #html.href(href="users",text="Cancel")#
#html.endForm()#
</td></tr></table>
</div>


How to customize the entityFields label ?

Ancient Programmer

unread,
Aug 18, 2016, 11:59:53 PM8/18/16
to ColdBox Platform
Just thinking out loud.

You could create a class by creating the same filename. The class should extend the ColdBox HTMLHelper.cfc which is located under \coldbox\system\core\dynamic\HTMLHelper.cfc. Then, you write your customized entityFields method. You also need to somehow change the mapping of HTMLHelper to use yours instead of the original one.
Reply all
Reply to author
Forward
0 new messages