TYPO3: Frontend Plugin Filter / Searchlist comprehension vs. lambda + filterHow to design RESTful search/filtering?TYPO3 / How to make repository from existing table fe_users?TYPO3 Extbase individual code on backend-deletion of an objectHow does my frontend usergroup list get lost between Extbase action controller and Fluid template partial in TYPO3 6.2?Extend Repository of a foreign TYPO3 extbase extensionshowAction : finding fe_user entry by username instead of uidTypo3 extension: Transfering an object via arguments doesn't work. What am i doing wrong?TYPO3 - Custom extension : show in flexformFiltering for seleted categories and subcategories in extbase TYPO3 frontend plugin

How could Tony Stark make this in Endgame?

A strange hotel

Which big number is bigger?

Philosophical question on logistic regression: why isn't the optimal threshold value trained?

Get consecutive integer number ranges from list of int

As an international instructor, should I openly talk about my accent?

Apply MapThread to all but one variable

Should the Death Curse affect an undead PC in the Tomb of Annihilation adventure?

A ​Note ​on ​N!

Minor Revision with suggestion of an alternative proof by reviewer

"Whatever a Russian does, they end up making the Kalashnikov gun"? Are there any similar proverbs in English?

Elements other than carbon that can form many different compounds by bonding to themselves?

Relationship between strut and baselineskip

Multiple options vs single option UI

Implications of cigar-shaped bodies having rings?

Mistake in years of experience in resume?

Does a large simulator bay have standard public address announcements?

Aliens crash on Earth and go into stasis to wait for technology to fix their ship

How to denote matrix elements succinctly?

Does tea made with boiling water cool faster than tea made with boiled (but still hot) water?

How to fry ground beef so it is well-browned

Checks user level and limit the data before saving it to mongoDB

Like totally amazing interchangeable sister outfits II: The Revenge

What is the philosophical significance of speech acts/implicature?



TYPO3: Frontend Plugin Filter / Search


list comprehension vs. lambda + filterHow to design RESTful search/filtering?TYPO3 / How to make repository from existing table fe_users?TYPO3 Extbase individual code on backend-deletion of an objectHow does my frontend usergroup list get lost between Extbase action controller and Fluid template partial in TYPO3 6.2?Extend Repository of a foreign TYPO3 extbase extensionshowAction : finding fe_user entry by username instead of uidTypo3 extension: Transfering an object via arguments doesn't work. What am i doing wrong?TYPO3 - Custom extension : show in flexformFiltering for seleted categories and subcategories in extbase TYPO3 frontend plugin






.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty height:90px;width:728px;box-sizing:border-box;








4















I've got a problem I can't find any documentation or solution for.



I've created a TYPO3 extension with a List and Detail View, everything works fine. Now I want to add some Input Fields above the List view, to let Site-Visitors Filter the List view.



How is this done? I'm sure I have to add a Fluid Form above the List View and handle this in Controller?



At the moment my Controller and Repo looks like this:



Controller:



/**
* EventController
*/
class EventController extends TYPO3CMSExtbaseMvcControllerActionController


/**
* eventRepository
*
* @var AlromaDsEventcalendarDomainRepositoryEventRepository
* @inject
*/
protected $eventRepository = null;

/**
* action list
*
* @return void
*/
public function listAction()

$events = $this->eventRepository->findAll();
$this->view->assign('events', $events);


/**
* action show
*
* @param AlromaDsEventcalendarDomainModelEvent $event
* @return void
*/
public function showAction(AlromaDsEventcalendarDomainModelEvent $event)

$this->view->assign('event', $event);


/**
* action frontpage
*
* @return void
*/
public function frontpageAction()

$events = $this->eventRepository->findAll();
$this->view->assign('events', $events);




Repo:



class EventRepository extends TYPO3CMSExtbasePersistenceRepository


// Order by BE sorting
protected $defaultOrderings = [
'highlight' => TYPO3CMSExtbasePersistenceQueryInterface::ORDER_DESCENDING,
'start' => TYPO3CMSExtbasePersistenceQueryInterface::ORDER_ASCENDING
];



To be more specific:
I want a User to have a Field, he can type some Keyword and I want to search it at my "Text" Database-Column of my Extension. If Keyword is found at any Text, show only the Article, that fits. Same for Date Parameter.










share|improve this question






























    4















    I've got a problem I can't find any documentation or solution for.



    I've created a TYPO3 extension with a List and Detail View, everything works fine. Now I want to add some Input Fields above the List view, to let Site-Visitors Filter the List view.



    How is this done? I'm sure I have to add a Fluid Form above the List View and handle this in Controller?



    At the moment my Controller and Repo looks like this:



    Controller:



    /**
    * EventController
    */
    class EventController extends TYPO3CMSExtbaseMvcControllerActionController


    /**
    * eventRepository
    *
    * @var AlromaDsEventcalendarDomainRepositoryEventRepository
    * @inject
    */
    protected $eventRepository = null;

    /**
    * action list
    *
    * @return void
    */
    public function listAction()

    $events = $this->eventRepository->findAll();
    $this->view->assign('events', $events);


    /**
    * action show
    *
    * @param AlromaDsEventcalendarDomainModelEvent $event
    * @return void
    */
    public function showAction(AlromaDsEventcalendarDomainModelEvent $event)

    $this->view->assign('event', $event);


    /**
    * action frontpage
    *
    * @return void
    */
    public function frontpageAction()

    $events = $this->eventRepository->findAll();
    $this->view->assign('events', $events);




    Repo:



    class EventRepository extends TYPO3CMSExtbasePersistenceRepository


    // Order by BE sorting
    protected $defaultOrderings = [
    'highlight' => TYPO3CMSExtbasePersistenceQueryInterface::ORDER_DESCENDING,
    'start' => TYPO3CMSExtbasePersistenceQueryInterface::ORDER_ASCENDING
    ];



    To be more specific:
    I want a User to have a Field, he can type some Keyword and I want to search it at my "Text" Database-Column of my Extension. If Keyword is found at any Text, show only the Article, that fits. Same for Date Parameter.










    share|improve this question


























      4












      4








      4








      I've got a problem I can't find any documentation or solution for.



      I've created a TYPO3 extension with a List and Detail View, everything works fine. Now I want to add some Input Fields above the List view, to let Site-Visitors Filter the List view.



      How is this done? I'm sure I have to add a Fluid Form above the List View and handle this in Controller?



      At the moment my Controller and Repo looks like this:



      Controller:



      /**
      * EventController
      */
      class EventController extends TYPO3CMSExtbaseMvcControllerActionController


      /**
      * eventRepository
      *
      * @var AlromaDsEventcalendarDomainRepositoryEventRepository
      * @inject
      */
      protected $eventRepository = null;

      /**
      * action list
      *
      * @return void
      */
      public function listAction()

      $events = $this->eventRepository->findAll();
      $this->view->assign('events', $events);


      /**
      * action show
      *
      * @param AlromaDsEventcalendarDomainModelEvent $event
      * @return void
      */
      public function showAction(AlromaDsEventcalendarDomainModelEvent $event)

      $this->view->assign('event', $event);


      /**
      * action frontpage
      *
      * @return void
      */
      public function frontpageAction()

      $events = $this->eventRepository->findAll();
      $this->view->assign('events', $events);




      Repo:



      class EventRepository extends TYPO3CMSExtbasePersistenceRepository


      // Order by BE sorting
      protected $defaultOrderings = [
      'highlight' => TYPO3CMSExtbasePersistenceQueryInterface::ORDER_DESCENDING,
      'start' => TYPO3CMSExtbasePersistenceQueryInterface::ORDER_ASCENDING
      ];



      To be more specific:
      I want a User to have a Field, he can type some Keyword and I want to search it at my "Text" Database-Column of my Extension. If Keyword is found at any Text, show only the Article, that fits. Same for Date Parameter.










      share|improve this question
















      I've got a problem I can't find any documentation or solution for.



      I've created a TYPO3 extension with a List and Detail View, everything works fine. Now I want to add some Input Fields above the List view, to let Site-Visitors Filter the List view.



      How is this done? I'm sure I have to add a Fluid Form above the List View and handle this in Controller?



      At the moment my Controller and Repo looks like this:



      Controller:



      /**
      * EventController
      */
      class EventController extends TYPO3CMSExtbaseMvcControllerActionController


      /**
      * eventRepository
      *
      * @var AlromaDsEventcalendarDomainRepositoryEventRepository
      * @inject
      */
      protected $eventRepository = null;

      /**
      * action list
      *
      * @return void
      */
      public function listAction()

      $events = $this->eventRepository->findAll();
      $this->view->assign('events', $events);


      /**
      * action show
      *
      * @param AlromaDsEventcalendarDomainModelEvent $event
      * @return void
      */
      public function showAction(AlromaDsEventcalendarDomainModelEvent $event)

      $this->view->assign('event', $event);


      /**
      * action frontpage
      *
      * @return void
      */
      public function frontpageAction()

      $events = $this->eventRepository->findAll();
      $this->view->assign('events', $events);




      Repo:



      class EventRepository extends TYPO3CMSExtbasePersistenceRepository


      // Order by BE sorting
      protected $defaultOrderings = [
      'highlight' => TYPO3CMSExtbasePersistenceQueryInterface::ORDER_DESCENDING,
      'start' => TYPO3CMSExtbasePersistenceQueryInterface::ORDER_ASCENDING
      ];



      To be more specific:
      I want a User to have a Field, he can type some Keyword and I want to search it at my "Text" Database-Column of my Extension. If Keyword is found at any Text, show only the Article, that fits. Same for Date Parameter.







      php filter typo3 fluid extbase






      share|improve this question















      share|improve this question













      share|improve this question




      share|improve this question








      edited Mar 10 at 16:10









      halfer

      14.8k759118




      14.8k759118










      asked Mar 9 at 9:21









      Denis49Denis49

      213




      213






















          2 Answers
          2






          active

          oldest

          votes


















          3














          The most basic way is for server-side filtering:



          • create a form with an input for the query string to search for

          • Fetch the argument in your Controller

          • Filter your DB query by $query->like

          Some code examples:



          The form with an input for the argument "querystring"



          <f:form action="list">
          <f:form.textfield name="querystring" value="" />
          </f:form>


          Get the argument in your action:



          if ($this->request->hasArgument('querystring')) 
          $querystring = $this->request->getArgument('querystring');
          $events = $this->repository->findAll($querystring);



          Filter your DB query in your repository (extend your findAll method or write a new method):



          public function findAll($querystring = '') 
          $query = $this->createQuery();
          if ($querystring)
          $query->matching(
          $query->like('property_to_search_in', '%'.$querystring.'%')
          );

          return $query->execute();






          share|improve this answer

























          • You made my day! That's exactly what I was looking for. Now I can add multiple Filters and stuff, just needed to know how it's done once. Thanks a lot!!

            – Denis49
            Mar 9 at 13:19


















          0














          If it's not too much content, I'd rather output search tags (data- attributes) for all content and use javascript for filtering. Otherwise you'd need the page to reload just for displaying a subset of content already loaded for the client. Also it wouldn't feel smooth.






          share|improve this answer























          • That's what I thought first about, but I got a lot of Objects and with Fluid Pagination and Filter in Controller,only needed stuff is loaded.

            – Denis49
            Mar 9 at 13:21











          Your Answer






          StackExchange.ifUsing("editor", function ()
          StackExchange.using("externalEditor", function ()
          StackExchange.using("snippets", function ()
          StackExchange.snippets.init();
          );
          );
          , "code-snippets");

          StackExchange.ready(function()
          var channelOptions =
          tags: "".split(" "),
          id: "1"
          ;
          initTagRenderer("".split(" "), "".split(" "), channelOptions);

          StackExchange.using("externalEditor", function()
          // Have to fire editor after snippets, if snippets enabled
          if (StackExchange.settings.snippets.snippetsEnabled)
          StackExchange.using("snippets", function()
          createEditor();
          );

          else
          createEditor();

          );

          function createEditor()
          StackExchange.prepareEditor(
          heartbeatType: 'answer',
          autoActivateHeartbeat: false,
          convertImagesToLinks: true,
          noModals: true,
          showLowRepImageUploadWarning: true,
          reputationToPostImages: 10,
          bindNavPrevention: true,
          postfix: "",
          imageUploader:
          brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
          contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
          allowUrls: true
          ,
          onDemand: true,
          discardSelector: ".discard-answer"
          ,immediatelyShowMarkdownHelp:true
          );



          );













          draft saved

          draft discarded


















          StackExchange.ready(
          function ()
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f55075821%2ftypo3-frontend-plugin-filter-search%23new-answer', 'question_page');

          );

          Post as a guest















          Required, but never shown

























          2 Answers
          2






          active

          oldest

          votes








          2 Answers
          2






          active

          oldest

          votes









          active

          oldest

          votes






          active

          oldest

          votes









          3














          The most basic way is for server-side filtering:



          • create a form with an input for the query string to search for

          • Fetch the argument in your Controller

          • Filter your DB query by $query->like

          Some code examples:



          The form with an input for the argument "querystring"



          <f:form action="list">
          <f:form.textfield name="querystring" value="" />
          </f:form>


          Get the argument in your action:



          if ($this->request->hasArgument('querystring')) 
          $querystring = $this->request->getArgument('querystring');
          $events = $this->repository->findAll($querystring);



          Filter your DB query in your repository (extend your findAll method or write a new method):



          public function findAll($querystring = '') 
          $query = $this->createQuery();
          if ($querystring)
          $query->matching(
          $query->like('property_to_search_in', '%'.$querystring.'%')
          );

          return $query->execute();






          share|improve this answer

























          • You made my day! That's exactly what I was looking for. Now I can add multiple Filters and stuff, just needed to know how it's done once. Thanks a lot!!

            – Denis49
            Mar 9 at 13:19















          3














          The most basic way is for server-side filtering:



          • create a form with an input for the query string to search for

          • Fetch the argument in your Controller

          • Filter your DB query by $query->like

          Some code examples:



          The form with an input for the argument "querystring"



          <f:form action="list">
          <f:form.textfield name="querystring" value="" />
          </f:form>


          Get the argument in your action:



          if ($this->request->hasArgument('querystring')) 
          $querystring = $this->request->getArgument('querystring');
          $events = $this->repository->findAll($querystring);



          Filter your DB query in your repository (extend your findAll method or write a new method):



          public function findAll($querystring = '') 
          $query = $this->createQuery();
          if ($querystring)
          $query->matching(
          $query->like('property_to_search_in', '%'.$querystring.'%')
          );

          return $query->execute();






          share|improve this answer

























          • You made my day! That's exactly what I was looking for. Now I can add multiple Filters and stuff, just needed to know how it's done once. Thanks a lot!!

            – Denis49
            Mar 9 at 13:19













          3












          3








          3







          The most basic way is for server-side filtering:



          • create a form with an input for the query string to search for

          • Fetch the argument in your Controller

          • Filter your DB query by $query->like

          Some code examples:



          The form with an input for the argument "querystring"



          <f:form action="list">
          <f:form.textfield name="querystring" value="" />
          </f:form>


          Get the argument in your action:



          if ($this->request->hasArgument('querystring')) 
          $querystring = $this->request->getArgument('querystring');
          $events = $this->repository->findAll($querystring);



          Filter your DB query in your repository (extend your findAll method or write a new method):



          public function findAll($querystring = '') 
          $query = $this->createQuery();
          if ($querystring)
          $query->matching(
          $query->like('property_to_search_in', '%'.$querystring.'%')
          );

          return $query->execute();






          share|improve this answer















          The most basic way is for server-side filtering:



          • create a form with an input for the query string to search for

          • Fetch the argument in your Controller

          • Filter your DB query by $query->like

          Some code examples:



          The form with an input for the argument "querystring"



          <f:form action="list">
          <f:form.textfield name="querystring" value="" />
          </f:form>


          Get the argument in your action:



          if ($this->request->hasArgument('querystring')) 
          $querystring = $this->request->getArgument('querystring');
          $events = $this->repository->findAll($querystring);



          Filter your DB query in your repository (extend your findAll method or write a new method):



          public function findAll($querystring = '') 
          $query = $this->createQuery();
          if ($querystring)
          $query->matching(
          $query->like('property_to_search_in', '%'.$querystring.'%')
          );

          return $query->execute();







          share|improve this answer














          share|improve this answer



          share|improve this answer








          edited Mar 9 at 16:43

























          answered Mar 9 at 10:45









          Mikel WohlschlegelMikel Wohlschlegel

          420312




          420312












          • You made my day! That's exactly what I was looking for. Now I can add multiple Filters and stuff, just needed to know how it's done once. Thanks a lot!!

            – Denis49
            Mar 9 at 13:19

















          • You made my day! That's exactly what I was looking for. Now I can add multiple Filters and stuff, just needed to know how it's done once. Thanks a lot!!

            – Denis49
            Mar 9 at 13:19
















          You made my day! That's exactly what I was looking for. Now I can add multiple Filters and stuff, just needed to know how it's done once. Thanks a lot!!

          – Denis49
          Mar 9 at 13:19





          You made my day! That's exactly what I was looking for. Now I can add multiple Filters and stuff, just needed to know how it's done once. Thanks a lot!!

          – Denis49
          Mar 9 at 13:19













          0














          If it's not too much content, I'd rather output search tags (data- attributes) for all content and use javascript for filtering. Otherwise you'd need the page to reload just for displaying a subset of content already loaded for the client. Also it wouldn't feel smooth.






          share|improve this answer























          • That's what I thought first about, but I got a lot of Objects and with Fluid Pagination and Filter in Controller,only needed stuff is loaded.

            – Denis49
            Mar 9 at 13:21















          0














          If it's not too much content, I'd rather output search tags (data- attributes) for all content and use javascript for filtering. Otherwise you'd need the page to reload just for displaying a subset of content already loaded for the client. Also it wouldn't feel smooth.






          share|improve this answer























          • That's what I thought first about, but I got a lot of Objects and with Fluid Pagination and Filter in Controller,only needed stuff is loaded.

            – Denis49
            Mar 9 at 13:21













          0












          0








          0







          If it's not too much content, I'd rather output search tags (data- attributes) for all content and use javascript for filtering. Otherwise you'd need the page to reload just for displaying a subset of content already loaded for the client. Also it wouldn't feel smooth.






          share|improve this answer













          If it's not too much content, I'd rather output search tags (data- attributes) for all content and use javascript for filtering. Otherwise you'd need the page to reload just for displaying a subset of content already loaded for the client. Also it wouldn't feel smooth.







          share|improve this answer












          share|improve this answer



          share|improve this answer










          answered Mar 9 at 11:38









          HafenkranichHafenkranich

          1,2121227




          1,2121227












          • That's what I thought first about, but I got a lot of Objects and with Fluid Pagination and Filter in Controller,only needed stuff is loaded.

            – Denis49
            Mar 9 at 13:21

















          • That's what I thought first about, but I got a lot of Objects and with Fluid Pagination and Filter in Controller,only needed stuff is loaded.

            – Denis49
            Mar 9 at 13:21
















          That's what I thought first about, but I got a lot of Objects and with Fluid Pagination and Filter in Controller,only needed stuff is loaded.

          – Denis49
          Mar 9 at 13:21





          That's what I thought first about, but I got a lot of Objects and with Fluid Pagination and Filter in Controller,only needed stuff is loaded.

          – Denis49
          Mar 9 at 13:21

















          draft saved

          draft discarded
















































          Thanks for contributing an answer to Stack Overflow!


          • Please be sure to answer the question. Provide details and share your research!

          But avoid


          • Asking for help, clarification, or responding to other answers.

          • Making statements based on opinion; back them up with references or personal experience.

          To learn more, see our tips on writing great answers.




          draft saved


          draft discarded














          StackExchange.ready(
          function ()
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f55075821%2ftypo3-frontend-plugin-filter-search%23new-answer', 'question_page');

          );

          Post as a guest















          Required, but never shown





















































          Required, but never shown














          Required, but never shown












          Required, but never shown







          Required, but never shown

































          Required, but never shown














          Required, but never shown












          Required, but never shown







          Required, but never shown







          Popular posts from this blog

          Save data to MySQL database using ExtJS and PHP [closed]2019 Community Moderator ElectionHow can I prevent SQL injection in PHP?Which MySQL data type to use for storing boolean valuesPHP: Delete an element from an arrayHow do I connect to a MySQL Database in Python?Should I use the datetime or timestamp data type in MySQL?How to get a list of MySQL user accountsHow Do You Parse and Process HTML/XML in PHP?Reference — What does this symbol mean in PHP?How does PHP 'foreach' actually work?Why shouldn't I use mysql_* functions in PHP?

          Compiling GNU Global with universal-ctags support Announcing the arrival of Valued Associate #679: Cesar Manara Planned maintenance scheduled April 23, 2019 at 23:30 UTC (7:30pm US/Eastern) Data science time! April 2019 and salary with experience The Ask Question Wizard is Live!Tags for Emacs: Relationship between etags, ebrowse, cscope, GNU Global and exuberant ctagsVim and Ctags tips and trickscscope or ctags why choose one over the other?scons and ctagsctags cannot open option file “.ctags”Adding tag scopes in universal-ctagsShould I use Universal-ctags?Universal ctags on WindowsHow do I install GNU Global with universal ctags support using Homebrew?Universal ctags with emacsHow to highlight ctags generated by Universal Ctags in Vim?

          Add ONERROR event to image from jsp tldHow to add an image to a JPanel?Saving image from PHP URLHTML img scalingCheck if an image is loaded (no errors) with jQueryHow to force an <img> to take up width, even if the image is not loadedHow do I populate hidden form field with a value set in Spring ControllerStyling Raw elements Generated from JSP tagds with Jquery MobileLimit resizing of images with explicitly set width and height attributeserror TLD use in a jsp fileJsp tld files cannot be resolved