You can deploy rule sets in Dynamic Media to transform URLs. 規則集是以指令碼語言(如JavaScript)編寫的一組指令,這些指令可評估XML資料,並在資料滿足某些條件時採取某些操作。 每個規則至少包含一個條件和至少一個動作。 規則會根據條件評估XML資料,如果符合條件,則會採取適當的動作。 規則集的範例包括:
添加MIME類型尾碼。 許多服務和網站都需要影像尾碼,例如將.jpg
新增至URL。
為SEO(搜尋引擎最佳化)目的建立URL的資料夾路徑。
為SEO(搜尋引擎最佳化)目的,將中繼資料新增至URL。
設定內容配置以觸發下載。
簡化影像提供範本URL以供個人化。 例如,將rgb{XX,YY,ZZ}
轉換為RTF就緒\redXX\greenYY\blueZZ
請求對某些字元進行編碼(如$
、{
和}
),並向ImageServer請求對某些字元進行解碼。 例如,Facebook在包含特殊字元的URL上無法正常運作。
In the context of Dynamic Media, websites that use an XML-based system to manage asset information can upload XML files to Dynamic Media. You can designate one of these files as the pre-processing rule set file for serving Dynamic Media asset. This file restructures the standard URL protocol format to meet the business logic of systems being integrated with Dynamic Media. You specify an XML file to serve as the rule set definitions file path.
使用規則集時請小心;它們可防止Dynamic Media內容顯示在您的網站上。
有可用的規則集範例可協助您建立自己的規則集。
See Rule set reference.
與建立所有規則集時一樣,在使用XMLVALID等XML驗證程式來上載XML檔案之前,請確保XML檔案有效。
另請參閱疑難排解規則集。
Also, make sure you first test your rule set in a staging environment that does not impact your live production environment.
Production environments and staging environments typically require different logins.
See the Adobe Dynamic Media Classic desktop application for sign-in information.
另請參閱規則集🔗中的「使用資產」而非「is」影像。
要部署XML規則集,請執行以下操作:
登入您的Dynamic Media Classic案頭應用程式。
配置時,Adobe提供了您的憑據和登錄詳細資訊。 如果您沒有此資訊,請聯絡Adobe客戶支援。
執行下列動作,上傳規則集檔案:
在頁面頂部附近的導航欄上,選擇Setup > Application Setup > Publish Setup > Image Server。
在Image Server Publish頁面的目錄管理組下,找到規則集定義檔案路徑,然後選擇選擇。
在選擇規則集定義檔案(XML)頁上,瀏覽到規則集檔案,然後在頁的右下角,選擇選擇。
在「設定」頁的右下角,選擇Close。
運行映像伺服器發佈作業。
規則集條件會套用至即時Dynamic Media影像伺服器的要求。
如果您變更規則集檔案,當您重新上傳和重新發佈更新的規則集檔案時,會立即套用變更。