在drupal中可以使用类似行为的内容过滤器吗? [英] Behance-like content filter possible in drupal?

查看:14
本文介绍了在drupal中可以使用类似行为的内容过滤器吗?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

这里问了同样的问题,但没有得到答案,所以我在这里尝试而是:)

Asked the same question here but got no answer, so I'm trying here instead :)

嘿,

我正在开发一个类似于 Behance 的网站.

I'm working on a site somewhat similar to Behance.

为了让你明白我在说什么,我稍微解释一下;

To make you understand what I'm talking about, I'll explain a little bit;

我有一个名为say...Content"的内容类型,它可以分为三个不同的类别,Category 1"、Category 2"和Category 3".

I got a content type called say... "Content", which can go into three different categories, "Category 1", "Category 2" and "Category 3".

然后,我得到了一个名为内容过滤器"的页面,我可以在其中查看不同类别的所有内容.

Then, I got a page called "Content filter" where I can see all the content in the different categories.

在此页面上,我可以通过选择类别和时间(自上传内容以来的时间)过滤应显示的内容.

On this page I'm able to filter what should be shown by choosing category and time (time since uploaded content).

因此,如果我选择类别 1 和 1 个月或类似的内容,它会将页面上的内容过滤为我选择的内容,而无需上传页面.因此,我将其称为实时内容过滤器",希望您能理解.

So if I choose Category 1 and 1 Month or something like that, it will filter the content on the page to what I choose, without uploading the page. So I would call it something like "Live content filter", I hope you get the idea.

无论如何,我知道如何制作这一切,但如果不转到另一个页面,它就无法过滤,而且我必须获得太多的浏览量.

Anyways, I know how to make all this, but then it's not filtering without going to another page, and I have to make way too many views.

希望有人能帮我解决这个问题,真的很棒.

Hopefully someone can help me with this, would be really great.

推荐答案

您需要将视图设置设置为 Use AJAX: No 到 "Yes".这样,暴露的过滤器/寻呼机将动态加载过滤后的内容,而无需重新加载页面或转到另一个页面.您可能需要尝试使用块"显示与页面"(URL 路径)显示.您可能还需要使用 Views Arguments 作为减少需要创建的 View 数量的一种方式.

You would want to set your View setting where it says, Use AJAX: No to "Yes". That way and exposed filters / pagers will dynamically load the filtered content without doing a page reload or going to another page. You may have to experiment with using a "Block" display vs. a "Page" (URL path) display. You may also need to use Views Arguments as a way on cutting down on the number of Views you need to create.

这篇关于在drupal中可以使用类似行为的内容过滤器吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆