Skip to content

FruitLinkIt

spAnser edited this page Jun 24, 2016 · 1 revision

FruitLinkIt One link field to replace them all, a multi-purpose link fieldtype for Craft CMS.

{
    "fields": [
        {
            "group": "Default",
            "name": "Link It",
            "handle": "linkIt",
            "instructions": "This is not a required field.",
            "required": false,
            "type": "FruitLinkIt",
            "typesettings": {
                "types": [
                    "email",
                    "tel",
                    "custom",
                    "entry"
                ],
                "defaultText": "Default Link Text",
                "allowCustomText": 1, // Allow custom link text
                "allowTarget": 1, // Allow option to open link in new window
                "entrySources": ["singles"], // Use the handle of the Entry or leave blank for all. To select Singles use the string "singles".,
                "entrySelectionLabel": "Select an entry"
            }
        }
    ]
}
Clone this wiki locally