legacy-knowledge-base
公開されました Sep. 10, 2025

Fragmentに埋め込まれたカスタムウィジェットに編集可能なフィールドを作る

written-by

Laura Li

How To articles are not official guidelines or officially supported documentation. They are community-contributed content and may not always reflect the latest updates to Liferay DXP. We welcome your feedback to improve How To articles!

While we make every effort to ensure this Knowledge Base is accurate, it may not always reflect the most recent updates or official guidelines.We appreciate your understanding and encourage you to reach out with any feedback or concerns.

legacy-article

learn-legacy-article-disclaimer-text

問題

  • カスタムウィジェットを持っていて、JSPに編集可能なフィールドをこのように書いています。
    <div class="form-group required">
        <label class="required-field-lbl form-field-lbl" data-lfr-editable-id="resume-name" data-lfr-editable-type="rich-text">Full Name</label>
        <input class="is-required form-control form-field resume-full-name" type="text" name="full-name">
    </div>

    次にフラグメントを作成し、 ドキュメントに従ってカスタムウィジェットをその中に埋め込みます。 ページを編集する際、フラグメントをページに追加し、フィールドのラベルを編集しようとします。 ただし、ラベルを編集することはできません。

環境

  • Liferay DXP 7.4

解像度

  • カスタムポートレット内のJSPページに追加されるマークアップは、コンテンツページ内で一部のフィールドを編集可能にするためのタグや属性を含める方法としてサポートされていません。 これらのタグや属性(例えば、 data-lfr-editable-id, data-lfr-editable-type)は、通常のページフラグメント内にあるときのみ機能しますが、この文脈の外では機能しません。

did-this-article-resolve-your-issue

legacy-knowledge-base