twitter.png
facebook.png
youtube.png
linkedin.png

Concrete5 Link Attribute - Make It Clickable

Mar 12, 2011

The following little code is a handy way to create a new attribute type in Concrete5 that becomes a link. We used this code to create an attribute that we called 'Website' for a client that wanted a linking URL to their retailers website include on their Product Detail pages. Enjoy! Code was compliments of Ryan at Concrete5. Many thanks to him!

First create the following folders: /models/attribute/types/text_link

Then in the text_link folder create a new controller.php file with this code:



Tags:

Category: Awesome