The new release (1.2) gives us just what we have been waiting for -- the better control of the front end and ability to sort the columns.
But we seem to have run into one problem. We have some code that works fine for the "edit template" in the back end, but when we place the same code in the front end "record edit template" it doesn't seem to work.
This code is at the top of both "edit templates:"
This code is a few rows down in the table:
In the back end, the select drop down works just as we want it. In the front end, here is the actual html code that is produced:
I have looked for missing or extra quotes, comma, etc. I have even removed all of the code except the parts you see here, and I get the same bad results.
Any suggestions?
TIA,
George
But we seem to have run into one problem. We have some code that works fine for the "edit template" in the back end, but when we place the same code in the front end "record edit template" it doesn't seem to work.
This code is at the top of both "edit templates:"
<?php $editor =& JFactory::getEditor(); JHTML::_('behavior.calendar'); ?> <br><br><table border=0>
This code is a few rows down in the table:
<tr><td><b>Room:</b><br><select name="Room"> <?php $database->setQuery( "SELECT room FROM #__ctrooms" ); $rooms = $database->loadObjectList(); foreach($rooms as $room){ ?> <option value="<?php echo $room->room; ?>"><?php echo $room->room; ?></option> <?php } ?> </select> <br> <br></td> <td>Start publishing:<br><?php echo JHTML::_( 'calendar',date( 'Y-m-d' ),"publish_up","publish_up"); ?></td> <td>Finish publishing:<br><?php echo JHTML::_( 'calendar',"Never","publish_down","publish_down"); ?> </td></tr>
In the back end, the select drop down works just as we want it. In the front end, here is the actual html code that is produced:
<tr><td><b>Room:</b><br><select name="Room"> <option value="" >room; ?></option> </select> <br> <br></td> <td>Start publishing:<br></td> <td>Finish publishing:<br> </td></tr>
I have looked for missing or extra quotes, comma, etc. I have even removed all of the code except the parts you see here, and I get the same bad results.
Any suggestions?
TIA,
George