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. But is still directs me to . 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
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
http://domain.com/dashboard/sitemap/full
So is there anyone of you who knows how I have to change the permalink of dashboard menu items?
- Stef
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
But indeed, the links do break a little bit. Any recommendations to solve this problem?
- Stef
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.
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.
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
If that makes any sense? :)
And yes, I am just testing locally. ;)
- Stef
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!
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!
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.
When you refer to "maps", what are you describing? I am not familiar with it.
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
- Stef
Now that I know you mean folder, it makes sense.
Your English is actually very good.
Your English is actually very good.
I believe that changing dashboard single page paths will break the links and their function.