I have a question about tabs. I'm using a content type hotel with all the information about a hotel for example, hotel residence, location, food, spa, sports ... At this moment this is just one big list of text. I was trying to make tabs for it because this is I think the solution. I was trying it with the module quick tabs but there I have to use nodes or views to make the tabs so i don't know what to do know because it's impossible to put every element (location, food,...) from every hotel (40) in a view. Do you guys have any ideas? Thanks for your help.
Sounds like you want to use the Field Group module.
This module allows you to group a number of fields on a content type together. You can then choose from a number of different display options for that group, including tabs.
I needed something similar for an estate agent style site and made Build mode tabs to allow you to use custom build modes (view modes in D7) as custom tabs. This worked well for me because I wanted some of the same fields shown on different tabs. It's only D6 but I'd be happy to port it if there was interest.
If I understand what you are trying to do ... views can certainly handle all the hotels etc. To do so:
- Create taxonomy vocabularies that cover each category of information you want, such as location, food, amenities etc.
- Create a new article content type with fields (requires Chaos Tools enabled) attached to each vocabulary. This permits you to create tags for each category stored in a field of the content type.
- Create a view definition and configure a view page in it to filter on specific fields. Give it a path name such as
hotel/%/generalSet the menu type to default tabs (parent exists) and give the tab a name. THe % is a wildcard and is used for contextual filtering. This allows dynamic responses by views to the URL name you place in the % position.
- Create another view page in the same view definition and configure its filters differently. Give it a path such as
hotel/%/<a different category>and define its menu as menu tab (parent exists).
If properly configured, you would have a view that responds to
hotel/% and displays the default filtered pages and two tabs, one for a default and the other for your other tab. IF you are new to DRupal, some of this may not make sense. I suggest you watch the video series "Taming the Beast"at nodeone.se to get a handle on what views does and then come back to Drupal.stackexchange, I am sure there will be more questions :)