简体   繁体   中英

TYPO3 realURL rewrite News Tag Search

I'm using TYPO3 7.6.x with realURL 2.0.14 ans news 4.2.1 .

I've made a SearchForm-Module, where I can search for Newstags.

Here's my HTML-Output, I'm just looking (TS) for tx_news_domain_model_tag.title at my pidInList=20 and it works:

<form method="get" action="/index.php">
  <input type="hidden" name="id" value="14">
  <select class="tagSearch" name="tx_news_pi1[overwriteDemand][tags]">
    <option value="" selected="">Tags</option>
    <option value="12">Tag A</option>
    <option value="8">Tag >B</option>
    ...
  </select>
</form>

At the moment my Links are like:
http://www.example.com/index.php?id=14&tx_news_pi1%5BoverwriteDemand%5D%5Btags%5D=15

If I click on a news tag below my news record, I'll get:

domain.com/articles/tagname/

How can I tell realURL, to rewrite tx_news_pi1[overwriteDemand][tags] from my selectbox? At the moment I use the realURL-Configuration from Ext.news ( advanced setup )

Unfortunately this has nothing to do how the RealUrl works, since it is the default browser behaviour of submitting a form, which generates the non-user friendly URL.

The easiest way to fix it would be to rewrite the form into a list with <a href=""> links. These links will get processed automatically with RealUrl.

除了使用ul / li外,您还可以在选项的value属性中生成url,并在表单提交后通过JS重定向到所选的URL

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM