コミュニティページで SEO の変更

  • リリースバージョン: Xanadu
  • 更新日 2024年08月01日
  • 所要時間:5分
  • 自動生成された SEO メタタグがニーズを満たさない場合、タグを変更または置換することができます。

    始める前に

    必要なロール:sn_communities.admin

    このタスクについて

    この質問ページ例 (ID community_question) のソースコードには、Communitiesアプリケーションがページに挿入したdescriptionメタタグ (黄色で強調表示) を示します。

    ファームウェアアップグレード後のルーターのオーバーヒートに関するコミュニティ質問ページの例と、コミュニティがこの質問を購読、返信、または賛成票を投じるためのオプション。
    <!DOCTYPE html><html lang="en" ng-app="sn.$sp" ng-init="portal_id = '5b49418bdb4aa200b1f6f78eaf96195f'" style="height: 100%" class="page- {{page.sys_id}} v{{page.sys_id}}" data-page-id="{{page.sys_id}}"><head sp- metatags=""><title>Routing and Switching - Router overheating after firmware 
    upgrade - Community</title><meta http-equiv="X-UA-Compatible" content="IE=edge; IE=10"></meta><meta name="viewport" content="width=device-width, initial- scale=1.0, maximum-scale=1.0, user-scalable=no"></meta><meta name="apple- mobile-web-app-capable" content="yes"></meta><meta http-equiv="cache-control" content="public"></meta><meta http-equiv="cache-control" content="no-cache">
    </meta><meta http-equiv="cache-control" content="max-age=0"></meta><meta http- equiv="pragma" content="no-cache"></meta><meta name="description" content=Routing and Switching - Tomahawk (5000 Series) - My 5000 series router has been overheating since I upgraded the firmware couple of days ago. Anybody" custom-tag=""></meta><link href="favicon.ico?v=4" rel="shortcut icon"></link>
    <link href="images/mobile/apple_touch_snc.png?v=09-26-2017_1830" rel="apple- touch-icon"></link><link type="text/css" rel="stylesheet" href="/styles/css_includes_$sp.cssx?v=09-26-2017_1830"></link><link href="styles/scss/sp-bootstrap.scss? portal_id=5b49418bdb4aa200b1f6f78eaf96195f&amp;v=21989c86db6dc300b14a75921f9619 d9" rel="stylesheet" type="text/css"></link><link rel="stylesheet" type="text/css" href="styles/sp-patch.css?v=21989c86db6dc300b14a75921f9619d9">
    </link><link href="/styles/scss/csm-styles.scss? portal_id=5b49418bdb4aa200b1f6f78eaf96195f&amp;v=7d88d886db6dc300b14a75921f9619 71" type="text/css" rel="stylesheet"></link><link type="text/css" rel="stylesheet" href="/scripts/icon-fonts/font-awesome/css/font-awesome.cssx? v=09-26-2017_1830"></link><script data-description=NOW session, user_name, 
    etc">window.NOW = window.NOW || {};
          //record watch / presence
          window.NOW.session_id = '302E95AADBA14700B14A75921F9619A0' ;
          window.NOW.user_name = xxxxxxx
          window.NOW.user_id = '6816f79cc0a8016401c5a33be04be441' ;
    
    descriptionメタタグテキストは、 communitiy_question レコードから取得される 3 つのデータフィールドで構成されています。タグでは、値はハイフン文字で区切られます。
    • descriptionメタタグの最初の部分は、質問レコードの [フォーラム名] フィールドの値です。この例では、フォーラム名は [ルーティングとスイッチング] です。
    • タグの 2 番目の部分は、レコードの [トピック] フィールドの値です (例では Tomahawk (5000 シリーズ))。
    • タグの 3 番目の部分は、レコードの [本文] フィールドの最初の 100 文字から生成されます。(私の 5000 シリーズルーターが、2、3 日前にファームウェアをアップグレードしてからオーバーヒートし続けています。どなたかお願いします)。
    質問ページのdescriptionメタタグに加えて、Communitiesアプリケーションではtitleタグ (青色で強調表示) を挿入します。タイトルは、communitiy_question レコードの 2 つの値を使用して動的に生成されます。
    • フォーラム名 (例では「ルーティングとスイッチング」)
    • 簡単な説明 (例では「ファームウェアアップグレード後のルーターのオーバーヒート」)

    手順

    1. 移動先 すべて > サービスポータル > ページ.
    2. ポータルページのリストで、更新するページの ID をクリックします (例では community_question)。
    3. [ページ] フォームから次の操作を行います。
      • [メタタグ] 関連リスト内のメタタグを変更または追加します。
      • タイトルテキストの構造を変更するか、テキストを生成する変数を変更または置換することによって、[動的ページタイトル] を変更します。変数定義が [動的ページ変数] 関連リストに表示されます。
      2 つのスクリーンショット:1 つ目にはページの詳細が表示され、[動的ページタイトル] フィールドが強調表示されています。2 つ目は関連リストを含む [メタタグ] タブと [動的ページタイトル変数] タブが強調表示されています。