Christian Tauscher
2017-07-14 09:35:45 UTC
Hello my friends,
My Newsrecord of EXT:news are categorized AND Tagged.
So the user may restict the show list-view by the Category-Menu to the
selected category.
This works for the Tag-Menu as well.
It is possible to combine this, too:
<f:link.page title="{category.item.title}" class="active"
pageUid="{settings.listPid}"
additionalParams="{tx_news_pi1:{overwriteDemand:{categories:
category.item.uid, tags: overwriteDemand.tags}}}">
this is a nice try, but does not lead me to my goal:
I want to *search* *inside* this preselection
I would prefer a Text-box (Text-Search) and 2 Dropdowns (Tags, Cats)
I have tryed somethig like this (in news-searchform):
<!--Textsearch-->
<f:form.textfield id="news-subject" property="subject" />
<!-- limit to cat -->
<select name="tx_news_pi1[search][categories]">
<option value="0">---</option>
<option value="28">Cat28</option>
<option value="14">Cat14</option>
<option value="37">cat37</option>
...
</select>
<!-- limit to tags -->
<select name="tx_news_pi1[search][tags]">
<option value="0">---</option>
<option value="1">Tag1</option>
<option value="3">Tag3</option>
<option value="23">tag23</option>
...
</select>
<!-- do the search -->
<f:form.submit value="{f:translate(key:'search-start')}" />
If I select e.g. a category T3 crashes:
#1297759968: Exception while property mapping at property path "":
Property "categories" was not found in target object of type
"GeorgRinger\News\Domain\Model\Dto\Search". (More information)
Means this that I have to write a own "Search-Extention"?
Or may I "extent" somehow ext:news with this feature?
Thankyou for your help in this case,
Christian.
My Newsrecord of EXT:news are categorized AND Tagged.
So the user may restict the show list-view by the Category-Menu to the
selected category.
This works for the Tag-Menu as well.
It is possible to combine this, too:
<f:link.page title="{category.item.title}" class="active"
pageUid="{settings.listPid}"
additionalParams="{tx_news_pi1:{overwriteDemand:{categories:
category.item.uid, tags: overwriteDemand.tags}}}">
this is a nice try, but does not lead me to my goal:
I want to *search* *inside* this preselection
I would prefer a Text-box (Text-Search) and 2 Dropdowns (Tags, Cats)
I have tryed somethig like this (in news-searchform):
<!--Textsearch-->
<f:form.textfield id="news-subject" property="subject" />
<!-- limit to cat -->
<select name="tx_news_pi1[search][categories]">
<option value="0">---</option>
<option value="28">Cat28</option>
<option value="14">Cat14</option>
<option value="37">cat37</option>
...
</select>
<!-- limit to tags -->
<select name="tx_news_pi1[search][tags]">
<option value="0">---</option>
<option value="1">Tag1</option>
<option value="3">Tag3</option>
<option value="23">tag23</option>
...
</select>
<!-- do the search -->
<f:form.submit value="{f:translate(key:'search-start')}" />
If I select e.g. a category T3 crashes:
#1297759968: Exception while property mapping at property path "":
Property "categories" was not found in target object of type
"GeorgRinger\News\Domain\Model\Dto\Search". (More information)
Means this that I have to write a own "Search-Extention"?
Or may I "extent" somehow ext:news with this feature?
Thankyou for your help in this case,
Christian.