Early Bird Registration for DrupalCon Portland 2024 is open! Register by 23:59 PST on 31 March 2024, to get $100 off your ticket.
Hello Developer,
I am wondering if you can explain how to build the custom content type in order to use colorbox to build the image slideshow. I watched the tutorial twice and I am confused on what steps you took to build the custom content type. I have tried this myself on my drupal 7 installation and I'm missing out on what to do for adding image styles to the node/page. My drupal installation doesn't seem to allow me to do it. Any suggestions on this would be helpful. Thank you for your time!
Yours,
Chris
Comments
Comment #1
frjo CreditAttribution: frjo commentedTo add a new content type to your Drupal 7 site you go to "/admin/structure/types/add".
Comment #2
clchleung CreditAttribution: clchleung commentedHello,
Yes, I did go to "/admin/structure/types/add". However, I cannot select image_gallery_1 style and the other two styles you spoke about in the screencast when adding fields to the page. Otherwise, I know it's not a complicated process to build the slideshow. If you can get me to the next step, I would appreciate it.
Thank you,
Chris
Comment #3
mhawker CreditAttribution: mhawker commentedAre you asking how to create a field?
If so, go to "/admin/structure/types/manage/YOUR-CONTENT-TYPE/fields", the "Manage Fields" tab. You use the add new field to label and name your new field, then use image for the field and widget type. You can then further configure the field.
Once you have the field created then you can use the "Manage Display" tab to assign Slideshow, Colorbox, etc.
Hopefully I haven't misread what you're asking...
Comment #4
clchleung CreditAttribution: clchleung commentedHello mhawker,
Thank you for the detailed instructions on how to add the fields; however, I am still not seeing the option to assign my custom image style (like how frjo shows on the screencast) to add image_gallery_1, etc. from add new field. How can I get the custom fields on my content type?
Any more suggestions from anyone would be appreciated. Thank you!
Chris
Comment #5
dolly nyc CreditAttribution: dolly nyc commentedGo to ADMINISTRATION -> CONFIGURATION
Under MEDIA select IMAGE STYLES
You set the Image Styles there.
Comment #6
clchleung CreditAttribution: clchleung commentedHello dolly nyc,
Yes, I do know how to go to ADMINSTRATION > CONFIGURATION and go to media and select image styles. I just want to know how I can attach these image styles to my CONTENT TYPE. My drupal system is not allowing me to do this.
I appreciate your answer; however, I'm still having trouble getting to the next step.
Chris
Comment #7
frjo CreditAttribution: frjo commentedI believe we now are at loss over what your problem is.
If you have already configured your image styles you simply select them under the "Manage Display" tab after selecting "Colorbox" as the formatter for your image field.
There are no other steps.
Comment #8
clchleung CreditAttribution: clchleung commentedHello frjo,
Thank you for the additional tip. I actually went into my custom content type and played around some more with the MANAGE DISPLAY and MANAGE FIELDS and I got it to work! The set up on my Drupal installation was totally different. That is why I had such a difficult time assigning the images to the CONTENT TYPES. Well, I think this finishes the issue I was having.
Best regards and thank you for your work!
Christine