Welcome, Guest
Username: Password: Remember me
  • Page:
  • 1

TOPIC:

Empty Task / Empty Filters 08 Aug 2016 19:14 #14390

  • MorganL
  • MorganL's Avatar Topic Author
  • Offline
  • Platinum Member
  • Platinum Member
  • Posts: 438
  • Thank you received: 53
Could the component builder be tweaked to include empty custom tasks and filters

For controller create an icon on the task bar, choose its label, and the builder will create an empty function in the controller ready, and create a default icon ready for swapping
public function customTask($key = null, $urlVar = null)
    {

        CkJSession::checkToken() or CkJSession::checkToken('get') or jexit(JText::_('JINVALID_TOKEN'));
        //Check the ACLs
        $model = $this->getModel();
        $item = $model->getItem();
        $result = false;
    }

For filters, it will create an empty filter of any type currently defined (combo, string) and then will define the empty filter class, and the WHERE stetment in the model but just propegate it with something like
//WHERE - CUSTOMSEARCH : search_customsearc1h
        $search_customsearch = $this->getState('search.customsearch');
        if (($search_customsearch != '') 
            $this->addWhere('0=0');

or something like that so the placeholder is in place ready for forking (and also therefore when you introduce custom tasks and filters proper)


The code examples are naff, but it would just be nice to have something in place in the builder ready for building on
Morgan Leecy MCSE

Novell / Linux
PHP. MYSQL, Apache, node.js
Coldfusion, JQuery, HTML5
Joomla

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

Empty Task / Empty Filters 09 Aug 2016 10:25 #14399

  • admin
  • admin's Avatar
  • Offline
  • Administrator
  • Administrator
  • Chef
  • Posts: 3711
  • Thank you received: 986
Custom Task is already in the list.

Custom filter is a good idea. For the SQL statement it would be possible to set in in the builder, but not available in the sandbox (too dangerous)
I add it to the list of features.
Coding is now a piece of cake
The following user(s) said Thank You: jamaza

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

  • Page:
  • 1
Time to create page: 0.080 seconds

This is what you call a component builder. I was able to master using this in a very short time and the resulting component works like a charm. Not just a basic component builder but a fully working component builder with forms fields tables all ready to go. You can make the list and item views to display in the front and back end. Also there is a great forum just starting to evolve and I'm sure this will grow very rapidly when you all realise how good this tool is.
Kevin (JED)

         

Get Started