Rainlab translate | Page Meta Title and Meta description

Hi,

I’ve started October CMS development and I have question regarding multilanguage possiblities. How can I translate meta page title and meta description. My default language is EN and for example second language is DE (german)

In my layout file I use twig, so page titles are dynamically changed based on page configuration data.

<title>{{ this.page.meta_title }} - October CMS</title>
<meta name="description" content="{{ this.page.meta_description }}">

How can I translate page title & to be multilingual? I want title & meta to be in correct language based on users selection.

Is there any solution for this?

I would appreciate any help.

Are you using the Translate plugin or your own custom integration?

Hi,

Yes, I’m using Translate plugin.

So translating those particular parts of the code is built in CMS API.

If it’s a CMS page, you should be able to translate everything via the translate button for that particular page. Screenshot for reference:

If it’s using the Pages plugin, that content is translated here:

Note the “EN” to the right of each translatable field

2 Likes

As it seems "CMS page"option works well for me. Thanks a lot.

1 Like