Mirza

Support for Multi-Language field in Module: Import Pages from CSV file

Recommended Posts

Support for Multi-Language field in Module: Import Pages from CSV file 

Is there a support for multi language field import option from csv?

If yes, what will be the structure for csv file data.

 

Case scenario:

I have title field which is multi-language field(English & Arabic).

business|بزنيس
club|كلوب
deluxe|ديلوكس
duplex|دوبلكس

 

Share this post


Link to post
Share on other sites

As far as I know, there is no multilanguage support. As workaround, if I'm not mistaken you, can switch user language in admin and then make import of your pages. They will be imported into the selected language. 

Share this post


Link to post
Share on other sites
3 hours ago, Zeka said:

As far as I know, there is no multilanguage support. As workaround, if I'm not mistaken you, can switch user language in admin and then make import of your pages. They will be imported into the selected language. 

Thanks for the response, But that didn't work, page name should be in english.

Trying for another solution.

Edited by Mirza

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now


  • Recently Browsing   0 members

    No registered users viewing this page.

  • Similar Content

    • By Mirza
      Hi All,
      Arabic content changes not available in page getChanges method
      While editing the page from admin panel in the multi-language field, added a hook to save the changes made to the page.
       
      $this->pages->addHookAfter('saveReady', $this, 'hookUpdateLog');  
      public function hookUpdateLog(HookEvent $event) { $page = $event->arguments[0]; if(in_array($page->template->name, $this->templateList)) { $this->logFieldChanges($page); } } public function logFieldChanges($page) { $changes = $page->getChanges(); //This changes does not contain the field of arabic changes. }
      Please let me know, If I am approaching in a right way.

    • By workdreamer
      I need a way when i am iterating the fields in some page, to check if the field is a multi lang value or not.
       
      $data = []; foreach ($page->template->fieldgroup as $field) { if (field support multi value) { continue; } $data[] = $field; } return $data;  
      How can i check that?
      Thank you
    • By Mirza
      Hi All,
      I have a processwire setup for multi language which is english and arabic.
      I have a template called hotel which has title field act as hotel name for both EN & AR language.
      Since a week ago I was getting the error in 
       
      Since we have key  in pages table which states as below
      So the field name1056 should store the Arabic value of the title field.
      But its not storing the arabic value, since we have CHARACTER SET ascii for the field `name1056` as below
      Can anyone explain me 
      * On what basis character set is defined?
      * Is there any specific reason for setting the ASCII character set?
       
      Thanks in advance for the help.
    • By depone
      Hey all,
      I am trying to prevent the display of descriptions for images in default language while user browses site with alternative language.
      In a gallery my goal would be to display the same images, and hide the description that I am using as captions. As a hack I could decide based on tags, but this causes extra workload for the editors of the site, and seems less robust than a built in query.
      Any hints are highly appreciated.
    • By Doc
      Hi,
      I have a menu at the top of my homepage (~15 links). I'd like to translate it.
      Example :
      <a href="#" class="menu-item">collection</a>
      <a href="#" class="menu-item">products</a>
      <a href="#" class="menu-item">support</a>
      [...]
      What's your prefered method to translate that ? I already have my configuration ready for different languages according to the url : /en -> display english, /fr -> french, ...
      Do you add one more field per link on the homepage or do you add a single "menu" field ?
      With one field / link you add content by filling your textlanguage with : "collection" for example and then display it on the homepage through $page->link1
      With one field / menu you add the whole html stuff I guess, with the CKEditor for example on a textarealanguage field :
      <a href="#" class="menu-item">collection</a>
      <a href="#" class="menu-item">products</a>
      <a href="#" class="menu-item">support</a>
      and then display it on the homepage the same way than with one field / link.
      Which method would you use ?
      Let's vote
      Thanks