2

I'm a Vietnamese. I'm a newbie for ee2. When I enter "Nước ngập mái nhà sau cơn bão" in Title field, EE2 automatically generates "nc-ngp-mai-nha-sau-cn-baeo" in URL Title. That isn't correct. I need "nuoc-ngap-mai-nha-sau-con-bao" in my URL Title. I created my database with "utf8-general-ci" collation. May somebody help me?. Thanks.

2

As far as I'm aware no. Because EE will strip out the non-alpha numeric characters, not replace them with their similar counterparts. It's not relevant to the Database.

So either you have to manually edit the url_title field each time or look at other options. But in looking elsewhere for solutions may give you an even better end result - of being able to use your language correctly in URLs (better for your users and better for SEO).

I touch briefly on it here, but you can utilise a custom field for the url but you can't then use the native and automatic method of channel:entries, so will need to use search:custom_url="nước-ngập-mái-nhà-sau-cơn-bão" dynamic="no" parameters in the channel entries tag. Your URL would then look something like this:

www.mysite.com/content/nước-ngập-mái-nhà-sau-cơn-bão

With the 'content' group, index.php template catching this URL.

Alternatively (although I've not had the chance to use it), the Publisher add-on allows for multi-language URLs, so this should simplify the whole process if your budget can stretch.

4
  • What addon do you use for tab SEO in this picture (peteralewis.com/images/uploads/blog/Fields_side-by-side_3.png). Thanks.
    – Quang Teo
    Sep 20 '13 at 10:19
  • I don't - they're custom fields meta-title-en, meta-title-ar (for Arabic), etc. I've customised the publish layout to put them side by side and set to RTL. In the EE templates the fields are referred to dynamically using a global variable: {meta-title-{language}} - but setting up for multi-language is a whole other question! If you don't have multi-language it's even easier. There are other add-on options: devot-ee.com/add-ons/surgeeo, devot-ee.com/add-ons/seolite, devot-ee.com/add-ons/nsm-better-meta to name a few. Sep 20 '13 at 10:29
  • I often create 3 channel fields in each my channel for 3 tag SEO (title, keywords, descriptions). I need a addon that create 3 field (SEO) for all my channels. Thanks.
    – Quang Teo
    Sep 20 '13 at 10:32
  • You could have a single field group for all your channels, therefore only having 3 meta fields that are shared across all channels. You then hide and show the other fields as relevant to the channel as needed. Albeit the labels and descriptions would need to be worded correctly for the generic fields. Sep 20 '13 at 10:36

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.