Forums

Skip Navigation LinksHome / Developer Network / Forums / Sitefinity Older Versions (3.x): Developing with Sitefinity > Changing master page content through sitefinity

Changing master page content through sitefinity

  • ashish avatar

    Posted on Aug 17, 2010 (permalink)

    Hi there,

                I am creating master page in VS and after compiling the project, using it in SiteFinity CMS. The problem I am facing is I can’t change the content of Master page in CMS environment. Hence has to compile the application after changing master pages in VS and make a new release on server. I would like to know if there is any other easy workaround solution where no compilation is required.

    Reply

  • Ivan Dimitrov Ivan Dimitrov admin's avatar

    Posted on Aug 17, 2010 (permalink)

    Hello ashish,

    You do not have to compile the website. You have to restart the IIS server or make a dummy change in the web.config which will result in application reset. You can also upload the master page through backend UI - Pages >> Templates

    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

    Reply

  • ashish avatar

    Posted on Aug 17, 2010 (permalink)

    So far so good. But to edit the master pages, my client need license of Visual Studio. Is there any way where I can use normal html pages as template instead of Master pages?

    Reply

  • Ivan Dimitrov Ivan Dimitrov admin's avatar

    Posted on Aug 17, 2010 (permalink)

    Hello ashish,

    You can use only .master files. It is not  necessary to edit them through VS. VS Express is free and you can use it without a license, but actually this is not related to our product.

    All the best,
    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

    Reply

  • ashish avatar

    Posted on Aug 17, 2010 (permalink)

    Thanks for your reply.

    As we want to purchase sitefinity cms solution so is it neccessary to purchase rad controls license separately to use rad control in our solution.


     

    Reply

  • Ivan Dimitrov Ivan Dimitrov admin's avatar

    Posted on Aug 17, 2010 (permalink)

    Hi ashish,

    Sitefinity includes RadControl for ASP.NET AJAX that you can use for free in the context of the CMS, but you cannot use these controls in other applications.

    Kind regards,
    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

    Reply

  • ashish avatar

    Posted on Aug 18, 2010 (permalink)

    Hi

    Currently I am using  sitefinity 3.7  trail version and it is providing  only 3 rad controls in its panel,how can I able to use other rad controls in sitefinity?
    Will all controls be provided in full version of the solution?

    Thanks   

    Reply

  • Answer Ivan Dimitrov Ivan Dimitrov admin's avatar

    Posted on Aug 18, 2010 (permalink)

    Hello ashish,

    All RadControls are compiled in Telerik.Web.UI.dll which is located in project’s bin folder. Each customer can register every RadControl using the web.config file – toolboxControls section. Below is a snippet of this section

      <toolboxControls>
        <clear />
     
        <add name="RadPanelBar" section="RadControls" type="Telerik.Web.UI.RadPanelBar, Telerik.Web.UI" />
     
        <add name="RadScheduler" section=”RadControls” type=”Telerik.Web.UI.RadScheduler, Telerik.Web.UI”/>
    </toolboxControls>



    Regards,
    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

    Reply

  • ashish avatar

    Posted on Aug 18, 2010 (permalink)

    Hi
    I am using Form Builder module and it is integrated successfully with the sitefinity.But I unable to find out in which table form builder data is saving in db.

    Thanks

    Reply

  • Ivan Dimitrov Ivan Dimitrov admin's avatar

    Posted on Aug 18, 2010 (permalink)

    Hello ashish,

    As far as I know this is a GenericContent based module and for these type of modules the data is mainly stored in sf_GCMetaData and sf_CmsTextContent. You can contact the publisher of the module to gather more detailed information about the implementation.

    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

    Reply

  • ashish avatar

    Posted on Aug 19, 2010 (permalink)

    Hi,

    I am getting error on edit page of the application.

    Please find the attachment.

    Thanks
    Ashish Singh 

    Reply

  • ashish avatar

    Posted on Aug 19, 2010 (permalink)

    Attachment  file.
    Attached files

    Reply

  • Radoslav Georgiev Radoslav Georgiev admin's avatar

    Posted on Aug 19, 2010 (permalink)

    Hi ashish,

    This error is saying that the browser is returned an empty page - no html. Please row back the changes you have made to this page to see adding what control breaks the page.

    Regards,
    Radoslav Georgiev
    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

    Reply

  • ashish avatar

    Posted on Aug 20, 2010 (permalink)

    Hi,

    I want to create dynamic footer in my template.Is there any control by which I will be able to add footer links dynamically through sitefinity.

    Reply

  • Ivan Dimitrov Ivan Dimitrov admin's avatar

    Posted on Aug 20, 2010 (permalink)

    Hello ashish,

    You can use GenericContent control with SharedContent inside it.

    Greetings,
    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

    Reply

  • ashish avatar

    Posted on Aug 25, 2010 (permalink)

    Hi,

    I want to create ecommerce solution in my application.Like a user log in in his account also he will be able to see his recent acivities like purchase items,items in cart etc. How can I do that?
    Is there any module availabel in sitefinity.


    Thanks
    Ashish Singh

    Reply

  • Ivan Dimitrov Ivan Dimitrov admin's avatar

    Posted on Aug 25, 2010 (permalink)

    Hi ashish,

    There is not a built-in module in Sitefinity. You can crate a custom one


    or consider using Mallsoft e- commerce solution

    Greetings,
    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

    Reply

  • ashish avatar

    Posted on Sep 2, 2010 (permalink)

    Hi,

    I am working on RadGrid as the data is binded successfully but i am unable to edit data in grid.I saw examples as well but they are using SessionDataSource.Is it possible to use it with linq.

    Reply

  • Ivan Dimitrov Ivan Dimitrov admin's avatar

    Posted on Sep 2, 2010 (permalink)

    Hi ashish,

    Here are two articles that explain how to use LINQ


    All the best,
    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

    Reply

  • Ivan Dimitrov Ivan Dimitrov admin's avatar

    Posted on Sep 2, 2010 (permalink)

    Hi ashish,

    SessionDataSource is a sample control which is used in our online demos. The  purpose  of this control is saving the data into session  instead of a database table. SessionDataSource is used in the RadControls demos only for testing and demonstration  purposes. In real-life scenarios you should use  LinqDataSource, SqlDataSource etc.

    Kind regards,
    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

    Reply

  • ashish avatar

    Posted on Sep 8, 2010 (permalink)

    I want to add some new feilds in registration form as a result it will require some addtional columns in database telerik_Users datatable.Please suggest me how can I do that?

    Reply

  • Ivan Dimitrov Ivan Dimitrov admin's avatar

    Posted on Sep 8, 2010 (permalink)

    Hi ashish,

    You can add columns to the table through SQL Server Management Studio. Then you can use LINQ to query the tables you want by creatin  DataContext class.

    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

    Reply

  • ashish avatar

    Posted on Sep 8, 2010 (permalink)

    How can I add and save new fields in 'CreateUserWizardControl.ascx' login usercontrol given in sitefinity?    

    Reply

  • Ivan Dimitrov Ivan Dimitrov admin's avatar

    Posted on Sep 8, 2010 (permalink)

    Hi ashish,

    You can take  a look at CreateWizardUser explains . The control is located under Sitefinity\UserControls\Login\CreateUserWizardControl.ascx. This is a user control, so you will be able to observe its code. Inside the template there is a ManageProfile control inside which template you can add more fields ( profile properties only).

    All the best,
    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

    Reply

  • ashish avatar

    Posted on Sep 8, 2010 (permalink)

    Is sitefinity proving any function to get all images file name inside a library?

    Reply

  • Ivan Dimitrov Ivan Dimitrov admin's avatar

    Posted on Sep 8, 2010 (permalink)

    Hi ashish,

    Each image in a library is IContent item. You can get the name by using GetMetaData("Name") method of IContent object. Please take a look at Overview of Generic Content API

    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

    Reply

  • ashish avatar

    Posted on Sep 9, 2010 (permalink)

    I want to create user control to display images of a library.I want to use image library dynamically.Also i want to get the url of the images which is associated with a library.    

    Reply

  • Ivan Dimitrov Ivan Dimitrov admin's avatar

    Posted on Sep 9, 2010 (permalink)

    Hi ashish,

    All items from a library are IContent objects.Please refer to the article that I sent you which explains Generic Content API and how to get these items.

    Greetings,
    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

    Reply

  • ashish avatar

    Posted on Sep 9, 2010 (permalink)

    I want to modify image and document module i.e. I want to add new field for target url of the image so that when i click on the image it redirect me to another page or website.   

    Reply

  • Ivan Dimitrov Ivan Dimitrov admin's avatar

    Posted on Sep 9, 2010 (permalink)

    Hi ashish,

    You can create a new metakey where you will enter the url, take a look at UserManual, page 214. Then you can use this link to open a new page. If you use Image Gallery control you can open the image in new window, but id depends on the mode you use. Generally you could override SetItemMetadata method from where you can access the "download link" that shows the image and set Target property.

    HyperLink downloadLink = itemContainer.FindControl("DownloadLink") as HyperLink;


    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

    Reply

  • ashish avatar

    Posted on Sep 10, 2010 (permalink)

    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?

    Reply

  • Ivan Dimitrov Ivan Dimitrov admin's avatar

    Posted on Sep 10, 2010 (permalink)

    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

    Reply

  • ashish avatar

    Posted on Sep 10, 2010 (permalink)

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

     

    Reply

  • ashish avatar

    Posted on Sep 10, 2010 (permalink)

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

    Reply

  • Ivan Dimitrov Ivan Dimitrov admin's avatar

    Posted on Sep 12, 2010 (permalink)

    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

    Reply

  • ashish avatar

    Posted on Sep 13, 2010 (permalink)

    How can I move up and down events like the functionality given in list?

    Reply

  • Ivan Dimitrov Ivan Dimitrov admin's avatar

    Posted on Sep 13, 2010 (permalink)

    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

    Reply

  • ashish avatar

    Posted on Sep 13, 2010 (permalink)

    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? 
    Attached files

    Reply

  • Ivan Dimitrov Ivan Dimitrov admin's avatar

    Posted on Sep 13, 2010 (permalink)

    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

    Reply

  • Register for webinar
Skip Navigation LinksHome / Developer Network / Forums / Sitefinity Older Versions (3.x): Developing with Sitefinity > Changing master page content through sitefinity