+1-888-365-2779
Try Now
More in this section

Forums / Suggestions / Predefined selectors for use in backend modules

Predefined selectors for use in backend modules

18 posts, 0 answered
  1. Daniel Plomp
    Daniel Plomp avatar
    952 posts
    Registered:
    18 Feb 2004
    04 Nov 2011
    Link to this post
    Hi telerik,

    It would be great if we could add predefined selector fields in the backend as a custom field.
    Now you can choose for 'Short text', 'Taxonomies' etc., but it would be nice to have also:

    - Page selector field
    - Image selector field
    - Multiple image selector field


    Is this something worth for a new feature?

    Regards,
    Daniel
  2. Lubomir Velkov
    Lubomir Velkov avatar
    688 posts
    Registered:
    03 Nov 2014
    08 Nov 2011
    Link to this post
    Hi Daniel,

    Thank you for this suggestion. I will investigate this and probably will write a KB article or a blog post on how to achieve this in the next few days. Thank you again for your suggestion.

    All the best,
    Lubomir Velkov
    the Telerik team
    Do you want to have your say in the Sitefinity development roadmap? Do you want to know when a feature you requested is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
  3. Daniel Plomp
    Daniel Plomp avatar
    952 posts
    Registered:
    18 Feb 2004
    14 Nov 2011
    Link to this post
    Hi Lubomir,

    Any update on this? Would be nice to at least have a selector for the image field with use of the new image upload/crop/resize functionality.

    Thanks!
    Daniel
  4. Lubomir Velkov
    Lubomir Velkov avatar
    688 posts
    Registered:
    03 Nov 2014
    15 Nov 2011
    Link to this post
    Hello Daniel,

    I am still working on this. I hope by the end of the week I will have a blog post about how to use different selectors. I will see to it to have at least the new image selector described.

    Kind regards,
    Lubomir Velkov
    the Telerik team
    Do you want to have your say in the Sitefinity development roadmap? Do you want to know when a feature you requested is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
  5. Daniel Plomp
    Daniel Plomp avatar
    952 posts
    Registered:
    18 Feb 2004
    24 Nov 2011
    Link to this post
    Hi Lubomir,

    Still busy on the post?
    I'm eager to see how I can use this.

    Thanks!
    Daniel
  6. Lubomir Velkov
    Lubomir Velkov avatar
    688 posts
    Registered:
    03 Nov 2014
    25 Nov 2011
    Link to this post
    Hello Daniel,

    I'm still on it. I think I will be able to post some posts during the weekend. Stay tuned.

    All the best,
    Lubomir Velkov
    the Telerik team
    Do you want to have your say in the Sitefinity development roadmap? Do you want to know when a feature you requested is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
  7. Daniel Plomp
    Daniel Plomp avatar
    952 posts
    Registered:
    18 Feb 2004
    01 Dec 2011
    Link to this post
    Thanks for the blogpost.
    Would you be so kind to explain how to register this field?

    Thanks,
    Daniel
  8. Daniel Plomp
    Daniel Plomp avatar
    952 posts
    Registered:
    18 Feb 2004
    01 Dec 2011
    Link to this post
    Okay, never mind. Found it.
    Is it also possible to use the LinkManagerDialog here?

    Telerik.Sitefinity.Web.UI.LinkManagerDialog

    So that we can also check external websites?

    Daniel
  9. Lubomir Velkov
    Lubomir Velkov avatar
    688 posts
    Registered:
    03 Nov 2014
    04 Dec 2011
    Link to this post
    Hi Daniel,

    I was thinking about that - about making the dialog with two tabs - one for internal site pages and the other for external pages. The problem is how to store the selected value, since we have only one field and we have to distinguish the value stored in it.

    You could also check this blog post by Josh Morales:

    http://www.sitefinity.com/blogs/joshmorales/posts/11-10-05/selecting_sitefinity_4_content_inside_widget_designers.aspx

    Kind regards,
    Lubomir Velkov
    the Telerik team
    Do you want to have your say in the Sitefinity development roadmap? Do you want to know when a feature you requested is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
  10. Daniel Plomp
    Daniel Plomp avatar
    952 posts
    Registered:
    18 Feb 2004
    08 Feb 2012
    Link to this post
    Hi Lubomir,

    I'm curious if you were able to finish your blogposts? Hope so!
    Other question: how can we use the pageselector inside the insert/edit views of a custom module?

    Regards,
    Daniel
  11. Lubomir Velkov
    Lubomir Velkov avatar
    688 posts
    Registered:
    03 Nov 2014
    09 Feb 2012
    Link to this post
    Hello Daniel,

    I'm still working on the next blog post in the series - an image and multiple image selector.

    As for your other question - since the PageSelector is just a FieldControl, like any other field controls it may be included in the definitions of your Edit/View views - the same way as, e.g., TextField - either with the new Fluent definitions API or the classic definitions API. A very good example on the latter may be found in the Products or Locations modules from the SDK.

    Kind regards,
    Lubomir Velkov
    the Telerik team
    Do you want to have your say in the Sitefinity development roadmap? Do you want to know when a feature you requested is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
  12. Daniel Plomp
    Daniel Plomp avatar
    112 posts
    Registered:
    14 Jun 2012
    15 Mar 2012
    Link to this post
    Hi Lubomir,

    It would be still a great addition to have the 'Media' type as a custom field available in the other modules. Is this doable? And... is the long awaited blogpost doing okay?

    Thanks,
    Daniel
  13. Daniel Plomp
    Daniel Plomp avatar
    112 posts
    Registered:
    14 Jun 2012
    15 Mar 2012
    Link to this post
    Hi Lubomir,

    It would be still a great addition to have the 'Media' type as a custom field available in the other modules. Is this doable? And... is the long awaited blogpost doing okay?

    Thanks,
    Daniel
  14. Daniel Plomp
    Daniel Plomp avatar
    952 posts
    Registered:
    18 Feb 2004
    13 Apr 2012
    Link to this post
    Hi Lubomir,

    I think I cannot find the blogpost, or you didn't have time to write it?
    Could you explain how I can include the 'MediaField' that is available in the Dynamic Modules, in the other modules?

    Thanks,
    Daniel
  15. Travis
    Travis avatar
    86 posts
    Registered:
    15 Oct 2008
    19 Apr 2012
    Link to this post
    Hi Daniel,
    I'm not sure if you've addressed using the Page Selector from the Insert/Edit views or not, but, I have a working implementation of that in one of my custom modules (Sitefinity 5.0.2500). It is only for selecting in-site pages, however. I would love to see a control that supported both internal and external links, but I understand the difficulties around storing the value.

    On my data item, I have a guid called "PageGroupID". In my definitions file, I have the following defined for that field in my Insert/Edit view

    var pageGroupField = new PageFieldElement(mainSection.Fields)
                {
                    ID = "pageGroupField",
                    DataFieldName = "PageGroupID",
                    DisplayMode = displayMode,
                    Title = "PageGroupFieldTitle",
                    WrapperTag = HtmlTextWriterTag.Li,
                    ResourceClassId = typeof(PartnersResources).Name,
                    RootNodeID = Telerik.Sitefinity.Abstractions.SiteInitializer.FrontendRootNodeId,
                    WebServiceUrl = "~/Sitefinity/Services/Pages/PagesService.svc"
                };
                mainSection.Fields.Add(pageGroupField);

    Hopefully this will be helpful.
  16. Daniel Plomp
    Daniel Plomp avatar
    952 posts
    Registered:
    18 Feb 2004
    20 Apr 2012
    Link to this post
    Hi Travis,
    Thanks for your reply.

    I was addressing the fact that I'd like to use a:
    - PageSelector
    - ImageSelector
    - MultipleImageSelector
    - DocumentSelector

    inside of:
    - Custom Module
    - Custom Widget
    - As a Custom Field inside built-in modules

    Now for the Custom Widget and Custom Field I'm having it all covered. For the Custom Module I was aware of the code you posted. (but still need a solution for using a document selector)

    The point is that this are 3 different approaches for the same thing.
    I like the Custom Module approach the best :)

    Would be great to see the ability to use the 'Media Selector' that is also built in the Dynamic Modules.

    Thanks anyway,
    Daniel
  17. Tabish Usman
    Tabish Usman avatar
    25 posts
    Registered:
    27 May 2011
    15 Jun 2012
    Link to this post
    hi Travis

    I have tried  Your code but i never get the Guid of selected page i always get empty Guid in my  PageGroupID  property,
    any idea on this
  18. Travis
    Travis avatar
    86 posts
    Registered:
    15 Oct 2008
    15 Jun 2012
    Link to this post
    Hi Tabish,
    Hmm, very strange. As long as your ContentItem has a property called PageGroupID, i think it should work. I have this defined in the following way in my ContentItem:

    private Guid pageGroupID;
     
     [DataMember, FieldAlias("pageGroupID")]
     public Guid PageGroupID { get { return this.pageGroupID; } set { this.pageGroupID = value; } }

    Do you get any Javascript errors?
18 posts, 0 answered