New field type 'Insert Link' (Feature request)

30 views
Skip to first unread message

Josua

unread,
Jan 15, 2013, 3:32:17 PM1/15/13
to silverst...@googlegroups.com
Hi all!

SilverStripe should have a field type 'Insert Link' (InsertLinkField).
This field would be similar to the floating window Insert Link of the HTMLEditor.
This way, it would be very easy to place in any CMS form the ability to link to a page on the site, outside it, a link to a file, to an anchor, etc.

Thanks,
Regards,
Jose A.

Sam Minnée

unread,
Jan 15, 2013, 5:09:24 PM1/15/13
to silverst...@googlegroups.com
Seems like a good idea to me. Patches welcome! ;-)

Nathan Cox

unread,
Jan 15, 2013, 6:08:21 PM1/15/13
to silverst...@googlegroups.com
I had a look at the existing Insert Link dialog to see if it could be
re-used for a field like this but it's very heavily tied in to the
HTMLEditorField so it'd probably take a lot of reworking to make it
reusable. Which is a shame since a consistent link inserting UI seems
like a good thing.
> --
> You received this message because you are subscribed to the Google
> Groups "SilverStripe Core Development" group.
> To view this discussion on the web visit
> https://groups.google.com/d/msg/silverstripe-dev/-/-911s6cQ49oJ.
> To post to this group, send email to silverst...@googlegroups.com.
> To unsubscribe from this group, send email to
> silverstripe-d...@googlegroups.com.
> For more options, visit this group at
> http://groups.google.com/group/silverstripe-dev?hl=en.

Sam Minnée

unread,
Jan 15, 2013, 6:25:58 PM1/15/13
to silverst...@googlegroups.com
A refactoring of that, so that HtmlEditorField relied mainly on InsertLinkForm (not to mention InsertMediaForm), would seem like a reasonable patch. I guess you may need InsertLinkEndpoint and InsertMediaEndpoint interfaces, that provide a number of methods that InsertLinkForm/InsertMediaForm can call to save all the data.
Reply all
Reply to author
Forward
0 new messages