-
- 5,888 Posts
make sure to have the request-property uri_override=1 before saving
if you are talking about MIGXdb you can add a hidden-field uri_override and set its default-value to 1
does this help?
That plugin checks for MODE_NEW.. ie, creating a new resource. From what you said it sounds like you're trying to get it to update the alias after the resource was already created?
-
- 24,544 Posts
Quote from: lx at Apr 16, 2013, 11:32 AMThanks Bob, but unfortunately still it doesn't work.
It seems like the alias is being checked for duplicated even before OnBeforeFormSave event occurs.
Check the allow_duplicate_alias System Setting.
-
- 221 Posts
Good morning,
@Bob: There is no allow_duplicate_alias System Setting. The only that I have is: global_duplicate_uri_check set with NO value.
@Bruno: Adding a hidden-field uri_override and set its default-value to 1, didn't help eighter.
I've noticed that the problem with checking for a duplicate url is crating problems not only for me. Do You thing that it could be solved in the next Modx update - so when there is a duplicate alias - it will automatically ad number at the end - like it was in MODX Evolution.
If someone doesn't like it - than can manualy change it or crate a custom plugin for any specific needs.
-
- 24,544 Posts
Sorry, allow_duplicate_alias is there in 2.2.6. I haven't had time to upgrade.