Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    text
    copied!<p>You don't need to set selectFields = * because it's the default. Most likely you forgot to set the pidInList because if it's not set it uses the pid of the current page.</p> <p>It could work that way:</p> <pre><code>lib.GetMainCat = CONTENT lib.GetMainCat { wrap = &lt;div class="p_filter"&gt;&lt;div class="p_filter_container"&gt;&lt;a class="p_cat_filter button" href="#" title="All Categories" data-filter="article.portfolio"&gt;&lt;span&gt;All Categories&lt;/span&gt;&lt;/a&gt;&lt;ul class="p_filter"&gt;&lt;li class="current"&gt;&lt;a href="#" title="All Categories" data-filter="article.portfolio"&gt;All Categories&lt;/a&gt;&lt;/li&gt;|&lt;/ul&gt;&lt;/div&gt;&lt;div class="cl"&gt;&lt;/div&gt;&lt;/div&gt; table = tx_tbpdrills_domain_model_drillcategory select { pidInList = 999 [page id where the records reside] where = NOT deleted AND NOT hidden orderBy = categorytitle ASC } renderObj = COA_INT renderObj { 10 = TEXT 10.field = categorytitle 10.wrap = &lt;li&gt;&lt;a href="#" title="###" data-filter="article.portfolio[data-category~='###']"&gt;|&lt;/a&gt;&lt;/li&gt; } } </code></pre> <p>This object can now be accessed in TypoScript:</p> <pre><code>page.20 &lt; lib.GetMainCat </code></pre> <p>Or in a Fluid template:</p> <pre><code>&lt;f:cObject typoscriptObjectPath="lib.GetMainCat" /&gt; </code></pre> <p>The core doesn't ship a method to use a TypoScript object in a content element. If you want to place your TypoScript object just like a content element, you will need to use an extension like <a href="http://typo3.org/extensions/repository/view/tscobj" rel="nofollow">http://typo3.org/extensions/repository/view/tscobj</a> It's quite old, but it should still work. This is the fastest, but probably not the best solution.</p> <p>You could write an own plugin that basically includes this TypoScript object. Or you could use another Fluid partial or template to include it.</p>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload