Skip Navigation

[Resolved] 關於相關問題協助

This support ticket is created 4 years, 7 months ago. There's a good chance that you are reading advice that it now obsolete.

This is the technical support forum for Toolset - a suite of plugins for developing WordPress sites without writing PHP.

Everyone can read this forum, but only Toolset clients can post in it. Toolset support works 6 days per week, 19 hours per day.

No supporters are available to work today on Toolset forum. Feel free to create tickets and we will handle it as soon as we are online. Thank you for your understanding.

Sun Mon Tue Wed Thu Fri Sat
- 9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 -
- 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 -

Supporter timezone: Asia/Hong_Kong (GMT+08:00)

Author
Posts
#1324141

請問一下是否有中文客服?我們需要中文協助 謝謝

優先緊急問題
1.是否在同一個post type下,可以使用該post type下建立的其他文章當成該文章的推薦文章,類似產品有推薦商品的做法
2.Toolset 分類:用 Toolset, 需要多層 category, 如何編輯分類頁 子分類頁 彙整頁的 Layout,目前只可指定單一Archive Layout。
3.如何在「Layout」中設定輸出條件格式為「relationships」的「View」項目。如:「學生」與「課堂」為「relationships」,並已設定一個「View」顯示課堂中的學生;在「Layout」中插入「View」,當該堂課無任何學生時不顯示該區塊任何內容。
4.Image 如何設定為相對路徑,避免轉址時路徑錯誤。
5.image zoom in效果使用何種模組,例如slider使用 flexslider。
6.checkboxes 如何顯示多個項目的最後一個,例如有ABCD四個項目,當BCD被勾選時,只會出現BC項目。
7.多重篩選時,如何設定關聯式,如第一個篩選值設定為A,則第二個篩選值僅出現與A相關的選項。
8.同上,篩選時URL如何不顯示出相關參數

次優先
1.新增「欄位(Field)」的「別名(Slug)」,不可與被刪除的欄位別名相同。
如:一開始新增一個別名為「event-title」的欄位,刪除該欄位後,要新增同格式或不同格式的欄位,則別名不可再命名為「event-title」。
2.變更「欄位(Field)」的格式,則已建立的文章(Post)該欄位顯示錯誤訊息;若是新增一篇文章(Post),則該欄位正常顯示新格式項目。如:有一欄位格式為「Checkboxes」並建置樂一些文章,後因需求變更改為「Wysiwyg」後,已建置的文章內容,該欄位區塊顯示錯誤訊息;但若是新增一篇新文章,該欄位則正常顯示新的「Wysiwyg」區塊供編輯。
3.如何使用「Checkboxes」於文章(Post)中顯示所有項目,並判斷當「被選取」與「未選取」時套用不同的 CSS class。如:可被選取的項目有「大」、「中」、「小」,前台也同時顯示「大」、「中」、「小」三個項目,並為 CSS 的 class="a";當「大」被選取時,則套用class="b",但未被選取的「中」、「小」仍為 class="a"。
4.如何在「Layout」中設定輸出條件格式為「Categories」。如:文章分類有「A」、「B」、「C」,當選擇【A】分類時,套用class="a"、 當選擇【B】分類時,套用class="b" 。
5.套用 oceanwp 主題時,Toolset 的 View 是否可沿用 oceanwp 主題的分頁功能?目前套用該主題時,原分頁功能在頁面切換無反應。如:每頁顯示 10 篇文章,第 11 篇文章在第二頁,當按下第二頁按鈕切換時,網址與按鈕皆顯示為第二頁,但內容仍為第一頁的第 1~10 篇文章。
6.Toolset URL Path:URL Path 不會顯示類別
7.後台版面可否各欄位排版順序以及一列可以有兩欄(設定每一個欄位寬度)
8.一個post type可否有多個自訂欄位組,一個自訂欄位組裡只有一個Repeatable Group
9.是否有中文文件

#1324177

你好,
這個帖子有很多問題,我們建議每個帖子一個問題。

我盡量一一回答你提到的優先緊急問題:

1)是否在同一個post type下,可以使用該post type下建立的其他文章當成該文章的推薦文章,類似產品有推薦商品的做法

這是可以實現的,我建議你編輯你説的該post type,在”編輯post type時顯示的部分“,找到並啓用選項:頁面屬性(page attributes)。

當你編輯單獨的文章時,就可以看到”頁面屬性“區塊,并且可以設置”順序“值,這樣你可以根據這個”順序“值來對文章排序,參考文檔:
https://codex.wordpress.org/Function_Reference/register_post_type#supports
'page-attributes' (menu order, hierarchical must be true to show Parent option)

2)Toolset 分類:用 Toolset, 需要多層 category, 如何編輯分類頁 子分類頁 彙整頁的 Layout,目前只可指定單一Archive Layout。
你是打算使用對父分類和子分類使用不同的layout嗎?
如果是的話,你需要考慮使用PHP代碼了,比如說使用filter hook "get_layout_id_for_render" 創建一個新的PHP函數:

function apply_layout_by_terms( $id, $layout ){
//在這裏設置你的PHP 代碼
}
 
add_filter('get_layout_id_for_render', 'apply_layout_by_terms', 10, 2);

如上所示,你可以先判斷當前頁面是不是指定的子分類歸檔頁:
https://codex.wordpress.org/Function_Reference/is_tax
然後輸出不同的layout編號

3) 如何在「Layout」中設定輸出條件格式為「relationships」的「View」項目
如果「View」項目有找到結果,結果會顯示在簡碼内:
[wpv-items-found] 。。。 [/wpv-items-found]
你可以編輯你説的「View」項目在區塊”循環編輯器“内找到上述代碼,把你需要顯示的内容都放進該簡碼之内。
參考我們的文檔:
https://toolset.com/documentation/user-guides/views-shortcodes/#wpv-items-found

4) Image 如何設定為相對路徑,避免轉址時路徑錯誤。
Image field 默認不能設置成相對路徑,但是在你改變WordPress網址時,可以參考我們的文檔修改數據庫:
https://toolset.com/faq/how-do-i-migrate-a-wordpress-site-from-one-domain-to-the-other/#2-updating-urls-in-posts-and-custom-fields
Updating URLs in posts and custom fields
這樣也可以實現改變自定義圖片欄位的鏈接到新的網址

5) image zoom in效果使用何種模組,例如slider使用 flexslider。
Toolset沒有内置你説的這種特效的。我建議你參考別的穩定,設置CSS/JS代碼來實現,例如:
hidden link
hidden link

6) checkboxes 如何顯示多個項目的最後一個,例如有ABCD四個項目,當BCD被勾選時,只會出現BC項目。
Toolset Types外挂沒有你説的這種功能,但是你可以根據不同的選項,顯示不同的内容,參考我們的文檔:
https://toolset.com/documentation/customizing-sites-using-php/functions/#checkboxes
option:
"zero-based index number"
e.g. option=”0″ Will output the value for the option number specified. For checkboxes, will display the checked valued of the nth checkbox in the group.

7)多重篩選時,如何設定關聯式,如第一個篩選值設定為A,則第二個篩選值僅出現與A相關的選項。
你可以參考我們的文檔來設置多重篩選:
https://toolset.com/documentation/user-guides/front-page-filters/advanced-settings-custom-search/
啓用選項”Show only available options for each input“,參考上面文檔中的截圖:
hidden link

8)同上,篩選時URL如何不顯示出相關參數
同上,你可以啓用上面截圖中選項:Do not adjust URLs after loading search results

關於其他的問題,根據我們的支持政策:
https://toolset.com/toolset-support-policy/
Only one issue will be solved in a given ticket (thread). If you have more than one issue, please open separate tickets for each of them.
請爲每個問題開一個新帖,謝謝!

This ticket is now closed. If you're a WPML client and need related help, please open a new support ticket.