Karl_T Posted November 30, 2015 Share Posted November 30, 2015 In my building site, there is a news section containing some news item generated from cms. I tried using page for each item and simply use repeater to handle it. However, both do not meet my requirement. I want the new item always on top for the easy editing, so I prefer page for this task as new item in repeater always at the bottom. However, when I add new item as a new page, a name is needed to generate the url for that page. I am using the multi language module. Some languages cannot generate the url automatically after entering the title of particular language. This confuses the editor and makes trouble. Actually, the url part is redundant in my case. Can I bypass it and directly go to editing new item? Or, what is the best solution for it? Thanks in advance. Link to comment Share on other sites More sharing options...
adrian Posted December 1, 2015 Share Posted December 1, 2015 Hi @Karl_T I think this screenshot should get you going - the "Name Format for Children" option allows skipping the manual naming of the page: 4 Link to comment Share on other sites More sharing options...
Karl_T Posted December 1, 2015 Author Share Posted December 1, 2015 Hi adrian, Thanks for your help. The skip works! However, the url generated from non English letter is still a problem. I read this post https://processwire.com/talk/topic/3000-non-alphabetic-page-name/ and know that non English letter title cannot auto generate the url. Is there anyway to keep using the PageTitleLanguage field while all url generated according to the default language (in my case English)? Right now, I can only think of one solution which is using PageTitle field and then add additional title fields for other language referenced from this example https://www.youtube.com/watch?v=eq-9GQCT0lw. But I think PageTitleLanguage looks better. Any better practice for this? Perhaps I should ask this in a new post. Thanks! Link to comment Share on other sites More sharing options...
adrian Posted December 1, 2015 Share Posted December 1, 2015 Glad that helped, but I think I will defer to one of the multi-language experts for the other part of your question - it's not something I use, so I am not very familiar with it. Link to comment Share on other sites More sharing options...
hheyne Posted December 20, 2015 Share Posted December 20, 2015 Maybe a hook which changes the names to the individual titles of the new generated page. Just take a closer look to the HelloWorld.module in the modules directory. I have a page with 6 languages and ran into the same stuff. I was short in time and the idea came just after the launch. Maybe this is an idea which could let to the right solution. 1 Link to comment Share on other sites More sharing options...
adrian Posted January 19, 2016 Share Posted January 19, 2016 I know this is a little old, but perhaps this new module might help with the multilanguage issue: http://modules.processwire.com/modules/process-setup-page-name/ Have a read of this message in the support thread: https://processwire.com/talk/topic/8576-name-format-children/?p=110656 - maybe posting a followup there might also help to motivate kixe (the module author) to work on the multi-language stuff. 1 Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now