[WordPress] 外掛分享: Simple Relative Content

前言介紹

  • 這款 WordPress 外掛「Simple Relative Content」是 2012-11-18 上架。
  • 目前有 10 個安裝啟用數。
  • 上一次更新是 2014-04-18,距離現在已有 4034 天。超過一年沒更新,安裝要確認版本是否可用。以及後續維護問題!
  • 有 1 人給過評分。
  • 還沒有人在論壇上發問,可能目前使用數不多,還沒有什麼大問題。

外掛協作開發者

pabois | semio-design |

外掛標籤

uri | basepath | relative | relative uri | relative path |

內容簡介

當您使用 WordPress 編輯器將媒體插入到內容欄位中時,它會儲存對絕對路徑的引用。
因此,如果更改您的網站位置(例如從暫存區切換到生產環境),則所有路徑都會不正確。
此外掛將相對路徑儲存在資料庫中,而不是絕對路徑。
請注意:必須在將媒體插入內容欄位之前啟用此插件。對於啟用之前儲存的媒體,此插件無效。
此外掛主要基於 WP_SITEURL 常數,該常數應在 wp_config.php 檔案中定義。如果未定義此常數,則使用 “siteurl” 選項值。
如果插件檢測到您從最初定義的 “siteurl” 之外的位置訪問網站,它可以在資料庫中更正大多數錯誤的 URL。
此外掛已翻譯成法語。

原文外掛簡介

When you use the WordPress editor to insert a media in the content field it stores a reference to the absolute path.
So if you change the location of your site (by switching from staging to production environment for example) all your paths will be incorrect.
This plugin stores relative pathes in the db instead of an absolute path.
Beware: this plugin must be activated BEFORE inserting a media into the content field. It has no effect on the medias stored before the activation.
It’s mostly based on the WP_SITEURL constant which should be defined in the wp_config.php file. If this constant isn’t defined it uses the “siteurl” option value instead.
If the plugin detects that you access the website from another location than the “siteurl” defined initially it can correct most of the wrong urls in the database.
Localisation of the plugin into french.

各版本下載點

  • 方法一:點下方版本號的連結下載 ZIP 檔案後,登入網站後台左側選單「外掛」的「安裝外掛」,然後選擇上方的「上傳外掛」,把下載回去的 ZIP 外掛打包檔案上傳上去安裝與啟用。
  • 方法二:透過「安裝外掛」的畫面右方搜尋功能,搜尋外掛名稱「Simple Relative Content」來進行安裝。

(建議使用方法二,確保安裝的版本符合當前運作的 WordPress 環境。


最新版本

延伸相關外掛(你可能也想知道)

  • Make Paths Relative 》這個外掛程式可以將路徑(URL)轉換為相對路徑而非絕對路徑。這個外掛程式對於使用相對路徑特別有用。以下是這個外掛程式可以輕易轉換為相對路徑的永久連結和...。
  • Relative Image URLs 》當在文章中插入圖片時,WordPress 會使用絕對 URL 連結到檔案。這個外掛覆蓋了這個功能,並強制使用相對 URL。, 例如:, WordPress 預設:, http://www.examp...。
  • Relative URL ShortCode 》現在,更改網域並將 WordPress 博客從子域移動到父域變得容易,例如從本地主機到實際網域,您只需使用此短代碼 [base_url] 作為基本 URL 和圖像,因此現在在...。
  • WP-RelativeDate 》像是「今天」、「昨天」、「2 天前」、「2 週前」、「2 秒前」、「2 分鐘前」、「2 小時前」等。, 一般用法, 你不需要做任何事情,WP-RelativeDate 會自動修...。
  • Today-Yesterday Dates 》Today-Yesterday Dates 是一個簡單小巧的外掛程式,能夠自動根據當前時間更改文章的創建日期(僅限今天和昨天)。換句話說,日期將會變成像「今天 11:45」或...。
  • Relative Menu Item Plugin 》使用相對於當前 WordPress 安裝根目錄的連結建立自訂選單項目。, 只需像正常添加自定義連結一樣,用%ROOT%作為前綴在連結URL前添加。例如,如果您的 WordPre...。
  • Protocol Relative Theme Assets 》這個外掛將註冊、佇列的 CSS 或 JavaScript URL 轉換成它們的「協定相對」等效URL。, 考慮以下示例:, 協議相對 CSS URL, Simple Relative Date 》這個外掛是基於 Lester Chan 的 Relative Date 外掛 所開發。, 這個外掛的目標是讓事情變得更加簡單。這個外掛能夠:, , 取代文章中的 the_date(), 取代評論...。
  • Relative Site URL on Content Save 》此外掛能夠讓您在開發階段時發布內容,並且不必在切換到生產網址時回去修正內容的靜態 URL。註冊 [url] 短碼,與您網站的基本 URL 設定相關。當您點擊發布或...。
  • Relative Links Fix 》WordPress博客作者有時會從WordPress生成的主頁面複製標題並將其粘貼到文章編輯窗口中。在Firefox中,這會導致絕對URL轉換為相對URL。例如,從http://khaotic...。
  • Simple Relative Urls 》簡單相對路徑外掛程式會更改:, , 主頁(home)和網站網址(siteurl), 腳本引用(src)網址, 樣式連結(link)網址, 圖片引用(src)網址, , 它使用 WordPress 過濾器...。
  • Fuzzy DateTime in french 》這個外掛程式新增了一個功能,可以以法語顯示模糊的日期和時間。例如,"22 octobre 2012 à 14:00" 可以變成 "Il y a 3 heures"、"Hier en début d'après-midi...。

文章
Filter
Apply Filters
Mastodon