4

I have a site in English but it also has a few nodes in Arabic, a few in Aramaic, a few in Hebrew, etc.

Is there an easy comfortable UI way to move each group of nodes for a language section? To better explain, here is how the URL should look in relation to each section:

www.example.com/ar0/This-is-a-node-in-arabic0

www.example.com/ar1/This-is-a-node-in-aramaic0

www.example.com/he/This-is-a-node-in-hebrew0

Let me just clarify, I am not talking about a sub-site, All nodes are exactly on the same English-native site.

it is important for me for any case to have a solution that doesn't include Views at all since these are simple nodes.

  • Hello Krishna, I don't want the nodes as files I just want them to have a "folder" (sorry if it is not the right word, I'll update the question) in the url. – user16289 Feb 4 '16 at 8:41
  • are your different languages different content types? – No Sssweat Feb 6 '16 at 12:03
  • Not necessarily. – user16289 Feb 8 '16 at 14:17
3

You can do this only using the Pathauto module.

First, Re-create your URL patterns in the following way, via admin/config/search/path/patterns:

[node:language]/[node:title]

enter image description here

Second, go to admin/config/search/path/delete_bulk and delete all the aliases

enter image description here

Third, go to generate the new aliases at admin/config/search/path/update_bulk

enter image description here

| improve this answer | |
  • 1
    learning English while teaching Drupal ... "ja, ja" (oeps, that's a Flemish expression, not allowed around here I guess) ... Anyway: merci (oeps, that's not English either, right?). Oh well ... – Pierre.Vriens Feb 8 '16 at 18:09
  • Hi Adrian, right now, most of my nodes (from whatever language) are marked as "Language neutral". You might know a way to change bulk-change a group of nodes from language neutral to the language they should be in so I could try what you suggested? The only way I know is to change each one manually in the program or SQL. – user16289 Feb 9 '16 at 21:06
  • 1
    @benos I can suggest two ways. 1-. Install Views Bulk Operations (VBO) 2-. Make the change directly in the DB with SQL. There is a 3, but change one by one is very hard. – Adrian Cid Almaguer Feb 9 '16 at 21:29
4
+50

From your comments I understand that you want to display URLs based on languages.You can achieve that by simply editing each node and edit URL alias (under URL path settings) for each node.

If you have bunch of nodes and want to change the all URL aliases at once, follow the steps

1) Install and Enable Pathauto and Views Bulk Operations (VBO) modules.

2) Define Path alias patterns in URL alias settings (admin/config/search/path/patterns)

3) Create a view with Views Bulk Operation field and select "Update node alias" option.

From the View output you can generate Auto paths for selected nodes in one click action.

| improve this answer | |
  • @benos : I think you should also integrate your prior 2 comments in your actual question. Just a suggestion ... to make the question more easy to understand, ok? – Pierre.Vriens Feb 8 '16 at 12:06
1

I suggest to install rules and views bulk operation. Make a component in order to change language of your selected nodes. (you must configure your component)

And then make a view with vbo checkbox and run your component for all selected node in a views result.

| improve this answer | |

Your Answer

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