Difference between revisions of "Page Class Suffix/ja"

From Joomla! Documentation

(Created page with "ページ クラス サフィックス")
 
(Created page with "テンプレート メニュー管理 用語集 Category:Landing Pages/ja|ランディン...")
 
(4 intermediate revisions by the same user not shown)
Line 1: Line 1:
 
<noinclude><languages /></noinclude>
 
<noinclude><languages /></noinclude>
{{Chunk:Page Class Suffix/en}}
+
{{Chunk:Page Class Suffix/ja}}
  
== Usage ==
+
== 使い方 ==
If you enter a Page Class Suffix with a leading space, a new CSS class will be created. If the parameter does not have a leading space, the CSS classes associated with this Menu Item (for example, "componentheading") will be modified. The first method is normally preferred, since then you don't break any of the existing styling for the page elements, and you only need to add new CSS code for the new styling.
+
先頭に半角スペースを入れてページクラスサフィックスを入力した場合、新しいCSSクラスが作成されます。先頭に半角スペースがない場合は、メニューアイテム(例えば「componentheading」)に関連したCSSクラス名が変更されます。前者の方法がしばしば好まれますが、すでに存在するモジュールのスタイリングを損なわない状態であれば、先頭に半角スペースを付けずにCSSコードを追加するだけで新しいスタイルを作成できます。
  
If you don't use a leading space, you will need to copy all of the styling code for the Menu Item classes and duplicate it for the new CSS class before making your CSS changes.
+
先頭に半角スペースを付けない場合、新しいCSSクラスの作成で変更してしまう前に、メニューアイテムクラスのCSSコードを全てコピーして複製する必要があります。
  
* See [[Using Class Suffixes|the tutorial Using Class Suffixes]] for a detailed example of using Page and Module Class Suffixes.
+
* ページとモジュールのクラスサフィックスについての詳細はSee [[Using Class Suffixes/ja|クラスサフィックスを使用したチュートリアル ]] を参照ください。
You can use The Page Class Suffix parameter to create unique CSS classes that allow you to style one Menu Item differently than others.
+
既存のメニューアイテムと異なるスタイリングを施したい場合は、ユニークなCSS名でページクラスサフィックスパラメータを設定することができます。
* Also see [[Using the Page Class Suffix in Template Code]] for additional applications.
+
* 詳しい使い方は [[Using the Page Class Suffix in Template Code/ja|テンプレートコード内のページクラスのサフィックスを使用する]] を参照ください。
  
[[Category:Templates]]
+
[[Category:Templates/ja|テンプレート]]
[[Category:Menu Management]]
+
[[Category:Menu Management/ja|メニュー管理]]
[[Category:Glossary]]
+
[[Category:Glossary/ja|用語集]]
[[Category:Landing Pages]]
+
[[Category:Landing Pages/ja|ランディングページ]]

Latest revision as of 01:33, 8 March 2014

Other languages:
Bahasa Indonesia • ‎English • ‎Kiswahili • ‎Nederlands • ‎català • ‎español • ‎français • ‎русский • ‎日本語

Page Class Suffix is a parameter in Joomla! content menu items. It is set in a particular menu item: [Edit Menu Item] page, under the "Page Display" tab. A new page class suffix will cause Joomla! to either add a new CSS class or modify the existing CSS class for elements in the assigned to this very menu item page layout.

When Joomla! generates a page, it automatically creates pre-defined CSS classes to allow styling of the page. For example, a page might have the element

<div class="componentheading">

To create a new class, enter the parameter with a leading space. For example, entering a space plus "myNewClass" will create a new CSS class called "myNewClass" and it will be inserted as a class for elements in that Menu Item. In this case the example above will be changed to

<div class="componentheading myNewClass">

To change the name of the existing class, enter in the parameter without a leading space. For example, entering "_mySuffix" (no leading space) will cause the HTML to changed to

<div class="componentheading_mySuffix">

Generally, it is recommended to use a leading space to create a new class. This way, CSS styling for this component that uses the standard class names will continue to work. You can use the new class name to add any desired styling to the component without needing to re-create all of the existing CSS code. Note that, if you create a new class name, make sure it has a unique name and doesn't conflict with any existing class names.

See also: Using Class Suffixes, Using the Page Class Suffix in Template Code


使い方

先頭に半角スペースを入れてページクラスサフィックスを入力した場合、新しいCSSクラスが作成されます。先頭に半角スペースがない場合は、メニューアイテム(例えば「componentheading」)に関連したCSSクラス名が変更されます。前者の方法がしばしば好まれますが、すでに存在するモジュールのスタイリングを損なわない状態であれば、先頭に半角スペースを付けずにCSSコードを追加するだけで新しいスタイルを作成できます。

先頭に半角スペースを付けない場合、新しいCSSクラスの作成で変更してしまう前に、メニューアイテムクラスのCSSコードを全てコピーして複製する必要があります。

既存のメニューアイテムと異なるスタイリングを施したい場合は、ユニークなCSS名でページクラスサフィックスパラメータを設定することができます。