Closed (fixed)
Project:
Shadowbox
Version:
6.x-3.x-dev
Component:
Documentation
Priority:
Normal
Category:
Support request
Assigned:
Unassigned
Reporter:
Created:
10 Sep 2009 at 04:17 UTC
Updated:
1 Feb 2012 at 06:43 UTC
i have cck and views installed
ive gone thru the posts listed here
and i STILL dont get how to use shadowbox with drupal
(i use shadowbox with all my php sites)
the two things i need to do:
-bring up a form response page in a shadowbox window
-show full sizse images from thumbnails
pls help!
thanks!
Comments
Comment #1
vm commentedhave you read through the USAGE.txt file in this modules folder?
Comment #2
playwithtoy commentedyes it was the first thing i read and it just made me more confused
they are perfect instructions for a php site
but not a drupal site
i really would like a step by step list on at least how to popup a pic from a thumbnail
in a view using an image field from cck
thanks!
Comment #3
vm commentedto have it work in a node
edit your content type that includes the imagefield
inspect your field display settings
to use in a view
when setting up the view to pull the imagefield choose your display options as well.
Comment #4
playwithtoy commentedwhat display options
if i have a page display in my view
which options are you talking about
im sure it seems obvious to you
but as someone whos never used this mod in drupal
nothing in the views interface has changed since installing shadowbox
making it seem like nothings different
so pls go step by step - literally
Comment #5
vm commentedThis is more of a views question. When setting up your view to pull your imagefield you are presented with options on how you want that field displayed.
Reading some tutorials on the fundamentals of views and walking through those tutorials will be quite helpful.
In condensing already existing tutorials
add your imagefield to your view (I don't know what you called your imagefield in your content type)
investigate the options that are presented with regards to how this field is displayed in your view. Fundatmentally it's really no different than how you tell your content type to display the field on a teaser of a full node, by selecting its display options.
Comment #6
playwithtoy commentedthe views stuff is obvious
its the shadowbox which is not
so heres what ive got so far for anyone who wants to know in the future is this
this example is for a page view with cck
1) create a new view
2) create a new page display
3) add field in view the fields '+' button
4) when the area opens up below - pick a field u know to be an image
5) hit add
now the image field name should show up in the fields area
6) click on the image field link in the fields area
7) check the box "Output this field as a link"
8) in link path input the goal url to go to
now the question is which is really relevant to shadowbox is
what field do you put this:
rel="shadowbox[gallery]"
Comment #7
vm commentedNo need to rewrite the field, unless you have a specific need you've not mentioned.
When setting up the field in the view, simply choose the correct format, in the formats dropdown? which should include your shadowbox options. If those options are not there, check your admin/settings/shadowbox/automatic screen and ensure that you've not tried to force Enable for all image links otherwise I don't believe the options show, as you've essentially set a default.
Comment #8
playwithtoy commentedahhh yes now we are getting somehwere
i didnt quite that there was a part 2 to the installation process
so now shadowbox is in my sites/all/plugins dir
and im still having a bit of trouble
lemme explain
first off the shadowbox options you mentioned are not in my formats dropdown
cool - so following your directions i went to shadowbox admin
which is where i discovered i hadnt installed part 2
so now thats installed and i adjusted shadowbox location to reflect
sites/all/plugins/shadowbox
(i love the test - it works perfectly)
ive left everything else as the default setting
now i go back to my views
and to make thing simple when i select the image field to work on it
ive checked the 'Link this field to its node' option
i look at the dropdownlist
and its still the default list with no sign of anything that says shadowbox
then i feel a wave of disappointment and come back and write you
any thoughts?
thanks
Comment #9
vm commentedIf you are using Enable for all image links The option won't show as far as I can tell. The only show when that option is left unchecked and your imagecache presets are set up correctly.
Comment #10
vm commentedComment #11
playwithtoy commentedactually its not fixed
the stuff still doesnt work
and i still have no clue as why it doesnt
Comment #12
playwithtoy commentedComment #13
vm commentedtry clearing views cache in adminsiter -> views -> tools tab
I set it up twice now using the methods I've layed out and it works perfectly fine. Very well could have something to do with the fact that you did not have the library downloaded and installed properly originally. If necessary uninstall and reinstall, essentially starting over now that you've realized you had originally missed a pretty big step.
Comment #14
playwithtoy commentedwill do that now
also i have another question
i was really thru the install docs
and couldnt find the imagecache preset specs that shadowbox requires
could you point me to where those are documented?
thanks
Comment #15
vm commentedpresets are set up as you see fit. They are not shadow box specific. Since you don't have them this explains why you're not seeing any change in the formats.
I'm remarking this as fixed. Further information should be requested by creating a forum post.
Comment #16
playwithtoy commentedignore that last question
i see what you mean now - there is no exact shadowbox specified imagecache specs
but rather ones that we set up on our own to use with shadowbox
so finally with clearing the views cache everything is showing up
thanks much!
and all the dots are connecting
one last step
clicking on thumbnail actually goes to the url with the orig image
ie, it doesnt actually shadowbox the orig
ive seen this before several times
when ive installed shadowbox on php sites
and some js file is misplaced or somethings not picking something up from somewhere
also on php sites im initialising shadowbox which i dont see being done here
but since this is drupal im not really sure how the hooks work
so i have to ask your expertise
the html is rendering properly
it looks like this
the shadowbox js files are being imported properly .... i think
not being an expert in drupal im not sure if there are additional or missing files?
in addition it looks the shadowbox css is being pulled in
your thoughts are apprec
thanks!
toy
Comment #17
psynaptic commentedhref="tony_testimonials_0.jpg" looks wrong since it should be sites/default/files/tony_testimonials_0.jpg or files/tony_testimonials_0.jpg
Comment #18
playwithtoy commentedhey p
thanks for the reply
yeah i just upgraded modules yesterday
and it blew out a ton of stuff
i think im gonna end up spending today reinstalling drupal
=:-(
Comment #19
psynaptic commentedReopen this issue if you have the same problem with your fresh install.
Comment #21
drupalvino commentedHi,
I am using drupal 7. When I click the image, my custom form will be display in shadowbox or colorbox.
How can I display that form in shadowbox or colorbox?
any idea?