Not sure if I'm doing anything wrong but the field slideshow works perfectly for me, however when I choose a Link type of Content or File and Save. Nothing changes in the actual slideshow, no hand cursor and of course no clickable link on the images that are rendered in the slideshow.
Hoping someone can give me a hint as to what's going on.
| Comment | File | Size | Author |
|---|---|---|---|
| #12 | link_doesnt_work-1442986-12.patch | 1.97 KB | idflood |
| #11 | field_slideshow-link_doesnt_work-1442986-0.patch | 2.41 KB | mxh |
Comments
Comment #1
multpix commentedLink doesn't work for me too
Comment #2
idflood commentedI tried to reproduce the issue with a fresh drupal 7.12 and field_slideshow 1.6 but haven't succeeded.
Can you give more details on your setup? There is no link at all or is it wrong?
Comment #3
tashaharrison commentedI'm having the same problem. The issue seems to be linking to content in the teaser when using views to display a number of teasers.
Comment #4
hgmartini commentedI have the same problem and same setup as mentioned in #3. The link doesn't get generated (I mean, there's no <a> in the html) in a view of teasers, when the slideshow is set to link to content, but it works when is linking to file. The only field shown in the teaser is the slideshow source (the other fields are hidden).
Other than the link problem, the slideshow works fine.
Installed: Drupal 7.14, Field Slideshow 1.6, Views 3.3.
Comment #5
hgmartini commentedI can add now that the same happens if the view format is "Fields" instead of "Content".
Comment #6
mariogalan commentedI can confirm this issue.
In my case, "Link to content" doesn't work regardless it's a teaser node or a full node.
If I select the option link to file or colorbox everything works fine.
The modules versions are the same as hgmartini's.
Comment #7
alisamar commentedsubscribe!
same problem here! Link to content doesn't work
Comment #8
mariogalan commentedFor Everyone's Information, this bug is fixed on the dev version.
If you don't want to upgrade yet, a quick fix is commenting line 577 on field_slideshow.module.
Original line:
You could remove the line or comment like this:
That worked for me.
Comment #9
mxh commentedI confirm this problem on D7.15 using minimal profile, link to content doesn't work.
Comment #10
idflood commented@maxelli: Are you using the 1.6 version? If so, can you try with the modification explained in #8?
Comment #11
mxh commentedHi idflood,
yes, I am using 7.x-1.6 at the moment. I just have applied the modification from #8 and it worked for me, but I think the $uri declaration should be placed at the beginning of the loop for required fields.
I've attached a patch for the current dev branch to show you what i mean with some small changes.
Comment #12
idflood commentedHi hauptm,
Thanks for the patch and the feedback. I'm not sure to understand the reason of some of your changes.
For instance
They are moved inside the "subloop", but since $entity_type doesn't change I would have moved them outside.
Same situation as above, $entity and $entity_type don't change so why not declare it outside of the loop?
But for the $uri declaration and check you are right, it looks cleaner the way you did it :)
Does the changes I propose make sense to you?
Comment #13
mxh commentedYeah you're right, leave them outside. It was just late in the night and for me it made sense to place the declarations near where you need it.
Your patch from #12 is working for the dev only, but that's what it should and makes sense.
Thanks for your patch.
Comment #14
idflood commentedThanks, committed patch #12.
Comment #15
mxh commentedBut my change on line 601, the $uri declaration is also dispensable in the dev branch.
because $uri is only needed in the sub-loop. Sorry for that :(
Comment #16
idflood commentedgood catch, thanks : )