Dashboard menu change permalink

Permalink
Hi guys!

At the moment I am doing a project where I need to have a few tools integrated in the dashboard (which do not have to do anything with the website itself). For example a tool where my client can create invoices for his clients.

So what I tried to do is dividing the dashboard in seperate sections. Where one section includes all of the functions which have to do with the website itself. Another section have to do with the invoice system and again another section have to do with another tool and section.

My problem here is that I've created a new file (map) called "Website" and I've moved all the dashboard files into this map (screenshot). Now when I click on one of the items (for instance: sitemap) in the dashboard menu it should direct me to
http://domain.com/dashboard/website/sitemap/full
. But is still directs me to
http://domain.com/dashboard/sitemap/full
. However when I hover over the item with my mouse, my browsers says - when I click on it - I will get directed to the right url (with the website part in it).

So is there anyone of you who knows how I have to change the permalink of dashboard menu items?

- Stef

1 Attachment

StefSmeers
 
MrKDilkington replied on at Permalink Reply
MrKDilkington
Hi StefSmeers,

I believe that changing dashboard single page paths will break the links and their function.
StefSmeers replied on at Permalink Reply
StefSmeers
I've tested the functions, and they still work fine.
But indeed, the links do break a little bit. Any recommendations to solve this problem?

- Stef
MrKDilkington replied on at Permalink Reply
MrKDilkington
I am not sure about this, but I wonder if you could refresh the pages or update their paths.
Dashboard > Pages & Themes > Single Pages

Just to clarify, when you moved the single pages, did you also move their controllers and update the controller namespacing?

If you try this, I would recommend doing it on a backed up install or a disposable install used for experimenting.
StefSmeers replied on at Permalink Reply
StefSmeers
No, I didnt update any of these. The files are still where they belong and they are getting loaded from the map they are in default. They just get approached from a different URL.
If that makes any sense? :)
And yes, I am just testing locally. ;)

- Stef
StefSmeers replied on at Permalink Best Answer Reply
StefSmeers
After all it was pretty easy to do.
Just add the "website" folder (obvously it is a page first) via the sitemap, drag all the dashboard folders under the website page (and now it is a folder) through the sitemap.

Then open Netbeans, or your preferred editor and replace "/dashboard" with "/dashboard/website" everywhere in the controllers and single_pages folder, except a few for a few folders. But if I have to explain which you don't and which you do, I would get too much into detail here.

And I didn't even had to change any namespaces, it is done in like 15 minutes if you know what to do. :)

Thanks for trying to help though MrKDilkington!
MrKDilkington replied on at Permalink Reply
MrKDilkington
Good to hear that you solved your problem and it was a quick process.

When you refer to "maps", what are you describing? I am not familiar with it.
StefSmeers replied on at Permalink Reply
StefSmeers
Edited my message, I made it a bit more clear. And isn't a map the same as a folder? (My native language isn't English, so I make mistakes).

- Stef
MrKDilkington replied on at Permalink Reply
MrKDilkington
Now that I know you mean folder, it makes sense.

Your English is actually very good.