Sometimes you want your slides to link to external sites, or specific pages. That's exactly what this video shows how to do
Link to pages other than the node
You can also setup a slideshow that links to other pages on your site, or to other websites entirely. This is done using the Link module.
Install
Enable
Once you have the module installed you'll that find in the fields section of your module page.
- Enable 'Link' module
Edit Content Type
- Go to "Structure => Content types => Featured Content => Manage fields" (admin/structure/types/manage/featured_content/fields)
- Add new field
- Label: Slide Link
- Type: Link
- Widget: Link
- [ ] Required field (You may chose to make this field required. If it's not required, you could add slides that don't link anywhere.)
- Link Title: No Title (All we want here is the link, we'll use the content title, or image as the clickable item.)
Edit content to add link
Now, I'll edit the featured content and fill in the link fields. So, I'll go to the content tab, edit the pieces of Featured Content and add links.
- Go to "Content" (admin/content)
- Edit all Featured Content
- Add links
Edit View to link title/image to link value
Now, let's update our view to link to the supplied link instead of the content itself.
- Go to "Structure => Views => Featured Content" (admin/structure/views/view/featured_content)
- Select the Block display
- Add field: Content: Slide Link
- [ ] Create a label
- [x] Exclude from display (We're going to rewrite the image and title field instead of displaying the link itself.)
- Rearrange the fields. Move "Content: Slide Link" to the top. This allows the other fields to use it when rewriting their display.
- Configure the field: Content: Title
- [ ] Link this field to the original piece of content
- Expand the "Rewrite Results" section
- [x] Output this field as a link
- Link path: [field_slide_link] (You can find this in the replacement patterns below)
- Configure the field: Content: Featured Content Image (The first one, not the pager)
- Link image to: Nothing
- Expand the "Rewrite Results" section
- [x] Output this field as a link
- Link path: [field_slide_link] (You can find this in the replacement patterns below)
- Save
Now, when we view the slideshow, we see that the images and titles link to the URL entered in the Slide Link field. You'll also notice that the third slide (without a link) simply doesn't link anywhere, and the fifth slide (which linked to node/6) links to it's full content.