SEARCH

Enter your search query in the box above ^, or use the forum search tool.

You are not logged in.

#1 2012-09-18 15:31:31

crunchbanghpmini110
Member
Registered: 2012-08-22
Posts: 12

Drupal 7 Theme, Dropdown Menu Example

Goal: Take existing content on the fully functioning Joomla! site and transition it to a drupal set up that is consistent with the parent university drupal theme


I have my localhost running #! and have a fully functioning site using Joomla! and a fresh install of drupal.

The university provides the drupal theme they use on their site and an example of a drop down menu they use on their Examples page. I have the theme installed and below is the code found on their example page.



<?php

$page['showNavbar'] = true;
$page['navbar'] = new Navigation(<<<EOHTML
<section>
    <section path="/item-1/" title="Item 1" showchildren="true">
        <section path="/item-1/sub-1/" title="Sub Item 1"/>
        <section path="/item-1/sub-2/" title="Sub Item 2"/>
    </section>
    <section path="/item-2/" title="Item 2" showchildren="true">
        <section path="/item-2/sub-1/" title="Sub Item 1"/>
        <section path="/item-2/sub-2/" title="Sub Item 2"/>
    </section>
</section>
EOHTML
);

?>

2 Questions:
1. Do I need a specific menu/menu type?
2. How do I use the code below to replicate their example menu?

Any help/pointers in the right direction would be great.

Last edited by crunchbanghpmini110 (2012-09-18 15:47:56)

Offline

Help fund CrunchBang, donate to the project!

#2 2012-09-18 15:44:14

dkeg
#! Die Hard
From: Mid-Atlantic Grill
Registered: 2011-12-05
Posts: 721

Re: Drupal 7 Theme, Dropdown Menu Example

sorry, I'm confused.  What is your end target.  Are you building out your own pages using the examples to work from, or are you extending off of the examples themselves.   

You have to look through the file structure at how they are implementing and using their code.  Drupal uses modules for implementing functions.  It looks like their calling a class for the navbar. 

Not sure if I'm giving you what you need or are looking for.   I'm sure there are other Drupal experts here, I don't have that much experience with it. 

Maybe clarify your question with some more detail.


grill it | the rocky path may just be the best path

Offline

#3 2012-09-18 15:53:03

crunchbanghpmini110
Member
Registered: 2012-08-22
Posts: 12

Re: Drupal 7 Theme, Dropdown Menu Example

The drupal theme provided by the university is very minimal (or i dont understand whats going on). Im trying to mimick the menu they have on their example site.

Building my own site/pages with the same look/feel as their website.

Sample page:
http://www.sample.iastate.edu/examples/dropdown/


Drupal theme:
http://www.sample.iastate.edu/download/drupal/

Offline

Board footer

Powered by FluxBB

Copyright © 2012 CrunchBang Linux.
Proudly powered by Debian. Hosted by Linode.
Debian is a registered trademark of Software in the Public Interest, Inc.

Debian Logo