5

After publishing some entries, I've changed the section setting "Entry URL Format" from news/{slug} to news/{id} but I had to re-save every entry to reflect the change. Is there a better and fast way to update all entries URIs after changing the entry URL format?

  • Normally a background-task should take care of it, as soon as you save the section setting. – Victor In Jun 22 '14 at 19:53
  • @VictorIn unfortunately, that's not the case here. – dralshehri Jun 22 '14 at 20:02
  • 1
    Odd, try sending a support-request from your dashboard including the runtime folder to P&T. It looks like a bug to me. – Victor In Jun 22 '14 at 20:12
  • Does clearing the caches help? – Simon Kuran Jun 22 '14 at 20:16
  • 1
    @BenCroker A support request was sent to Pixel&Tonic and I think they're working on it. I'll update this question once I get a solution from them. – dralshehri Jun 26 '14 at 21:15
5

The entries won't immediately get updated, as it could take a little while to go through all of them, but you should see a little progress bar in your CP header immediately after updating your section's settings, and if you click on it, it will give you more details -- saying that a "Resave Elements" background task is running. Once that has completed, your entries will have new URLs.

In my case, it was not working as indented with localised entries but thankfully that was fixed on build 2562.

1

For anyone wondering what's going on with a background update, look at the database, there's a table called tasks, and each row has a steps counter to tell you how many records are left to update. You can refresh the table to see how the updates are progressing.

Your Answer

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

Not the answer you're looking for? Browse other questions tagged or ask your own question.