Support » Plugin: Custom Content Type Manager » Password Field?

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Contributor fireproofsocks


    You can do this as a text field with a custom template. See

    Say for example your custom field is named “password”. Copy the wp-content/plugins/custom-content-type-manager/tpls/fields/elements/_text.tpl into wp-content/uploads/cctm/tpls/fields/elements/password.tpl (the name must match the field name). In your copy, just change the field type from “text” to “password”:

    <input type="password" name="[+name_prefix+][+name+]" class="cctm_text [+class+]" id="[+id_prefix+][+id+]" value="[+value+]" [+extra+]/>

    Finally, you would need to flush the CCTM’s cache so it loads your custom template to draw those fields. Just go to the CCTM –> Clear Cache menu and you should be set.

    Plugin Contributor fireproofsocks


    I should add that this offers no security: the value will still be stored in the database as plain text and in your templates, you can still print the value exactly as entered by using the “:raw” output filter. So this “solution” is just for aesthetics. Anyone with access to the manager and a little bit of patience would be able to bypass the “****” mask and see the password.

    Good to know. Thanks man!

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Password Field?’ is closed to new replies.