OutSystems Forge 日本語データベース

DynamicBreadcrumbs

※Forge全件データの日本語検索サービスをご利用になりたい場合は、こちらまでお問合せください。

Forge英文サイト

2017-08-10 1.0.1 João Nobre All All Applications, How-tos
動的パンくずリストを作成する方法のデモ。
このデモでは、パンくずリストの項目を保存するために "BreadCrumbItem"というテーブルを作成しました。 それぞれには名前、URLがあり、parentIdを持つことができます。 「BreadCrumbWebBlock」ウェブブロックは、現在のパンくずリストアイテムの識別子(パンくずリストを表示したい実際のページに対応する)を受け取り、「BreadCrumbItem」テーブルに現在のアイテムおよびその親を取得するためにクエリを行い、 ブレッドクラムを作成することができます。 ブレッドクラムの仕組みを示すために、他のページが追加されました。

[Overview]
DEMO of how to create dynamic breadcrumbs.
[Detail]
In this demo I have created a table called "BreadCrumbItem" to save the breadcrumb items. Each has an name, url and can have a parentId. The "BreadCrumbWebBlock" webblock receives a identifier of the current breadcrumb item (that correspond to the actual page being viewed and for which we want to show the breadcrumb), and will query the "BreadCrumbItem" table for getting the current item and its parents, so that is possible to create the breadcrumb. Other pages have been added to show how the breadcrumb is working.
戻る