I need some help coming up with a strategy to allow "band pages". Basically, I have a website for bands with products. The website is powered by Drupal, so:
there are views that display the bands
a band is stored as a taxonomy term
a taxonomy term is assigned to a user using "user_terms" (so I know which username belongs to which taxonomy term)
I have a view that displays pages in this format: mysite.com/band/BANDNAME
I want these pages to be themed differently depending on the band. So, I would assume:
I need to create a complete drupal theme per band?
I need to assign the new themes to the various pages
So my questions:
Is this the best way to do it?
What can I use to assign the themes to the various pages?
Thank you!
Depending on how much the different band sites need to vary, you could use something like the Context module to create separate "contexts" for each band based on the URL and then assign different page templates depending on the context.
If you wanted to switch themes entirely, you could use the Switchtheme module for that.
Related
One of my colleague left on vacation and left me with an Orchard project to work on.
I never worked with Orchard, so please excuse my ignorance and my possibly stupid questions.
I come to you for general advice on how to implement and structure the content of my site, as my research didn't give me the answers I'm looking for.
Here are the requirements:
The site must be divided into sections (section A, section A-1, section A-2, section B, etc...)
The navigation of the site must be based on the sections, each navigation item must also contain an image
Each section has a separate page with roughly 4 types of content that must be displayed:
Title of the page
Articles associated with this section, which represent the main content
FAQ content associated with the section which should be displayed in a specific zone
Miscellaneous content associated with the section which should also be displayed in a specific zone
I'm struggling at nearly every aspect of the requirements...
We started building a taxonomy, with as many terms as we have sections, allowing us to build the hierarchy we want, which is perfect. But this had 2 downsides:
The built-in taxonomy-based navigation is static, so the only thing displayed is the term, and we couldn't find a way to change it so the user would be able to add an image to the taxonomy term.
The generated pages based on the taxonomy display every content item based on the current term, that is, the articles, but also the FAQ content and the miscellaneous content, all in the Content zone.
Is there any way to work around these issues by using the built-in taxonomy? Or will I have to build content types from scratch in order to achieve what I'm trying?
The solution my colleague came up with was to add a layer for each section, and add in this layer 3 widgets, one for each specific content (title, FAQ, misc) in different zones. But I don't think this will me maintainable, as we currently have 4 main sections, each with 4-5 subsections, so that's rougly 60 layers, which will be a nightmare for the client to maintain.
Any advice will be greatly appreciated, I'm kind of lost.
Thanks in advance,
Mickaël
Taxonomies was a good start, but now you need to study projections. You'll be able to set-up filters about what you display.
For adding an image to your terms, one way to do it is to add a media library picker field to the type that was created for your taxonomy.
I am kind of new to SharePoint. I am learning it on the go and learned about the concept of pagelayout and publishing features on the site. But I am not really 100% sure what is the difference between a WebPartPage, SitePage and PublishingPage. I kind of know what all these pages be used for, but what I not get is: why do they need to separate all these pages?
I think we can just get a publishing page and have all the feature there including webpart and everything else (with our choice of PageLayout). However I dont see a way to use a pagelayout on a particular SitePage.
Is there any particular reasons for using either one of them? Even though it seems like one of them can serve as all of them?
You should use page layout when ever you know the page structure. For example you are running an online news paper. You want to show the news to the users into three columns. First column is for menu, second column is for news content and third column is for advertisements. Now in your daily usage this layout is common. So you can use this page layout for entering the news. After creating the page layout you can make it as a default to your pages. Page layout is nothing but the structure of a page simply!!
A webpart page does not have a field for content directly on the page like a SitePage has. A Publishing Page is like a SitePage, but requires extra fields for dealing with the publishing extra features.
Using a single layout for all three risks being confused as to why one page does not work the same as another when it has the same layout (the difference would be the underlying features are different.).
I will make a comparison with cars. There are three type of cars, each is better suitable for a certain purpose: tractors for farming, buses for public transport, light cars for private transport. You could use a tractor for all the purposes above but it's not ideal.
"One of them can serve as all of them". This is not true in their current implementation. I'll give you one example: prefer Web part pages against Publishing pages to better control content added by contributors in an intranet. There are many other examples.
I am familiar with drupal. I want to go 1 step ahead and develop some complex websites. I came across site http://www.dakshintimes.com/
I want various sections in page like that. How do i create various sections in page like that. Should i create regions/ blocks in page and place content in that or which is the best way to do this.
You would want to look at the Panels module. It allows you to setup a page with multiple column and row regions like that. Then you could assign Views Panes to those panels.
I am figuring myself around Drupal.
I have understood that there are regions specified (in page.tpl and theme.info files). But my website requires different pages to have different layouts, how should I go about doing this ?
I figured, if I could make a custom Content-Types and I would like each content type to point to a specific tpl.php file.
Is this possible, or is there a better (correct) way of doing this ?
There are a ton of ways to accomplish this, depending on your needs. I would suggest reading the pages about Drupal template suggestions: http://drupal.org/node/223440 and http://drupal.org/node/190815
The easiest way to start out with this is to make a new node.tpl.php for your content type.
A more complex way is to design your site using Panel pages. You can set up a panel context for each content types, and then do whatever you want.
I’m currently working on a travel site for a client of mine, they require a cms so that they can add hotels and destinations and also update their website with ease.
The basic structure of the site is explained below:
1. Home page
This page currently pulls out destination information and a section of hotels that change on the refresh of the page.
2. Destination listing page one
This page will show the countries in this specific destination so for example: if the destination is the Caribbean it’ll list out the countries that my client sells hotels for, sorted by rating so if a hotel is rated 5 stars it’ll appear near the top of the listings. The countries are setup as categories and are unique to the listing pages, the categories contain a brief description of that country and an image that will link to the hotel list page displaying the hotels in that country.
2b. Hotel list
This page will contain the list of hotels that are on sale in the specific country.
2c. Hotel description page
This page contains pictures and information about the selected hotel.
3. Destination listing page two
3b. Hotel list
3c. Hotel description page
This section has the same concept as the first destination listing section above except the information is unique to its destination. (obviously)
So first things first, I’m having a few issues with how the functionality of the cms works, at the moment to add a hotel my client has to fill out one big form (they like this because it means they don’t have to move around the cms too much). I’ve created two weblogs for each destination but the fields are the same.
In order to add a hotel to a specific country you have to assign it using categories. Now the problem I’m having here is that if I want to make a hotel appear in more than one country it displays both country names, images and descriptions and I can’t figure out what the hell is going on, I thought of using some sort of tagging system because I thought this might be more appropriate to what I need to do?
Secondly I’ve downloaded and installed the structure module as I thought this would be good to help my client visually see how the site is structured (excuse the pun) and make adding hotels and other pages and content even easier than it already is and not only that but to have an automatically updated menu and sitemap. I’ve read through the documentation and I’ve tried experimenting with a few of its features - such as the listings feature. I thought this maybe a better way to list and organize my countries instead of using categories or tags but would this work or would it make things so much harder to maintain and keep track of? Because currently if my client wants to edit a certain hotel they just select it from the edit menu and change all of the information in that one post, would by using the structure method make it more awkward?
I from what I can see, the structure module works by treating weblog posts as ‘pages’ now with this in mind if I wanted to use structure how would I get it to work in the way that I want it to, in terms of having a weblog with one big field group so that when a hotel is added all of its information is in one place instead of being spread across 3 different weblogs?
RIGHT, I hope I’ve not confused you here.. If you need any more information just holla at me!
Thanks
Make a weblog for the hotels, then use the Playa module to relate the hotels to the Structure pages. (I know this answer is a bit late, the site is probably long finished...)