Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
I have a site with multilingual settings (EN& IT)
When I added a path and choose the two language the index done relative to current default language only
for example if the default language is English I see the indexed content in sbp_path table for both English & Italy are English page
Any idea how can I fix this issue?
Comments
Comment #1
melsawy CreditAttribution: melsawy commentedComment #2
jhodgdonThanks for the report! I'll need to look into this. I may not have considered multilingual in the Paths module properly, so the module might need to have a new Language field when you set up paths to index.
Comment #3
jhodgdonSorry for the very long delay in looking into this...
I tested this today as follows:
a) I have a site with the core Content Translation module installed, as well as Views, and English and Spanish languages installed.
b) I made the Basic Page content type translatable, and created content: one translated page.
c) I set up a multilingual page as follows: I created a view that shows the Pages with teasers. I used a contextual filter to filter the content language, using the following PHP code to set the default value if the argument is not present:
So, now if I go to the URL (mysite)/multilingual-test I see the English page teaser, and (mysite)/es/multilingual-test, I see the Spanish page teaser.
d) In Search by Page paths, I set up to index this new page, with the following entries:
Page to index: multilingual-test
Languages: English and Spanish checked
e) I ran cron to index the page.
So... When I look in the database, in table sbp_paths -- the en entry for my view page has the English content, and the es entry has the Spanish content.
So I am not able to reproduce this issue.... Maybe I did something different from you .... some questions:
- What is generating your page in Italian and English?
- How did you enter the page into the Search by Page Paths module?
- Have you verified that if you go to (your site URL)/en/(the path you want to index) you see your page in English, and (your site URL)/it/(the path you want to index) you see it in Italian?
Comment #4
vuil