this is the solution I adopted to insert "readonly" only in the user module on the page "?controller=identity".
I hope this helps you
it work in PS 1.7.4.2
{block name='form_field_item_other'} <input class="form-control" name="{$field.name}" type="{$field.type}" value="{$field.value}" {if Tools::getValue('controller') == 'identity'} {if $field.name == "vat_number"}readonly{/if} {if $field.name == "siret"}readonly{/if} {if $field.name == "company"}readonly{/if} {/if} {if isset($field.availableValues.placeholder)}placeholder="{$field.availableValues.placeholder}"{/if} {if $field.maxLength}maxlength="{$field.maxLength}"{/if} {if $field.required}required{/if} > {if isset($field.availableValues.comment)} <span class="form-control-comment"> {$field.availableValues.comment} </span> {/if} {/block}
.png.022b5452a8f28f552bc9430097a16da2.png)