dcollins-marketwired
-
2/14/2014 2:46:07 PM
appending to a list of editable links
Hopefully this has a quick answer.
I want to provide sort of 'Quick Links' boxes on various pages. Authors should be able to add links as they see fit (so I don't know how many there might be. Maybe on the homepage they want Sitemap, FAQ, and Company Directory, and then someone later on wants to add our Facebook account).
I don't want them to be entering HTML since they could easily break it. I hope to provide them two fields for a link: a name and a URL.
The only way I've found to control their input, while a the same time not controlling how many links they add is to make a new doctype (with only two fields) called QuickLink, and add an instance of that doctype to that page, and then point a repeater at that doctype (so that it just grabs as many as there are). An author will have to add a new doctype QuickLink to the page and fill it out, just as if it were a whole subpage.
This seems like overkill. Or maybe not. Is there a more expedient way of doing it? Or am I on the right track?
|