產生多語言網站的網站地圖

使用 OCE 工具程式產生多語言網站的網站地圖,並將地圖發布至網站。

您可以使用 cec create-site map <site> 命令在 Oracle Content Management 伺服器上建立多語言網站的網站地圖。例如:

cec create-site-map Site1 -u http://www.example.com/site1

此命令會在 Oracle Content Management 伺服器上遍訪網站結構、產生符合網站頁面階層的網站地圖階層,以及在指定的網站 URL 建立網站地圖。

命令選項如下:

  --url, -u         <url> Site URL                                                    [required]
  --changefreq, -c  How frequently the page is likely to change
  --file, -f        Name of the generated site map file
  --publish, -p     Upload the site map to CEC server after creation
  --help, -h        Show help                                                           [boolean]

<changefreq> 選項的有效值如下:

  • always

  • hourly

  • daily

  • weekly

  • monthly

  • yearly

  • never

  • auto

cec create-site-map 命令的範例如下:

cec create-site-map Site1 -u http://www.example.com/site1

cec create-site-map Site1 -u http://www.example.com/site1 -f sitemap.xml

cec create-site-map Site1 -u http://www.example.com/site1 -p

cec create-site-map Site1 -u http://www.example.com/site1 -c weekly -p

若要發布網站地圖,必須建立網站更新、更新網站地圖,以及確認更新。