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

Forums / Developing with Sitefinity / Changing master page content through sitefinity

Changing master page content through sitefinity

39 posts, 1 answered
  1. ashish
    ashish avatar
    22 posts
    Registered:
    05 Aug 2010
    10 Sep 2010
    Link to this post

    Hi,
    I am following PDF document to add custom fields in Image & Document module.
      
    PDF document is mentioned to download following files 

    Unzip that download and copy these files

    \Sitefinity\Admin\ControlTemplates\Libraries\LibraryItemEdit.ascx

    \Sitefinity\Admin\ControlTemplates\Libraries\App_LocalResources\LibraryItemEdit.ascx.resx

    Can you please tell me the download link of these files?

  2. Ivan Dimitrov
    Ivan Dimitrov avatar
    16072 posts
    Registered:
    09 Dec 2016
    10 Sep 2010
    Link to this post
    Hello ashish,

    Please take a look at How to map a template

    Best wishes,
    Ivan Dimitrov
    the Telerik team
    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
  3. ashish
    ashish avatar
    22 posts
    Registered:
    05 Aug 2010
    10 Sep 2010
    Link to this post

    But my sitefinity folder does not contains 'LibraryItemEdit.ascx and LibraryItemEdit.ascx.resx' files.

     

  4. ashish
    ashish avatar
    22 posts
    Registered:
    05 Aug 2010
    10 Sep 2010
    Link to this post

    Hi,           
    How can I provide user accounts feature where different users login their respective accounts and can see their own stuff selected in past.

  5. Ivan Dimitrov
    Ivan Dimitrov avatar
    16072 posts
    Registered:
    09 Dec 2016
    12 Sep 2010
    Link to this post
    Hi ashish,

    There is personalization dashboard which you can use for the backend ( each user can enable its own personalization from "My Profile" section at the backend). If you want to do this on the front end, you have to implement your own personalization logic to persist previous selected data and retrieve it by a control. 

    Sincerely yours,
    Ivan Dimitrov
    the Telerik team
    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
  6. ashish
    ashish avatar
    22 posts
    Registered:
    05 Aug 2010
    13 Sep 2010
    Link to this post
    How can I move up and down events like the functionality given in list?
  7. Ivan Dimitrov
    Ivan Dimitrov avatar
    16072 posts
    Registered:
    09 Dec 2016
    13 Sep 2010
    Link to this post
    Hi ashish,

    You can use  ListBox control or any other control like RadGrid, but you have to rebind it after your changes to the list.

    Sincerely yours,
    Ivan Dimitrov
    the Telerik team
    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
  8. ashish
    ashish avatar
    22 posts
    Registered:
    05 Aug 2010
    13 Sep 2010
    Link to this post
    Sorry for misunderstanding.

    Please find the attached image for the functionality given by sitefinity in lists.
     
    I want the same functionality in event module.How it is possible? 
  9. Ivan Dimitrov
    Ivan Dimitrov avatar
    16072 posts
    Registered:
    09 Dec 2016
    13 Sep 2010
    Link to this post
    Hi ashish,

    To do this at the backend, you need a custom module - the built-in one uses RadGrid control which is a required control populated through a web service and it is hard to replace it.

    Options

    1. Create a button in the RadGrid and rebind it when you move the items, so you will pass your event - IContent at proper position of the list. Here you have to map EventsItemsList template and you can add two colums ( GridTemplateColumn ) - one for moving an item up and another for moving an item down. You have to crate  an additional metakey ( say "Position") where you will set a value in the background when you move an item up/down. For instance the default value will be "0". If you move the content item up, you will set this value to "1" by using SetItemMetaData method and rebind the grid on the client.


    Inside EventsItemsList there is a js function -DataBindGrid with variable - requiredMetaFields where you have to add your custom metakey Position

    sample

    function DataBindGrid(currentPageIndex, pageSize, sortExpressionsAsSQL, filterExpressionsAsSQL) {
        var requiredMetaFields = ['Title', 'Author', 'Source', 'Publication_Date', 'Expiration_Date', 'Position', 'Category', 'Title2'];
        var cultureInfoField = document.getElementById('<%= cultureInfoField.ClientID %>');
        Telerik.Cms.Engine.Services.ContentService.GetContentItems(currentPageIndex * pageSize, pageSize,
        "Position DESC", filterExpressionsAsSQL, requiredMetaFields, cultureInfoField.value, dataProviderName, updateGrid, OnFailed);
    }

    your button should call another js function where you cal rebind() client side method of the RadGrid control or  a custom method similar to this one above that will force rebinding.

    function RebindWithPosition(sender, eventArgs) {
    var requiredMetaFields = ['Title', 'Author', 'Source', 'Publication_Date', 'Expiration_Date', 'Position', 'Category'];
    var cultureInfoField = document.getElementById('<%= cultureInfoField.ClientID %>');
    Telerik.Cms.Engine.Services.ContentService.GetContentItems(0, 50,
    "Position DESC", filter, requiredMetaFields, cultureInfoField.value, dataProviderName, updateGrid, OnFailed);
    }


    2. Use Repeater control - here you have to do the same - create two methods - MoveUp and MoveDown. Each of these methods will change the position of an IContent item in a List that will be used for control databing. You need to use content ID as an identifier to get the item in a list. The  ID should be set as command argument of each button ( each item will have a button - MoveUp, MoveDown)

    Sincerely yours,
    Ivan Dimitrov
    the Telerik team
    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
Register for webinar
39 posts, 1 answered
1 2