How can a hierarchical menu be made dynamically in PyroCMS? - php

I am using PyroCMS Version 1.1.0. It has the navigation module that is used to show up menus in front end. But I couldn't find the way out to generate hierarchical menus like I am working on category module. And in this, I have to generate a menu Category under which I have to show up multi-level menus for categories and subcategories.
Please help me with this.

Each link can have a "parent". Just go to the Navigation page and do it.
This does not support Page Children and the interface is not as awesome as it could be, but those changes are coming in 1.2.

Related

Publish a menu item but dont show it

I have a situation where we have a "user menu" on the top of the page.This menu is shown on every page with a module.Now in order to set up breadcrumbs properly I need to have a menu item which is published but not visible to any type of user whether guest or registered..
Is it possible in Joomla to have a menu item published and hidden yet accesible via URL??
You will have to write a different module which had most of the functionality of your custom module. In the new module you can change the code in a way so that you dont show the required menu.
I think you should create a menu, setup user groups, view level. Create a menu item, and try to access via menu alis - link.
Good luck
Yes, Menu's are independent of the modules that display them, it's possible to create a menu and not create a menu module, how, depends on the version of Joomla you are using.
That's why there are so hits when you Google — "Joomla Hidden Menu" There is even an article on Joomla Doc's on "Menus" that discusses hidden menus briefly.
So, the normal approach is to create a new Menu with a name like "Hidden" or "Shortcuts" and have the menu items created in that menu, then don't assign a menu module for it.

I want to sort my posts in my wordpress theme with two categories

I am creating a wordpress theme, and as a beginner, I am having difficulties. The website will be a products portfolio, but not e commerce. It has a main menu of categories, and another menu on the sidebar with categories. The posts will be sorted by two categories. First of all, by the main category in the header, and then, those posts will be sorted by the other categories in the sidebar. I have no idea how to do this. Tried a lot to think of something, but I can't come up with anything. I hope you can help me how to sort it out.
I had an idea to use TAGS as sidebar categories, but I couldn't get it to work.
Thanks.
Take a look at wp_nav_menu()
The wordpress backend has a menu making system where you can make menus based on pages/posts/categories. These menu items will take you to a page with a list of all the posts existing in those categories.
So:
make your categories
go to the menu maker
create the 1st menu and assign categories
create your 2nd menu and assign categories
Use wp_nav_menu() to pull the specific menu in. The docs that I linked give you a good overview of how to get the menu you want.
You will have to style these menus appropriately.
Good luck and happy coding! If you have any specific questions, feel free to ask and I can expand on it further.

How to colour wordpress menu lis based on category assigned to each page?

I would like to create a nav menu that displays all the pages of a wordpress site, its layout similar to what you would see in a footer sitemap layout, approx 5 columns with all the pages shown. Each page will be a project. I want to use wordpress category checkboxes (like you have for posts) to allow selection of one relevant category for each project page. Each page will then show a category caption below the project's description text, this I will style with CSS so each category has a different background colour.
Because Wordpress doesn't provide categories for pages, I have found a plugin to add this category feature to pages called ninja-page-categories-and-tags: http://wordpress.org/extend/plugins/ninja-page-categories-and-tags/
It's possible to edit the plugin php code under basic-functions.php to return a 'class' for the category displayed using get_slug and then applying css for each.
My problem is that on the menu, which will be a secondary menu in Thirty Ten displaying the pages, I want to be able to colour the background of each link to match the category that has previously been assigned to each page using the ninja plugin. Because the menu works with pages and the categories are not directly linked to the menu items (firebug will not show category details in the html of each link to reference with the css) I am wondering how I can colour each link based on category? Any ideas?
Ultimately what I would like to achieve is a grid of page links that are all coloured based on their category, a colour coded menu.
The plugin uses the standard wordpress category functionality but I just can't think how to connect these category details to the menu items to allow me to style them with css, any help would be really appreciated, even if just a point in the right direction.
Thanks
It's difficult to understand exactly what you're after, but essentially if you want to add extra classes to menu items (which will allow styling), you need to create a custom walker function.
Have a look at a tutorial like this: http://wp.tutsplus.com/tutorials/creative-coding/understanding-the-walker-class/

hide main content component for some menu items, joomla 1.7

I know how to hide the main component from the homepage, what I need is to do the same thing for all my menu items also. Basically, what I want is to create multiple homepages, so every category I choose has certain modules that display content.
How to show only modules, not the article when you click on a menu item (if it is linked to a single article)?
I know I can use some of the extensions that can embed modules to an article, but don't want to do it like that. I know that there are components that simulate homepages, don't want it like that either.
I hope my question is clear enough, I'm using Joomla 1.7.
I have found a simple solution!
Installed T3 framework, which allows the removal of main content component for the menu items you choose.

Joomla menu system & dropdown menu in template

I am trying to make a simple drop down menu system for my Joomla site. But Joomla menu is completely confusing me. How does a joomla menu work?
For eg: In the image below the whole blue bar is a menu? or each item like 'Projects' is a menu?
Now I can make two pages for Project 1 & Project 2 but where will the 'Projects' link point to? If it does point somewhere then incase of no JavaScript I'd like to point it to a page that shows a list of the menu items.
How do I place my menu at this place in my template?
Why is there a default MainMenu and why do I need to use a menu to show the main content on my site. Shouldn't menus be used for making menus. And I only needed a menu item to show my content not that whole Main Menu. The main confusion is the Main Menu.
I don't wanna use a module coz I couldn't find a good one for 1.7 that uses jQuery (All JavaScript on my site is done with jQuery) and I read somewhere it can be made within the template.
All I want is to somehow place menu items lists inside the respective anchors up top so I can just show/hide them as dropdowns with jQuery.
I hope I haven't made the question confusing pointing to what I need to make. It's just that I'm super confused myself.
Please help.
I appreciate the help.
Thanks Alot.
Joomla menus are generated thru modules. In most cases mod_mainmenu. Theese modules you place in module positions. If your menue should be horizontal on top, then you put your mod_mainmenu module in the position "top". Be aware that every template uses different position names.

Categories