Hi everyone,
as a relatively newbie I want to share one of my bigger first projects for one of my customers.
This site had the goal to present a Hotel, a Bistro Restaurant and a Gourmet Restaurant. We solved this communication challange with a distinct frontpage and three different sections each for the Hotel, the Bistro Restaurant and the Gourmet Restaurant with slight different templates.
For this release the site is just in german, although other languages as english and french will follow.
There were quit some challenges to get it to work like we wanted it. E.g., normaly if you click on a more link (mehr...) you get to the corresponding article. But on some articles we wanted the user to arrive on a page which shows all the articles corresponding to the first category the article belongs to. There were some more issues, but we believe the site works now quit well.
What do you think?
Frank
Comments
very tidy
Really really nice.
Something about the cufon font just polishes it up perfectly - although there are many other good technical details too, that one just took it over the edge to "lovely"
Typography - especially the menus - just excellent.
The different themes complement each other well. Different, but not too different. it's a good combination.
.dan. is the New Zealand Drupal Developer working on Government Web Standards
beautiful
:)
Roxy
How it works?
Wow, very nice.
Could you write about the Drupal part of it? E.g.:
And anything else that Drupal people might learn from your work.
Some explanations
Thank you for your kind comments. As this site was my first Drupal-Site (made some before in Joomla), there may be other solutions to get it done. I will try to explain how I did my way (at least today for the startpage).
Startpage:
Some jQuery to get the images loaded and made the fade. There are actually two main images of the building. One is a picture taken at night and one picture is taken at day time. A jQuery Script determines what picture to show dependent on the local daytime (daylight saving was considered).
On the right side are three views blocks (Design-Hotel, Bistro-Restaurant and Eickes-Restaurant) which show a cck textfield of an article (e.g. Willkommen im Design-Hotel, not the title) and the link to either the article node or the first taxonomy term which the article relates to.
Whether an article is shown on the startpage and whether the corresponding link shows to the node id or the taxonmy term is made via simple cck textfields (e.g. select list with the items: startpage_hotel/startpage_bistro/startpage_eickes, and select list with item: Kategorie/Artikel).
The views blocks then filter on the textfield and show only the latest three items where the cck textfield is equals e.g. startpage_bistro.
Whether to pass the link to the node or the taxonomy term was a little bit more challenging.
The views block shows fields (not the node). I added the cck textfield (select list with item: Kategorie/Artikel) and the Taxonomy All Terms field. They are both excluded from display. Then I added two PHP Customfields. The first shows the [view_node] and the second shows the [tid]:
Customfield PHP-Code for view_node:
Rewrite the output of this field:
<span class="[phpcode]">[view_node]</span>Value:
<?php print ($data-> node_data_field_start_palace_field_article_taxonomy_value != "Kategorie") ? 'node_more' : 'hidden';?>Customfield PHP-Code for tid:
Rewrite the output of this field:
<span class="[phpcode_1]">[view_node]</span>Value:
<?php print ($data-> node_data_field_start_palace_field_article_taxonomy_value == "Kategorie") ? 'rename_term' : 'hidden';?>So depending on the cck textfield (select list with item: Kategorie/Artikel) either the [view_node] has a class of node_more and the [tid] has a class of hidden or the [view_node] has a class of hidden and the [tid] has a class of rename_term. All classes are defined as visibility: hidden. But in my JavaScript file in the $(document).ready(function() both the rename_term class and the node_more class are toggled visible. I did the jQuery delay because sometimes the user could see the links toggling.
Ok, thats it for today. If somebody is interested in more information, please let me know.