front page variables

jerepops - March 5, 2008 - 16:29

Ok so I am working on this site for my boss:

http://www.tgagency.com/nsa/

He loves to volunteer to make sites for his friends and pay me crap! haha anyways...

Ok so under the video you should see where it says "welcome", well he want to have buttons that go across the top that say like "tip of the day", "pic of the month", "recent blogs", etc ...

I can do this no problem, but when a user clicks on in, he wants that content to load in the content area under the buttons, and it to remain on the front page. I dont have a problem with it reloading the front page, but is there a way I can add a variable to the url or something when it reloads, and then load the correct data? any direction would be amazing.

thanks a lot!

sounds like what you really

WorldFallz - March 5, 2008 - 18:02

sounds like what you really want is a tabbed interface... each link is the tab name and the content appears in the tab body... click on a tab and that tab stays visible until you click another. Like the "Tabbed Mini Panel" and "Carousel Mini Panel on this demo which uses the Carousel Panel Style module. You might also want to check out the node carousel module as well.

ahhhhhh! of course, why was

jerepops - March 5, 2008 - 19:06

ahhhhhh! of course, why was I over thinking that so much? How does drupal use their tabs, like on the profile page and stuff. is there a way to do that? would that be easier then installing one of the above modules?

thanks a bunch!

The tabbed interface of the

WorldFallz - March 5, 2008 - 19:39

The tabbed interface of the profile page (and node pages and whatnot) are actually built-in to the user interface of the modules themselves. Personally, I think it would be much easier to use use one of the modules I listed above. If you're already using panels2 and views, then it makes sense to go with the Carousel Panel Style modules, if not it might be easier to start with Node Carousel. Either would be easier than writing your own module.

too bad neither for 6.x :(

jerepops - March 5, 2008 - 19:34

too bad neither for 6.x :(

bah... my bad. I picked your

WorldFallz - March 5, 2008 - 19:45

bah... my bad. I picked your post up off the front page... I never noticed the D6 tag, sorry. Unfortunately, its going to be a while before most modules get ported over... that's one of the problems with going bleeding edge. Personally, I can't even think of using D6 for production until at least views, panels2, and nodequeue are D6.

 
 

Drupal is a registered trademark of Dries Buytaert.