开发者

Drupal add filter through php snippet

I need to create a new filter for my view inside php snippet. Is it possible to do that using Drupal API? Can you also give me code example if possible?

Thank You, Toli开发者_如何学JAVAy


Your comment made much more sense ;)

What you are asking for is easily possible with Views out-of-the-box. Specifically, when you are in Views, lookk for the section called "Views arguments". To get you started there is a massive tutorial on drupal.org about them.

The path to your page will be something like:

movies/year/%

The character '%' signifies an argument

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜