0

我需要使用在特定资源中设置为电视的“开始 ID”。

这是我试图动态化的基本调用:

1

[[getResourceField? &id=`298` &field=`longtitle`]]

看来我不能嵌套另一个 getResourceField 来让它工作:

[[getResourceField? &id=`[[!getResourceField? &id=`[[*photoGalleryId]]` &field=`albumStart` &processTV=`1`]]` &field=`longtitle`]]

我也尝试将 ID 收集器作为一个单独的块,这也失败了。

有任何想法吗?

4

2 回答 2

1

我不熟悉 getResourceField - 但你能不能把电视放在 ID 中?

[[getResourceField? &id=`[[*photoGalleryId]]` &field=`longtitle`]]

在我看来,你想这样做吗?

[[getResourceField? &id=`[[*photoGalleryId]]` &field=`albumStart` &processTV=`1` &field=`longtitle`]]

如果您尝试使用 ~current~ 资源的 photoGalleryId TV,如果您尝试从其他资源获取它,则需要一个片段。

于 2012-11-14T14:02:26.380 回答
0

万一其他人偶然发现了这一点,它需要将第二个片段称为未缓存(没有!):

[[getResourceField? &id=`[[getResourceField? &id=`[[*photoGalleryId]]` &field=`albumStart` &processTV=`1`]]` &field=`longtitle`]]
于 2012-11-15T08:45:36.230 回答