Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

hide specific field from module #417

Closed
stefanorosanelli opened this issue Dec 17, 2013 · 3 comments
Closed

hide specific field from module #417

stefanorosanelli opened this issue Dec 17, 2013 · 3 comments

Comments

@stefanorosanelli
Copy link
Member

With a simple config parameters specify fields to hide from module

  1. define a list of fields that could be hidden
  2. create configuration convention like
$config["hideFields"] = array("addressbook" => array("deathdate"));
@ghost ghost assigned vallo87 Dec 17, 2013
vallo87 pushed a commit that referenced this issue Dec 18, 2013
vallo87 pushed a commit that referenced this issue Dec 18, 2013
This reverts commit 2bc7f79.
vallo87 pushed a commit that referenced this issue Dec 18, 2013
@vallo87
Copy link

vallo87 commented Dec 18, 2013

resolved.

@vallo87 vallo87 closed this as completed Dec 18, 2013
vallo87 pushed a commit that referenced this issue Jan 24, 2014
@batopa
Copy link
Member

batopa commented Jan 30, 2014

@vallo87 I added a check on AddressbookController::save() to avoid error if $config['hideFields'] is undefined or empty.

Reverse logic in form_card_details.tpl

{if isset($conf->hideFields.addressbook.deathdate)}

became

{if !isset($conf->hideFields.addressbook.deathdate)}

stefanorosanelli added a commit that referenced this issue Feb 21, 2014
@stefanorosanelli
Copy link
Member Author

Config is ready: to implement hide mechanism for other fields use smarty function

{if !isset($conf->hideFields.<module>.<field>)}

closing

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants