Translator Reviews ( English → Chinese (Traditional) )

Rating: 50 / 1 Review / 25 Aug 2010 at 19:04

English

So the CSS is very simple, but we need to define which class the page should load with, depending on the section of the site we’re in. This is really simple using MODx Revo, you can create a Template Variable for every template, set the type as ‘image’ so that admins can select images from the file browser and you can then define your <body> tag in your templates like
@CODE
You don’t want to have to do this to EVERY page on your site, that would be a painful chore (and your editors might forget) so, there’s a few options, the simplest would be to use a default value for the template variable - we uses @INHERIT for the default value of the TV, meaning that we can define the image just once at the top level.

Chinese (Traditional)

因此CSS非常簡單,但我們需要根據所在的網站位置來定義加載的頁面類型。通過使用MODx Revo會使這變得非常簡單,您可以為每個模板創建一個模板變量,將類型設置為'圖像',使管理員可以從文件瀏覽器中選擇圖像,並在您喜歡的模板裡定義您的<body>標籤,譬如
@CODE
您一定不希望在每個網頁上都這樣做,那可是件苦差事(而且您的編輯可能會忘記)。因此這裡有幾個選項,最簡單的是使用一個模板變量的默認值- 我們使用@INHERIT 來定義電視的默認值,這將意味著我們可以一次性地在最高水平上定義圖像。

Reviews ( 1 )

jasmine_66 rated this translation result as ★★★ 17 Sep 2013 at 14:39

請以“在最高水平上定義圖像”代替"在最高水平上定義圖像"

Add Comment
Additional info: No need to translate the following words: MODx Revo, CSS, @CODE, @INHERIT, body. Thanks!