I have created several custom posts and added them to the menu sidebar, however since it is for a client I would like to make it a little more neat and easier to navigate by dividing those custom posts by their "category" (not in wordpress terms).
What I need is to create menu items that have as submenu several custom posts. How can I do that?
as an exemple, now the menu looks like this:
> dashboard
> post
> page
> media
> custom post #1
> custom post #2
> custom post #4
> custom post #5
> settings
... etc.
what I want to achieve is instead this:
> dashboard
> post
> page
> media
> boats
> custom post #1
> custom post #2
> cars
> custom post #3
> custom post #4
> bikes
> custom post #5
> settings
... etc.
Can you show me how to do it? The plugins I tried only allowed me to add separators. Plus I like to write, learn and know my own code.
You need to:
create a plugin to do it
use the functions add_menu_page() and add_submenu_page() to create the menus
point the submenus to specific post edit screens
use some jQuery to manipulate this non-standard way of menu/submenu items
Related
I am beginner in OpenCart and customizing a theme, I want to change the target link of site Menu, for example If a blow Image is my menu:
I want to change target link of Bedroom menu to #cmsblock-22, I search in CMS panel of OpenCart but nothing found, could any one help me to change this link, Thanks.
Assuming that "Living Room", "Dinning Room" & "Bedroom" all are categories which listed on menu as shown in image.
You can change link of this by simply going to admin > catalog > category > edit category (which link you want to change) > click on data tab > scroll down to SEO URL input field and fill the input with "#cmsblock-22".
Above will work only if you have seo url enabled in admin settings. So, please make sure that you have enabled this setting.
If not,
Go to admin > system > setting > click edit > click server tab > check yes in front of Use SEO URLs.
You can simply change it from admin panel
In admin panel, go to Catalog->Category
Find for Bedroom and edit it.
Hopes this might help you
I'm working with Request Tracker and I would like to add a button when you visualize an open ticket that triggers a POST call to an external Java Server and it returns a PDF file with a report about the ticket. What is the best workaround?
There are many different ways to add this sort of customization. The easiest might be to write some Javascript to add the button by looking at the divs and ids RT writes to the ticket display page. You can drop the Javascript right in the styling box on the Theme Editor page.
If you can request the PDF via GET, you can just add a link in the Links section. Or, depending on what you're trying to do, you can also do dynamic things with custom field values as described in the External Custom Field docs.
I'm creating a custom theme for an Odoo online shop. I need to have a main menu, which would be the one that comes by default with the website module, and a secondary menu that I want to display on all pages, somewhere below the main menu.
I created the secondary menu in the backend, this what it looks like :
The "Top Menu" is the default menu, it shows properly in the top right of the website's pages. I just can't figure out how to show the "Navigation" menu in my templates.
Copying this piece of code from the website module anywhere in my templates shows the "Top Menu" :
<t t-foreach="website.menu_id.child_id" t-as="submenu">
<t t-call="website.submenu"/>
</t>
So I guess this "Top Menu" is somehow associated to the website module right ? So do I need to "associate" the "Navigation" menu to my theme ? How would I do that ?
Or did I just do everything wrong ? I'm used to Wordpress' wp_nav_menu function with wich you can simply get a menu by its ID but maybe it's not the way to go with Odoo ? I'm having a hard time finding help on this matter in the doc or in forums.
I'm familiar with SharePoint but would like some guidance on developing a custom page.
I have 1 list and have created 3 different views.
On my Page, I have added a webpart to show the list.
I'd like to be able to add some form items - possibly radio buttons/ a picker/ or just text links at the top that would allow the user to switch views on the list below.
I'd like to add some other information and make the experience more intuitive for the user.
In short, is there a way to add a list web part and some options to choose the view of that list in another section of the page?
Sure, just do something like this
var dview = MyList.Views["YourViewTitle"];
dview.DefaultView = true;
dview.Update();
MyList.Update();
Each view has its own URL so you just need to use some HTML and JavaScript. When a box is checked or a button is clicked then you can load the URL of the view.
I added a new page in the main menu, e.g. Products. Now I want to add a subpage e.g. Sub Products below a Products page. I tried all possible options in the dashboard but it didn't work for me. Any ideas how to handle this?
Thanks.
here is a quick solution for this
Go to your dash board -->Gallery -->Modules
search for Hierarchical menu and install it
after installing then go to Configuration -->Features and enable it.
Go go to Navigation .give position like 2 for "Products" and 2.1 for "Sub products".
you will see Sub products appear under Products page.
As of Orchard CMS 1.5 this is supported by the core navigation module. Now you can simply drag and drop menu items under one another in the Admin -> Navigation view. You can then control level rendering under the widget settings for the menu by setting the "Start level" and "Levels to display" properties.
See release notes for further details.
The navigation documentation doesn't seem to be up to date though :(
Take a look at: http://orchard.codeplex.com/Thread/View.aspx?ThreadId=242327
The module to support this (along with many other modules) is available in Orchard's module gallery.