2017-09-05 3 views
0

こんにちは私はC1を選択し、私は問題はリストビューで 下に説明するように、私は二つの異なるカテゴリーメニューでニュースタグレコードやニュースレコードを持っていますと仮定します持っていますすべての(選択したカテゴリを持つすべてのビデオを表示するOR)Typo3 tx_news TagList同じページで2つの異なるカテゴリメニューを選択することに基づくフィルタ?

V1 V5-C2-T1、V6-C2-T2、V7-C2-T2、V7-C2-T1、V4-C1、 T1、V8-C2-T2.Issueは、私がC1メニューを選択した後にT1またはT2を選択したときです。V1、V3またはV2、V4を表示します...しかし、C2メニューを選択してT1またはT2を選択すると、 V1、V3またはV2、V4。正しい論理フィルタはV5、V7またはV6、V8 ... C2メニューを選択してください。 私は修正する必要があると思うが、これを行う方法がわからない2つのファイルがありますか?

1.C:\ xamppの\ htdocsに\個人用サイト\ typo3conf \のext \ニュースリソース\プライベート\テンプレート\スタイル\ TWB \テンプレート\カテゴリ\ \するlist.html

<html xmlns:f="http://typo3.org/ns/TYPO3/CMS/Fluid/ViewHelpers" data-namespace-typo3-fluid="true"> 
 
<f:layout name="General" /> 
 
<!-- 
 
\t ===================== 
 
\t \t Templates/Category/List.html 
 
--> 
 

 
<f:section name="content"> 
 
\t <f:if condition="{categories}"> 
 
\t \t <f:then> 
 
\t \t \t <f:render section="categoryTree" arguments="{categories:categories,overwriteDemand:overwriteDemand,class:'nav nav-sidebar category-menu-view'}" /> 
 
\t \t </f:then> 
 
\t \t <f:else> 
 
\t \t \t <f:translate key="list_nocategoriesfound" /> 
 
\t \t </f:else> 
 
\t </f:if> 
 
</f:section> 
 

 
<f:section name="categoryTree"> 
 

 
\t <ul class="{class}"> 
 
\t \t <f:for each="{categories}" as="category"> 
 
\t \t \t <li> 
 
\t \t \t \t <f:if condition="{category.item.uid} == {overwriteDemand.categories}"> 
 
\t \t \t \t \t <f:then> 
 
\t \t \t \t \t \t <f:link.page title="{category.item.title}" class="active" pageUid="{settings.listPid}" 
 
\t \t \t \t \t \t \t additionalParams="{tx_news_pi1:{overwriteDemand:{categories: category.item.uid}}}">{category.item.title} 
 
\t \t \t \t \t \t </f:link.page> 
 
\t \t \t \t \t </f:then> 
 
\t \t \t \t \t <f:else> 
 
\t \t \t \t \t \t <f:link.page title="{category.item.title}" pageUid="{settings.listPid}" 
 
\t \t \t \t \t \t \t additionalParams="{tx_news_pi1:{overwriteDemand:{categories: category.item.uid}}}">{category.item.title} 
 
\t \t \t \t \t \t </f:link.page> 
 
\t \t \t \t \t </f:else> 
 
\t \t \t \t </f:if> 
 

 
\t \t \t \t <f:if condition="{category.children}"> 
 
\t \t \t \t \t <f:render section="categoryTree" arguments="{categories: category.children,overwriteDemand:overwriteDemand,class:''}" /> 
 
\t \t \t \t </f:if> 
 
\t \t \t </li> 
 
\t \t </f:for> 
 
\t </ul> 
 
</f:section> 
 
</html>

enter image description here 2.C:\ xamppの\ htdocsに\個人用サイト\ typo3conf \のext \ニュースリソース\ \プライベート\テンプレート\スタイル\ TWB \テンプレート\タグするlist.html

<html xmlns:f="http://typo3.org/ns/TYPO3/CMS/Fluid/ViewHelpers" data-namespace-typo3-fluid="true"> 
 
<f:layout name="General" /> 
 

 
<!-- 
 
\t ===================== 
 
\t \t Templates/Tag/List.html 
 
--> 
 

 
<f:section name="content"> 
 
\t <f:if condition="{tags}"> 
 
\t \t <ul class="nav nav-sidebar tag-menu-view"> 
 
\t \t \t <f:for each="{tags}" as="tag"> 
 
\t \t \t \t <li class="{f:if(condition:'{tag.uid} == {overwriteDemand.tags}',then:'active',else:'')}"> 
 
\t \t \t \t \t <f:link.page title="{tag.title}" pageUid="{settings.listPid}" additionalParams="{tx_news_pi1:{overwriteDemand:{tags: tag}}}"> 
 
\t \t \t \t \t \t {tag.title} 
 
\t \t \t \t \t </f:link.page> 
 
\t \t \t \t </li> 
 
\t \t \t </f:for> 
 
\t \t </ul> 
 
\t </f:if> 
 
</f:section> 
 
</html>
\

+0

V1、V2、V3、V4、V5、V6、V7、V8はニュース、C1とC2はカテゴリメニュー、T1とT2はニュースタグ – Amir

答えて

関連する問題