I am a drupal novice and have been trying to do my reading but am still confused.
I have a structure set up for an art gallery site in Drupal 7. I can't figure out how to best manage the images. The main structure is as follows: Artist Portfolios containing a List of Artists - Artist page which has thumbnails of different mediums which link to - a medium page showing thumbnails of all work in that medium with links to individual pages for each piece with descriptions.
It isn't complicated but I can't figure out how to best use taxonomy with views and making an image gallery while never having to upload an image twice.
I feel like I might have started down the wrong path to begin with. If someone wanted to look at the site I will send the link.
Comments
First create a vocabulary
First create a vocabulary that represents the medium types.
Then make a content type that represents one piece of art work, it will use the title field, body for the description and you will want to at least an image field and a term reference field for the above vocabulary. If the artists are users of the site you can let them add their own items so the items are "owned" by that user/artist. If not users of site you will want another vocabulary for artists
Add image styles for the sizes you want the image to display in
At a high level you will want three views (using the views module)
a) A view that lists all the artists, each artist links to the next view (b)
b) A view listing taxonomy terms in the medium gallery. This view will take the artist id as an argument. I would use a reference on "Taxonomy term: Representative node" and require the relation (this way only medium the artist uses will show up). The argument on artist id will need to use this reference. Then would list appropriate fields from the representative node and link them to the next view (c)
c) Make a view that takes two arguments, artist id and medium (term id) and list the content with those two terms. Link to the actual item.
What about menus
Thank you. I feel like you have answered my question I just have to apply it.
I have created vocabulary for Artists to list them because they wont be users and one for Medium types.
I have a content type that represents a piece of art with fields to list the info in(date, size, price etc) and term ref fields for name and medium
I have an image style created.
Now for the views...
but first...
I have a hierarchy of blank basic pages so I could start my superfish menu creation. Should I delete those and make my pages with views or link the views to those existing pages?
Are the views you suggest to create pages or blocks or neither?
Views
A)I would like this list to have a thumbnail of a piece of work(that changes randomly) that represents the artist with their name below it.
For the thumb to be a random piece of work would that have to be a block?
B)This one is a bit more complicated and I might ask for direction once I dive into it.
C)Is this view used in conjunction with B on the Mediums page?
I would delete the existing
I would delete the existing blank pages
I was thinking in terms of pages for the views
While I can think of creative ways to list a random image I can not think of straight forward approach. Since you are list terms you can use a relationship on "Taxonomy term: Representative node" to display a single image.
For (C) yes, my thought is result in (A) link to (B) while results in (B) link to (C) and results in (C) link to the actual content
ok...menu links come after
Alright it is becoming clear.
For Views B and C. Do I have to make one specific view for each artist and one for each medium that artist makes so that the page only shows that artist and their mediums? Or should I use content type to make that distinction?
Once I have all my pages made I will then proceed to make the super fish menu is that right?
When nevets says 'argument',
When nevets says 'argument', he means 'Contextual Filter', which is what 'argument' is called in D7. You enter the term ID as 'Contextual Filter'. For an overview of how to do this (and really, an awesome screencast series to help you learn views, visit http://dev.nodeone.se/en/taming-the-beast-learn-views-with-nodeone
If you feel comfortable with the basics of views, you can skip to Part 19, which is on Contextual Filters.
Anthony Pero
Project Lead
Virtuosic Media
http://www.virtuosic.me/
You will make one view for
You will make one view for ALL artists, and one view for ALL mediums--see my other post.
Anthony Pero
Project Lead
Virtuosic Media
http://www.virtuosic.me/
B) view not working yet.
Thanks for the link on view taming the beast I have now watched these and it really helped.
I am still having issues....
My B) view is giving me some trouble. This is the view that is supposed to list all the mediums of one artists. I have made the new view to show taxonomy terms of type medium and created the page. I have given the contextual filter as taxonomy term id. I have made a relationship taxonomy term representative node. I have given the fields (Representative node) Content: Image (Image) and (Representative node) Content: medium.
but I am getting this error:
SQLSTATE[HY093]: Invalid parameter number: number of bound variables does not match number of tokens
When you were first creating
When you were first creating the view, did you select "Taxonomy" or "Node" as the view type?
Anthony Pero
Project Lead
Virtuosic Media
http://www.virtuosic.me/
I chose a taxonomy term
I chose a taxonomy term and create a page.
Ok, you'll have to wait for
Ok, you'll have to wait for someone who knows SQL to troubleshoot that error. Sorry!
Anthony Pero
Project Lead
Virtuosic Media
http://www.virtuosic.me/
Another option
Perhaps instead of showing just a list of mediums that an artist has, you should skip this step and just show a list of artwork grouped by medium type.
For example:
For this view, you would create a Content view for artwork. Then you could show a list or table of fields. So, you would add the Medium Term at the top of the list (and exclude it from display). Then go to the Format Settings and add the Medium as the Grouping Field. This will get you quicker to your actual content. (Another option is to show all artwork with an exposed filter to filter by Medium)
So, this view would have the same contextual filter for term id to accept the Artist term.
okay this might work
I like the idea of getting the user to the content faster and seeing examples of all mediums at once. Design wise I am curious if this will work because I would need to see a thumbnail for each piece not just the title and it might get too cluttered with some artists having 4 or 5 mediums and 30+ images per medium.
Well, "Artwork 1" would have
Well, "Artwork 1" would have the image thumbnail, title, size, price,etc.
You are correct about possibly showing too much. But I think 30 items on a page is reasonable. You can always setup pagers in Views. Or perhaps the Exposed Filter to allow the user to filter on their own would be a better option.
Exposed filter exposes too much
I have gotten the B view to work with fields medium(hidden) a thumbnail and title. The contextual filter is set to Content: Has taxonomy term ID and I have a filter for Content: Medium (exposed).
The problem I have with this is that the drop down lists all mediums available site wide not just the mediums that artist works with. Is there a work around for that or do I just have to live with that?
Is there a setting to limit
Is there a setting to limit the filter to terms that have content?
Anthony Pero
Project Lead
Virtuosic Media
http://www.virtuosic.me/
Limit list to selected items If checked
I don't see a setting to limit the filter to terms that have content.
There is an option to Limit list to selected items. If checked, the only items presented to the user will be the ones selected here.
This will help it look less crowded but still presents options to the user that don't exists for certain artists.
Grouping Field?
Did you try to Group by the Medium as I suggested above instead? Does that option work for you?
Another option would be to add another contextual filter for the Medium taxonomy term. Then when the Medium is not in the URL display a summary list.
The grouping worked
Yes the grouping of medium worked.
I was just wondering if I could some how limit the drop down menu for medium to show only the mediums that are available for that artist and not all mediums available on the site.
Medium is set up as a
Medium is set up as a taxonomy? Is this view a Taxonomy view or Node view?
Anthony Pero
Project Lead
Virtuosic Media
http://www.virtuosic.me/
a node view
It is a node view and I have Medium set up as a taxonomy vocabulary.
I followed this suggestion:
(I used a grid because I want it to look like a gallery)
Hmmm... yeah, I'm stumped
Hmmm... yeah, I'm stumped without actually going through and doing the work. Having trouble visualizing it. Anybody else?
Anthony Pero
Project Lead
Virtuosic Media
http://www.virtuosic.me/
So, how about my other
So, how about my other suggestion of using another contextual filter and using the summary list?
I tried that but I don't really understand.
I tried that but I don't really understand. I made the new contextual filer Content:medium and set the display a summary but it just makes a page with bulleted numbers with links to errors. It didn't adjust the items listed in the medium filter drop down menu. Am I missing a step?
Remove exposed filter
I think you will need to remove the exposed filter for medium. Could you provide a link so I can see what errors you are getting?
An illegal choice has been detected.
I just get the error when I click on one of the numbers...An illegal choice has been detected. Please contact the site administrator.
The link is www.lyghtesome.ns.ca/dru/Artwork/36/
Well, obviously something is
Well, obviously something is wrong in the View. What field did you pick for the second contextual filter? I would remove all of the exposed filters to see if that helps.
Personally. I would just go with the grouping field display. But it's up to you. ;-)
I didn't choose a field for the second contextual filter.
I didn't choose a field for the second contextual filter because I wasn't sure what to use. I don't think I fully understand how that contextual filter is going to minimize the number of mediums available in the exposed dropdown menu for Medium.
I like the grouping field display too so thanks for that suggestion I think it works. The only thing I want to change is the dropdown menu for mediums so it only displays the mediums from the particular artist. If I can't its not the end of the world but it would be nice. I'm sorry to repeat myself I just want to be clear.
There isn't a way to limit
There isn't a way to limit the dropdown values in the exposed filters to what you have already selected.