Coments like template Default theme

This trick allows you use add and grid view per one page

<?php
	$xcrud1 = Xcrud::get_instance();
    $xcrud1->table('productlines');
    $xcrud1->columns('productLine,htmlDescription');
    $xcrud1->unset_edit()->unset_view();
    $xcrud1->hide_button('add');
    echo $xcrud1->render();
    
    $xcrud2 = Xcrud::get_instance();
    $xcrud2->table('productlines');
    $xcrud2->fields('productLine,htmlDescription');
    $xcrud2->hide_button('save_return,return,save_edit');
    $xcrud2->set_lang('save_new','Publish');
    echo $xcrud2->render('create');
?>
<script type="text/javascript">
window.onload = function(){
    jQuery(document).on("xcrudafterrequest",function(event,container){
        if(jQuery(container).closest(".xcrud").prevAll(".xcrud").size()){
            Xcrud.reload(".xcrud:first");
        }
    });
}
</script>

Productlines

#ProductlineHtmldescription 
1Classic Cars
2Motorcycles
3Planes
4Ships
5Trains
6trucksq
7Trucks and Buses
8Vintage Cars
Export into CSV PrintSearch

Productlines - Add

Productline
Htmldescription
 
Buy it nowfor only $13