Jump to:

7940 Posts in 1543 Topics by 946 members

DataObjectManager Module

SilverStripe Forums » DataObjectManager Module » Add a DataObject Type to the WYSIWG Link Selector

Discuss the DataObjectManager module, and the related ImageGallery module.

Moderators: martimiz, UncleCheese, Sean, biapar, Willr, Ingo, swaiba, simon_w

Page: 1
Go to End
Author Topic: 1449 Views
  • brice
    Avatar
    Community Member
    51 Posts

    Add a DataObject Type to the WYSIWG Link Selector Link to this post

    I'd like the ability for the CMS user to add link to a particular [dataObject] when editing page content.

    Is it possible to add a DataObject Type to the WYSIWYG Link Selector? For example: I've create an "Authors" Class which extends DataObject.

    The CMS user would click the TinyMCE link icon, which opens the right frame sidebar. Currently the Link Selector reads the following radio boxes:

    Link To:

    + Page On Site
    + Another Website
    + Anchor
    + ...

    I would like to add "Author" to this radio selection, and then pop down a list of authors similar to the "Page On Site" feature.

    Any ideas?

  • UncleCheese
    Avatar
    4085 Posts

    Re: Add a DataObject Type to the WYSIWG Link Selector Link to this post

    That's a stretch, considering that DataObject subclasses don't have links by default. You can give them a Link() function, but that assumes you've set up a framework for displaying them on your holder page.

    Anything's possible, though. I would love to see Silverstripe open up that part of the CMS a little more. Right now it's just a black box.

  • erwanpia
    Avatar
    Community Member
    63 Posts

    Re: Add a DataObject Type to the WYSIWG Link Selector Link to this post

    "Right now it's just a black box."

    considering your contribution to Silverstripe, UncleCheese, you've already fallen in that mysterious black box.

    Is it really that black in there ? How do we get in ? any light out ? Anyway my customers don't care they think it's fun

  • brice
    Avatar
    Community Member
    51 Posts

    Re: Add a DataObject Type to the WYSIWG Link Selector Link to this post

    I see. I'll check into this when time avails!

    1449 Views
Page: 1
Go to Top

Want to know more about the company that brought you SilverStripe? Then check out SilverStripe.com

Comments on this website? Please give feedback.