开发者

using fields of node and views_attach to display results

开发者 https://www.devze.com 2023-02-13 07:32 出处:网络
I have the content-types \"Product\" and \"Product Group\". Products are generated by a huge CSV import. It has (among many others) the fields \"rubrik\" and \"text1\". Those fields exist as well in a

I have the content-types "Product" and "Product Group". Products are generated by a huge CSV import. It has (among many others) the fields "rubrik" and "text1". Those fields exist as well in a "product group".

Now I want to attach a view (with views_attach) to product groups, that shows 开发者_C百科all products with the specified "rubrik" and "text1".


Create a view with these settings:

Filters: - Node type is one of Product

Arguments: - Content: text1 - Content: rubrik

Choose whatever fields and other settings you want.

I've never used views_attach but I think you can pass arguments to the view, and if you have token module installed I would hope that this would simplify that process.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号