Legacy Knowledge Base
公開されました Jun. 30, 2025

特定のページにカスタム・メタタグを追加する方法

Written By

Debora Vita

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

You are viewing an article from our legacy "FastTrack" publication program, made available for informational purposes. Articles in this program were published without a requirement for independent editing or verification and are provided"as is" without guarantee.

Before using any information from this article, independently verify its suitability for your situation and project.

問題

  • ページ設定で以下のメタタグを追加したのですが、生成されたhtmlコードがエンコードされてしまい、機能しません。
    <meta content="&lt;html lang=&#34;fi&#34;/&gt;

    &lt;meta name=&#34;sdg-tag&#34; content=&#34;sdg&#34;/&gt;

    &lt;meta name=&#34;DC.ISO3166&#34; content=&#34;FI&#34;/&gt;

    &lt;meta name=&#34;DC.Service&#34; content=&#34;information&#34;/&gt;

    &lt;meta name=&#34;policy-code&#34; content=&#34;B5;B6;K1&#34;/&gt;" lang="fi-FI" name="description" />.

Environment

  • DXP 7.1

解決策

  • 7.1.xでは、ポータルと同様の方法で追加されるテキスト文字列を追加することだけが可能です。
    descriptionとrobotsメタタグの両方は、以下の記事に基づいて明確な機能を持っています:

    OOTB 機能を使ってこれをカスタマイズしたい場合、その機能は 7.3 用にリリースされた LPS-100973に導入されています。 だから、最善の選択肢は、そのパッチレベルにアップグレードすることだろう。

Did this article resolve your issue ?

Legacy Knowledge Base