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

          1928 у кіно

          Захаров Федір Захарович

          Ель Греко