Jump to content

Page or Repeater?


Karl_T
 Share

Recommended Posts

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

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. :P

Thanks!

Link to comment
Share on other sites

  • 3 weeks later...

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.

  • Like 1
Link to comment
Share on other sites

  • 5 weeks later...

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.

  • Like 1
Link to comment
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
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...