- AdvSearch
- cookieJar
- getYoutube
- aliasid
- AddHeaderfiles
- AjaxUpload
- amazonSES mailing list
- Analytics
- Archivist
- Articles
- Babel
- BannerX
- BannerY
- Batcher
- bdListings
- boilerX
- BreadCrumb
- Breadcrumbs
- BxrExtra
- cachebuster
- CamperManagement
- Church Events Calendar
- Cliche
- ClientConfig
- CMPGenerator
- Collections
- ContextRouter
- CookieList
- CronManager
- cssSweet
- CustomUrls
- Databackup
- Discuss
- DitsNews
- Eletters
- EventManager
- eventsCalendar2
- EventsX
- ExerPlan
- fastField
- FileDownload R
- FileLister
- FirstChildRedirect
- Flexibility
- ForcedPasswdChange
- FormIt
- FormIt2db
- FormitFastPack
- FormSave
- FoundationX
- FX2themebase
- Gallery
- GatewayManager
- gCal
- getDate
- getFeed
- getPage
- getRelated
- getResourceField
- getResources
- getUrlParam
- getRTImages
- getVimeo
- GoogleSiteMap
- GridClassKey
- HandyMan
- Hits
- HitsPage
- HybridAuth
- If
- Image+
- imageHERE
- ImageStyles
- ImportX
- LexRating
- Lingua
- Login
- Loginza
- mChimpX
- MetaX
- mhPayPal
-
MIGX
- MIGX.Backend-Usage
- MIGX.Data-Entry
- MIGX.Frontend-Usage
-
MIGX.Tutorials
- MIGX.Fancybox-images with seperate placeholders in Richtext-Content
- MIGX.Simple opening hours table
- Using resource-specific mediasource and multifile-uploader with MIGX
- MIGX.Varying layout-boxes
- Creating Selectable and Sortable lists for MIGX
- MIGX.sortable resourcelist
- Using resource-specific mediasource and multifile-uploader with MIGX
- MIGX.Using Grid Inline Editing
- MIGXdb
- MinifyX
- miniShop
- modActiveDirectory
- ModDef
- modExtra
- modMobile
- modSwiftMailer
- mxCalendar
- mxExtendedMenu
- mxFormBuilder
- mxHasTvs
- MoneyBird
- ObfuscateEmail-Revo
- PackMan
- PageBreaker
- Peoples
- PHP Tidy (plugin)
- phpThumbOf
- Polls
- POI Manager
- QuickCrumbs
- Quip
- Rampart
- Redirector
- renderResources
- ResourceWatcher
- RezImgCrop
- Rowboat
- sekFancyBox
- sekFormTools
- sekSiteTools
-
sekUserGalleries
- sekUserGalleries.album.items.helper
- sekUserGalleries.album.items.manage
- sekUserGalleries.album.manage
- sekUserGalleries.album.view
- sekUserGalleries.browse.galleries
- sekUserGalleries.directory
- sekUserGalleries.image.information
- sekUserGalleries.search
- sekUserGalleries.users.gallery.manage
- sekUserGalleries.users.gallery.view
- selfLink
- Shopkeeper
- siblingNav
- SimpleSearch
- SiteEditor
- sitemapFriend
- Slideshow Manager
- sLink
- SmartOptimizer
- SmartTag
- StatCache
- SocialLogin
- SocialSuite
- spieFeed
- StaticSaver
- StoreLocator
- SubscribeMe
- SyntaxChecker
- Tagger
- TaggingAtoZ
- tagLister
- TinyMCE
- Upload to Users CMP
- VersionX
- virtuNewsletter
- VisionCart
- Wayfinder
- xFPC
Babel.BabelLinks
This is a user-contributed Extra. If you find issues or would like more info or help, please contact the author.
BabelLinks is a snippet which displays links to other languages (contexts) in the frontend.
Available Parameters
Name
|
Description
|
Default
|
---|---|---|
resourceId | (optional) ID of resource of which links to translations should be displayed. | current resource's ID |
tpl | (optional) Chunk to display a language link. | babelLink |
activeCls | (optional) CSS class name for the current active language. | active |
showUnpublished | (optional) Flag whether to show unpublished translations. | 0
|
BabelLink Chunk
If the &tpl parameter is not set the default chunk will be used with the follwoing code:
<li><a href="[[+url]]" class="[[+cultureKey]][[+active:notempty=` [[+active]]`]]">[[%babel.language_[[+cultureKey]]? &topic=`default` &namespace=`babel`]]</a></li>
When using your own chunk to display the language links you can use the following placeholders:
Name | Description
|
---|---|
url | Url to linked translation (or site_url of specific language if there is no translated resource available). |
cultureKey | Culture key of translation (e.g en, de, fr oder es). You may use the babel lexicon to display the language's name: [[%babel.language_[[+cultureKey]]? &topic=`default` &namespace=`babel`]] |
active | If link points to a resource of the current active language (context) this placeholder is set to the active CSS class name specified by the &activeCls parameter (default=active). Otherwise this placeholder is empty. |
id
|
ID of tranlated resource. If no translation is available this placeholder is empty (''). |
Example
<ul> [[BabelLinks]] </ul>
See also
Offical Babel project website: Multilingual websites with MODXSuggest an edit to this page on GitHub (Requires GitHub account. Opens a new window/tab).