开发者

drupal create a view to grab a nodes files by node id

Is there a way to create a view that takes an node id argument to get all the files uploaded from that node.开发者_JS百科 I have a page with cck multigroup with video title, video thumbnail, video file. In my node tpl I want to call a view to grab those files to create a playlist for a JW Player.

thanks


If you are using Drupal6 this is very straight forward. Using views arguments you can define the argument type and even set up a default argument. More detail can be found at the Views Argument documentation page. To have it only return the fields you want, is also very straight forward, under fields just choose the 3 fields you listed.

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜