|
[
Permalink
| « Hide
]
Guy Fraser added a comment - 09/Nov/05 12:28 AM
This one is certainly ranked very high on my wishlist!
I was attempting to use the {alias} mechanism to automatically build some adaptavist menus (based on the children of a particular page). Wanted to try to use the alias because we needed to reference the same page from two separate menus. So I created an alias and all worked fine, but then I decided to rename the alias. Now I have two aliases being listed in the menu since the old alias is still active.
Before I get myself into more trouble, wanted to check if there were any ideas on how to get rid of the old alias. I was thinking that I could delete the parent page that the alias points to and start over, but not sure if the link will persist if I use the same page name for the parent. Another solution is to start over with a new parent page using a different name, but would prefer to use the original name. Perhaps we can export and edit the XML file, but that is always something that should be done as a last resort. Any suggestions? It seems as though the plugin documentation should warn of this condition. Someone may accidentally create an alias with a name that is harmful in some way and the page name can't be removed. Thanks, Steve Hi Steve,
It should be safe to manually delete the Alias page after removing the {alias:Old Page} macro from your aliased page. This request is basically to make it more automatic when removing an {alias} macro to remove the alias page also. David,
Thanks for getting back so quickly. I apologize if I'm missing something that should be obvious, but how do I delete an alias page that doesn't seem to exist? Normally you need to view the page to have the option to remove it, but when attempting to view an alias page you get sent to the page that the alias points to. Thanks, Steve Ah - you have to add "?redirect=false" to the URL of the page manually. That way it will display the page without redirecting and you can then delete it via the Edit tab.
Yes, that was the trick I was looking for.
Thanks, Steve |
||||||||||||||||||||||||||||||||||||||||||