I am creating a website in Drupal for a real estate company. I have used CCK to build a content type for listings, I've defined four taxonomy terms and used Views to create seperate pages for three of those types (first look, listed, restored). What I want is the fourth of those types (Deal of the Week) to always be displayed at the top of the screen (fit into the theme I have created).

This may be way easier than I am making it. I have created a type, Listings with the four terms (first look, listed, restored, deal of the week). If it is any of the first three it should display on the related pages, if it is Deal of the Week it should display in a Div I have at the top of the design. If you change the Deal of the Week to Restored it will then remove itself from the top and show on the Restored page. It sounds easy, but I can't figure it out.

Any tips?

Comments

robbieferrero’s picture

I figured out the part about placement. I created a region called "DOW" in the top section of my theme and placed the print $dow in the page.tpl.php file.

Now I'm realizing my problem is concerning how to theme this output. The block is from the Views module. I'm already using the Teaser and Body view types in other parts of the site, themed with Contemplate. I need to be able to format this DOW section seperately. I can't seem to find a way to add another "View Type" to Views. I could try to output it using some php and creating a block-dow.tpl.php file, but how would I reference a single post with a specific term that will always be changing (won't always have the same $nid)?

Having a dynamic sticky content type displayed at the top of the page seems like a simple enough feature. Have I made this more complex than it should be?

Anonymous’s picture

and join them together with this module: http://drupal.org/project/views_union?

-----------------------------------------
Joep
CompuBase, Drupal websites and design