开发者

Drupal add filter through php snippet

开发者 https://www.devze.com 2023-01-24 01:52 出处:网络
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?

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

精彩评论

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