am-impact / amnav

Navigation plugin for Craft
168 stars 20 forks source link

Ability to update node URLs after adding them. #24

Closed dgrebb closed 9 years ago

dgrebb commented 9 years ago

I built a nav and it worked great, then I changed the URI structure for my sections, and their entries now have different URIs. It would be fantastic if we could update the nav based on how an entry builds its URI after the fact.

Another side effect of this, double clicking a node, the entry shows the correct (updated) URI. Saving that node, the URL is not updated within the url column in craft_amnav_nodes.

Please reach out with any questions. The latest update and new UI are fantastic!

dgrebb commented 9 years ago

If anyone else has this problem, a simple SQL query can be run to update your URLs:

update craft_amnav_nodes set url = replace(url, '{siteUrl}path/to/content', '{siteUrl}content/to/path')

hubertprein commented 9 years ago

@dgrebb Thanks for bringing this to my attention. I'll get back to this with a proper fix.

P.S. It's nice to hear that the latest (UI) update has been well received.

hubertprein commented 9 years ago

Fixed in the latest release.