Multiple choice menu - php

I'm having trouble creating a menu with multiple choices and I'm hoping this great forum can help.
The webpage in question is:
http://rrg.genesis-unlimited.com/solutions/?categories=Adventure%20Park&level=1&format=video
The site is being built in wordpress using the catalyst theme framework which is very similar to Genesis.
I'm using the "views" plugin to create multiple areas.
First you have your main section where you choose the main category, in this case:
Adventure Park
Arborist / Tree Climbing
etc..
there are 7 main categories.
Then there are 3 subcategories: "Beginner, Intermediate, advanced"
Each category / sub-category choice has it's own page.
For instance "Adventure Park - Beginner" has a different page than "Adventure Park - intermediate" and so does "Arborist / Tree Climbing - Beginner".
The content of each page will also have 3 sections for video, articles and FAQ's.
There are basically 28 pages in all with each one having it's own content. This is a big undertaking.
My dilemma is that I would like to allow this choice without the use of a drop down menu.
I'd like the user to be able to click on the first level choice and then the second level choice which will be displayed below it.
Here's a screen shot of what I want it to look like, hopefully the visual helps:
http://rrg.genesis-unlimited.com/wp-content/uploads/2014/07/ishot-1.jpg
So you can see where you can click on the top level category and then choose the second level "view".
Anyone have any ideas on how I could accomplish this using wordpress?

Try to search for plugins,if you dont find anyone then if you know css go and change the css file

Related

Wordpress one pager: how to structure / posts or pages?

Heyho,
I'm new to wordpress and currently building a website for a client. It's a one-pager and I'm wondering how to build the backend.
Let's say it's a cat-business. And the structure is as following:
Haircutting
Baby Cat Haircutting
Long Hair Haircutting
Special Hair Cutting
Photoshooting
Single Studio Photos
Group Studio Photos
Owner + Cat Studio Photos
Outside Photos
Training
Faster Running
Higher Jumping
Better Mouse-Hunting
News
Contact
The categories 1—5 should form the Menu.
Every entry is (until now) a post and has several custom fields (e.g. Price, Duration, Location…) and that works fine. The Client needs to be able to edit / add / remove the single entries (e.g. "Special Hair Cutting").
How should I build it know?
First Idea
Making Pages for each category, showing the single posts assigned to the
"wordpress category"
Make the Home-Page show all the pages
Second Idea
Building everything in Posts
Building also the categories 1—5 in Posts and figure out how to apply
special CSS (workaround with Custom Fields?)
What is the smarter way to go?
Anyways I'd need further help afterwards, linking the best tutorials, as hours and hours of searching didn't help me any further.
Thanks.
Appologies for my bad English
You can build a simple one-pager by looping through the pages with depth 1 and then through each of their subpages. You can use the get_pages function for this.
Make sure to redirect the individual pages to an anchor on your one-pager/home (with a redirect plugin). This will prevent people from finding your individual pages through the search engine.
How get_pages works: http://codex.wordpress.org/Function_Reference/get_pages
How to loop through your (sub)pages: http://wordpress.stackexchange.com/questions/93844/child-pages-loop‌​

Joomla! 3.2 - Add a Global Parameter to "New Menu Item"

I am busy trying to customize Joomla's Menu Parameters so that in the administrator area when you create a new menu item, You have an additional option of "1 Column" or "2 Column", And this has to be both accessible by the index file of the template and also Joomla! Update Friendly..
And this is basically just to give the user the freedom of selecting the layout style of a particular page.
What Would be the Best way to go about this?
Any Help Greatly Appreciated.
UPDATE
what i am trying to achieve is similar to when you select a category for a menu item in Joomla!, I want to append it to the url exactly like a category, so you select 1 of 2 columns when creating a menu item and then in the url it should say: &col=1 or &col=2.
Joomla already has a built in parameter for selecting the layout used for a menu item which is the concept of an alternative menu layout. You add the layout to your template html folder with the appropriate xml file. Then that layout will show up in the list of menu options when you select a menu type.
I have two simple solutions without core haking and that are update friendly.
SOLUTION 1 :
Make 2 different templates with the 2 different layouts call them 1 column and 2 columns. When you make your menu link you can choose between them (Template style dropdown).
SOLUTION 2 :
(the one I would recomend)
In your css file make your 2 different layouts based on 2 different css Classes. For example class="1_column" and class="2_columns".
When you make your menu link , under "page display options" you can choose a class for the page it links to. And there you are you can choose between your two layouts.
Hope this helps!

WordPress: Inner-Page Linking, Pages based on Categories

I'm trying to decide which method would be best for an internal linking structure that utilizes 4 main categories, and then pages within those categories using WordPress.
At first I thought I could just use Posts as a method of determining whether or not content belonged within that category... but now I'm second guessing myself. The site structure is like this:
High-level nab:
Category 1
Page 1
Page 2
Page 3
Page 4
Category 2
Page 1
Page 2
Page 3
Page 4
Category 3
etc
Category 4
etc
Obviously, this is a custom theme. But before I start coding, I want to make sure that I'm storing, pulling and organizing the data properly.
What are you thoughts? Greatly appreciated!
Wordpress is actually designed to be a blog, not a pure CMS. If you do not use the blog function, I suggest trying another 'real' CMS (Joomla, Drupal, TYPO3, many many others).
But to answer your question, why did you reconsider ? It would make it easier to know why your are second guessing...
If you want to accomplish this with the given categories from wordpress, you can use a category to page plugin like this one here. But there are also some CMS plugins for WP that make wordpress to a proper cms and can help you grouping pages - see the plugin resource.

Drupal route based node content

I'm new to Drupal and have a basic question which I cannot find a good answer to. I am trying to dynamicly determine the contents of my website based on a selection made by the user and keep the selection displayed in the routing for SEO purposes.
It's a website for a Restaurant with multiple franchises.
What i'm trying to do is the following:
The user visits my website and gets a splash screen presented with the available franchises or a textbox to enter his postalcode
Upon selecting he enters the main website with the navigational structure adapted to the selected franchise. For example: domain.com/city/, domain.com/city/menu, domain.com/city/menu/dishes, domain.com/city/contact, ...
The contents of all nodes are based upon the city the user selected. Some franchises have extra nodes which should be displayed in the main navigation aswell.
What I have thought about so far is to try to accomplish this with taxonomy but I really have no idea where to start. Parts of the nodes will be the same for all franchises other parts will be different. Menu item prices will also be different.
This is the first website i'm building using Drupal so any advice is welcome.
Thanks!
It will be impossible to explain it all here but yes it is possible to select your content based on user input in Drupal. You will need to look into Views & Panels.
In Views you can use arguments to narrow to a specific taxonomy. With Panels , an argument can be retrieved fron the URL and passed to the Views in order to display the results.
There are a lot of resources available, Merlin of Chaos, the author of the Views & Panels modules has written a book about it. There are video tutorials online. Your best bet is to start with drupal.org.

developing module with drupal

I have a website which is up and running on drupal. Its product based website. I developed by creating my own tables and writing php code using php filters. I never used module concepts. Since the site is running well, so i am thinking to move to module concept. so wanted some help here, like how to do it.. i have gone through module development concepts also.
requirement.
1. Admin should be able to create new products like Mobile, Camera.
2. He should be able to define product properties and properties for which user will rate on.
3. Admin/ second admin should be able to create new sub products under products like mobile - nokia 8850 , nokia 9980 where he enters details of product properties also.
4. A listing page for all the sun products under main product. and from listing page we go to to main sub product page where user rates the product.
My confusion : should i create a new table or drupal takes care of all the requirements. and how do i start with it.
update : clear picture of requirement
ex :
1. 1st i add a product "MOBILES"
2. Then i add properties for this main product.
3. Then i start adding sub products under MOBILES i.e nokia 1100, samsumg 2200 and etc.
while adding sub products, in this page it gives me a text box for all the propeties i defined while creating the main product MOBILES . So is this possible using CCK.
You're right to consider using modules and following the "Drupal way". Use CCK + Views and Drupal will take care of the table maintenance and querying for you.
As already mentioned, you will need to get familiar with the CCK module. This module will allow you to create new "content types", which in your example would be the different product types and their attributes. Here is a good overview video on CCK. With CCK you can define new content types and Drupal will create the basic content creation forms for you and hide spare you from all the database details when you're working with it.
The Views module is essentially a query builder and will allow you to create views of your content. There are all sorts of related modules that can help you render your data as charts, grids, lists, slideshows, tables, etc.
There is a slight learning curve but once you get past it you'll be able to build new things pretty quick.
Update: Just another thought, if you are really needing to create some kind of classification system you should look at Taxonomies.
It sounds like you could do all of this with modules, without needing to do any php coding at all. Check out (if you haven't already) cck, views, and fivestar.
In response to your update, sounds like CCK and Node Hierarchy should do everything you need.

Categories