I've created a number of views in drupal7 using Colorbox .x-1.0-beta1

the fields I load are
Node: Title
Fields: body
Fields: field_image
Colorbox: Colorbox trigger

the settings for Colorbox trigger are
Fields: field_image is the trigger (works)
Node: Title.. is the caption (works)
Fields: body.. opens in the pop up .. but skips the content

this is what happens
node 01 - title correct - no content
node 02 - title correct - content from node 1
node 03 - title correct - content from node 2
node 03 - title correct - content from node 3
node 04 - title correct - content from node 4.....

http://fionabennett.com/drupal/?q=couture

any suggestions would be much appreciated

thanks
stevie

Comments

frjo’s picture

Component: Documentation » Code
Assigned: stevieb » frjo
Status: Active » Needs review

Embarrassing bug you found in my code :-). Thanks for reporting it in such a clear and concise manner! I have committed a fix to 7-dev now.

If you can test it please report back here how it works.

You can get in directly via CVS or wait a few hours for the dev tarballs to be rebuilt. You can see on the date for "7.x-1.x-dev" when it is rebuilt, at the moment it says 2011-Jan-15. When you see it has changed to 2011-Jan-18 you can download it. A beta 2, that will include this fix, is not far away either.

It was the unique ID for each link that was counted up +1 in the middle of building the popup making the link point to the last node. Rookie mistake.

Really nice site you are building! Always fun to see ones code used in such places.

stevieb’s picture

Version: 7.x-1.0-beta1 » 7.x-1.x-dev
Status: Needs review » Fixed

you are god - it works beautifully

thank you thank you thank you

frjo’s picture

Title: popup first content » Colorbox views trigger opens content from last node instead of current

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.