PIDinRootline用于& time_table_where'的TCA mm关系

时间:2017-08-19 07:58:04

标签: typo3

我有一个扩展名(Typo3 8.7.4),其中的类别为mm关系。类别保存在不同的页面中。所以我想只选择保存在某个页面的树中的类别以及该特定页面的子页面。有没有像typoscript中那样的标记" PIDinRootline"对于TCA中的foreign_table_where的selectin条目?

3 个答案:

答案 0 :(得分:0)

rootUid是正确的treeConfig

答案 1 :(得分:0)

此页面上记录了TCA // JavaScript Docume $(document).on('click', '#display_data', function(e) { var h = $('.table-bordered tr th') var convertTableToJson = function() { var rows = $('.table-bordered tbody tr').map(function(i, n) { var obj = {}; $(this).find('td').each(function(k) { obj[h.eq(k).text()] = $(this).text(); }) return obj; }).get(); return JSON.stringify(rows); }; $(function() { console.log(convertTableToJson()); console.log(JSON.parse(convertTableToJson())); }); });https://docs.typo3.org/typo3cms/TCAReference/ColumnsConfig/Type/Select.html# 在这里,您可以找到可在查询中使用的可能标记的说明: https://docs.typo3.org/typo3cms/TCAReference/ColumnsConfig/Type/Select.html#foreign-table-where

E.g。您可以使用<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.7.1/jquery.min.js"></script> <table class="table table-bordered"> <thead> <tr> <th>Kode Material</th> <th>Storage Location</th> <th>Movement Type</th> <th>Id Indentifier</th> <th>Item</th> <th>Date Input</th> <th>Netto</th> <th>Unit</th> <th><input type="checkbox" id="mycheckbox1" name="mycheckbox1"></th> </tr> </thead> <tbody> <tr> <td>101200</td> <td>WCB</td> <td>101</td> <td>5006540050</td> <td>1</td> <td>10.08.2017</td> <td>23.970</td> <td>KG</td> <td><input type="checkbox" class="mycheckbox" name="mycheckbox"></td> </tr> <tr> <td>2323</td> <td>WssdCB</td> <td>1013</td> <td>50036539985</td> <td>13</td> <td>103.08.2017</td> <td>423.970</td> <td>KGD</td> <td><input type="checkbox" class="mycheckbox" name="mycheckbox"></td> </tr> </tbody> </table> <button id="display_data">display_data</button>从当前页面获取记录。

答案 2 :(得分:0)

尝试使用下面的typoscript。

这将检查“pages-uidl”中的一个数字是否为根线中的PID(pages-uid):

[PIDinRootline = pages-uid, pages-uid, ...]

与PIDinRootline相同,但当前page-uid从检查中排除。

[PIDupinRootline = pages-uid, pages-uid, ...]