Hi John,
First: http://www.cartermuseum.org is very good, professional Drupal. Second, thanks for writing me back.
I've got a few questions, so perhaps I'll just roll them out gradually.
1. I can't quite figure out how you've got the sticky type gray boxes above major areas. For ex: under Works of Art, Photography, Sculpture, Paintings, etc.....all get their own gray box above it that changes. Better again, the parent link (Works of Art), gets a description and an image. Is this done via some playing with the sticky function?
2. How are you getting the rotating featured area on the front page?
3. What version was this site built on? What version do you use now?
More to come! thanks again very very much for any info you provide.
terry
Comments
Answers... hopefully
Hello Terry,
Again, thank you for your enthusiasm and kind words. I hope I can help spread some light on how some of site works for you.
1. Sticky/Description image
I'll start with the second half of the question. We made the image banners in kind of a dirty way, but it works. I just have revisited to make it a better way. Here is the code:
It appears that dark grey nodes are marked sticky, but they actually aren't. It's all done on the node theme level. Whenever you see a light grey box in a list of nodes like on http://www.cartermuseum.org/exhibitions, you really see the node preview. If you click on the title or image you go to the full node view. The full node view actually shows the rest of the node, and that's where you see the exhibitions' related artworks, podcasts, comments, press releases, tour dates, etc. Here is a piece of node-exhibitions.tpl.php:
What you see here is that the full node view adds the class "sticky."
2. Rotating Feature
I made a custom content type (cck) called homepage feature. This includes an image (image field modules), date range (date module - when to show up, when to go down), related node (cck - where this image links to; could have used the schedule module also), and weight (weight module - order of banners). The title of each feature node is what appears in the gray box above the image. I made a custom view that outputs the info into a list view. I used template.php and a theme override of the view to get it to spit out the code I want. The rotating was done using some custom JQuery. View source from the homepage to see this code. If you turn off Javascript and reload the homepage you will see that all the banners are accessible in a list.
3. Version
The site started out with Drupal 4.6 then really started moving with 4.7. We are up to date with Drupal 5.10. I would love to move to the latest version of 6, but many modules we use aren't available in 6 (mainly E-Commerce -- If it would have been available, we would have used Ubercart instead).
I really hope this info helps you in some way!
Hi John, Sorry for taking so
Hi John,
Sorry for taking so long to reply. I've been off for a while.
Great post! Really informative to see how people are doing some of this stuff! The way you do the faux-stickys is excellent.
I think I might drop you a line........