Experimental project
This is a sandbox project, which contains experimental code for developer use only.
Description:
Link Widget module provides an elegant way for wrapping a link around either an "image" or "text" field type output. It depends upon the Field Widget Storage API module, which provides a solution for saving extra widget configurations alongside a field.
What are the differences between Link Widget and related link modules?
The biggest difference is based on the modules architect; instead of creating another field type, I just created a field widget that extends the field configurations. You can make either an image or text field type linkable. This concept can be extended and can accommodate for other field types in future releases.
What are the advantages of the Link Widget module?
There are a couple advantages of the Link Widget module. First and foremost, there is less code to maintain. As I'm only defining a field widget, and don't have to worry about recreating the field component. Second, the Link Widget is flexible and making a text or image field linkable, is super easy and can be done by just selecting a field widget type "Link".
What link attributes does Link Widget module support?
- Class - Specifies one or more class names for an element.
- Rel - Specifies the relationship between the current document and the linked document.
- Target - Specifies where to open the linked document.
- Media - Specifies what media/device the linked document is optimized for.
- Type - Specifies the MIME type of the linked document.
Note: I exposed a drupal hook so other modules can add their own attributes.
Supported Modules:
Related Modules:
Dependencies:
Project information
- Project categories: Administration tools, Content display, Site structure
- Created by droath on , updated
