我真的很感謝一些幫助。Drupal 7意見3:暴露過濾器,搜索特定的領域
我想在視圖中創建兩個不同的暴露過濾器。我目前有6,000個節點,每個節點有75個字段,每個節點在一個內容類型內我在一個塊中使用一個頁面視圖和一個暴露的表單。我也安裝了更好的曝光過濾器模塊。
第一個,我想打一個文本框中搜索條件,但有它只能搜索我指定的字段。我會讓它搜索3個字段(搜索全名):名字,中間名,姓氏。他們都在不同的領域。 目前我唯一能夠搜索到的內容是內容類型爲(其中它搜索每個字段,而不僅僅是名稱)的每個TERM。我通過公開這個過濾器來實現這一點:
Search: Search Terms
The terms to search for.
我想要做的下一個過濾器是字段「畢業班」。這也許是最好的搜索條件(如果我可以找出如何搜索一個領域,如上),但我希望有一個選擇下拉列出每個畢業班。這個領域的這些課程範圍從1905年至1972年。當您在此框中點擊一年時,它將在當年過濾當前結果。
這聽起來很基本,但我似乎無法得到它,並會真正感謝一些幫助。
爲了您的參考(如果需要),以下是我可以添加的過濾器的類型。 (離線主題:我實際上並不確定「:」格式的文件是什麼)。對於「Content:」過濾器,我只會顯示「名稱」過濾器,因爲還有73個過濾器。許多這些過濾器是從飼料模塊,因爲這是我用來導入我的節點:
Content: First Name (field_cinfo_fname)
Appears in: node:cadet.
Content: First Name (field_cinfo_fname:format)
Appears in: node:cadet.
Content: Middle Name (field_cinfo_mname)
Appears in: node:cadet.
Content: Middle Name (field_cinfo_mname:format)
Appears in: node:cadet.
Content: Last Name (field_cinfo_lname)
Appears in: node:cadet.
Content: Last Name (field_cinfo_lname:format)
Appears in: node:cadet.
Content access: Access
Filter for content by view access. Not necessary if you are using node as your base table.
Content revision: Log message
The log message entered when the revision was created.
Content revision: Title
The content title.
Content revision: Updated date
The date the node was last updated.
Content revision: Vid
The revision ID of the content revision.
Feeds item: Import date
Filter on a Feeds Item's import date field.
Feeds item: Item GUID
Filter on a Feeds Item's GUID field.
Feeds item: Item URL
Filter on a Feeds Item's URL field.
Feeds item: Owner feed nid
Filter on Feed Items by the Feed they were generated from using the Node Id of the Feed Node.
Feeds log: Feed node id
Filter on a Feeds Source's feed_nid field.
Feeds log: Importer id
Filter on an importer id.
Feeds log: Log time
The time of the event.
Feeds log: Request time
The time of the page request of an event.
Feeds log: Severity
Filter on the severity of a log message.
Feeds source: Feed node id
Filter on a Feeds Source's feed_nid field.
File Usage: Entity type
The type of entity that is related to the file.
File Usage: Module
The module managing this file relationship.
File Usage: Use count
The number of times the file is used by this entity.
Page Title: Title
A Page Title alternative to the Node: Title field.
Search: Links from
Other nodes that are linked from the node.
Search: Links to
Other nodes that link to the node.
Search: Search Terms
The terms to search for.
Doh!我想每個人都建立他們的第一個Drupal站點。 – WebMW