Menu

More Magic in Magic Time

2003-05-09
2003-05-11
  • Wendall Cada

    Wendall Cada - 2003-05-09

    Don,

    Since I have the need for a customized layout, and needed to turn of unneeded search options, I added the following code under view(full & small) as well as searchForm():

            $formelements = "";
            for($i=0; $i<count($this->_formelements); $i++) {
                if($this->_formelements[$i]->_class_id == $this->_class_id)
                    $formelements[$i] = $this->_formelements[$i]->renderFormElement(NULL);
                }

            for($i=0; $i<count($formelements); $i++) {
              $element = "FORMELEMENT$i";
                $tags[$element] = $formelements[$i];
            }

    This allows me to layout the formelements in the respective templates individually by naming each elements seqentially ie., FORMELEMENTS0,  FORMELEMENTS1, etc. based on the order in mod_listings_formelements.

    I thought that this could be a feature of the class creation, something like Customized Layout: Y/N.

    This feature was basically required by the project I am currently working on, so I added it.  I know this is not a top priority for you, but I hope this helps and makes it into the product for 0.3.0,

    HTH

    Wendall

     
    • Wendall Cada

      Wendall Cada - 2003-05-09

      Also just added this to the view(printable).

      Sorry about the previous typos, tough to edit in this tiny little window.  Needs a preview button, hehe.

      Wendall

       
    • Mike Windsor

      Mike Windsor - 2003-05-11

      Great idea Wendall.  This will be very valuable.

       

Log in to post a comment.