Keyword

Feature Request - Free Parameters

  • AdrianK
  • AdrianK's Avatar Topic Author
  • Offline
  • Senior Member
More
14 years 2 months ago #85742 by AdrianK
Feature Request - Free Parameters was created by AdrianK
Often Webdevelopers want to change something in the view and want to give the administrators and editors the abillity to switch this features on or off or fill it or something more.I think a nice feature for this purpose is a free parameters field for the view-layout-options in the XML. <param name="freeparam" type="textarea" default="" label="Enter your parameters in the manner key=value,key=value,..." description="..." />The free parameters can be derivated by the one free parameter in the view.html.php (or in a view template):$freep = $this->params->get('freeparam');$freep_array = explode (',',$freep);// Build Hashforeach ($freep_array as $freep_item) { $freep_keyvalue = trim(explode('=',$freep_item)); $this->params->set($freep_keyvalue[0], $freep_keyvalue[1]);}I've don't test it, it's only an idea.

Please Log in or Create an account to join the conversation.


Powered by Kunena Forum