Alternate-Language Custom Category Fields in eeSiteKit
eeSiteKit anticipates the use of ExpressionEngine’s categories to manage and link content. If your site will have alternate languages, you will need to add some custom category fields so that eeSiteKit can correctly link to that alternate language content.
Once you have set up your Category Groups for the host-language, navigate to the Category Management area of the control panel.
Site Name › Admin › Channel Administration › Category Groups
You will be creating two Custom Category Fields for each Alternate-Language in your site. In this example we’re creating fields for “German” categories. Pay close attention to the pattern used in the Field Labels, it must be language_cat_name or your site’s navigation will not work correctly for this alternate-language.
Category Name Field
- Click on “Manage Custom Fields” for the Category Group you are editing
- Click on the green button (top-right-hand corner) “Create a New Custom Field”
- Field Name: german_cat_name
- Field Label: German Category Name
- Field Type: Text Input (Maxlength 128)
- Default Text Formatting for This Field: None (Hide Formatting Menu)
- Text Direction: For most languages this will be “Left to Right”
- Is this a required field?: Yes
- Field Display Order: This is up to you.
Category URL Title
- Click on “Manage Custom Fields” for the Category Group you are editing
- Click on the green button (top-right-hand corner) “Create a New Custom Field”
- Field Name: german_cat_url_title
- Field Label: German Category URL Title
- Field Type: Text Input (Maxlength 128)
- Default Text Formatting for This Field: None (Hide Formatting Menu)
- Text Direction: For most languages this will be “Left to Right”
- Is this a required field?: Yes
- Field Display Order: This is up to you.
You will want to repeat this for each Alternate-Language in your site and in each Category Group where there will be multilingual content.
