Allow Contact Profile as an Entry in Site Menu
Now that members can see and print their membership cards from their profile, we want to give them a less circuitous way to get there, by putting the profile in the dropdown menu.
In the meantime, a workaround is to create a dummy page that redirects to the profile page. This is done by creating a page with text (ours says "One moment, please" to display something sensible while redirecting) and inserting the following snippet in the text box with the <S> tool:
<script type="text/javascript">
if (!top.adminpanel) {
try { window.location.href = 'https://tyc.org/Sys/Profile' ; } catch (e) {} }
</script>
The "if (!top.adminpanel)" prevents the redirection from happening when you go back to the page in Admin mode.
We also use this workaround to implement a link redirecting to pages outside our website, when we want to restrict who can use the link. We just put the restriction on the dummy page, and nonmembers get an error message.
-
[Deleted User] commented
This can be generalised to allow any link to be put into the main menu system. This would help to create a more general menu system that is not restricted to just pages in menu.
In particular this would allow two menu items to point in the same page.
The auxiliary menu gadget can then be eliminated if you can feature various menu systems by allowing menus to be created with various options including regular pages and off site links. This by the way is the way WordPress does menus and it works very flexibly.