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

Forums / Designing with Sitefinity / A few questions, curiosities

A few questions, curiosities

9 posts, 1 answered
  1. Joshua Taylor
    Joshua Taylor avatar
    7 posts
    Registered:
    23 Dec 2009
    31 Dec 2009
    Link to this post
    I'll start this off by saying I am not a .NET programmer.  I have a decent knowledge of programming in general, but no experience with .NET.  In Sitefinity, I work primarily as a skinner, but I also maintain my personal site using the Sitefinity community edition.  In my time working with Sitefinity, a number of things have piqued my curiosity (and in some cases, my frustration).  I'm hoping I can get some explanations, and possibly some resolutions.

    1) Why does the SitePanelBar have the functionality to "expand" and "collapse", if it is guaranteed that anytime someone clicks a link in the panel bar, it will take them to a new URL?  Is there a way to globally disable this functionality?  Many of our clients, and my site visitors, ask why this functionality exists.

    2) If I remap a user control template, such as the news list, why do I lose all of the administrative UI (select the category, display type, elements to display)?  Is there a way to avoid this?  I would really like to restructure the news view for my home page (in divs), as it is very difficult to set up a floating thumbnail that is properly aligned, when the thumbnail is located below so many elements in the HTML structure.

    3) How do I cause the generic content editor to display content using my theme?  As opposed to the generic Times New Roman unstyled-web-page appearance.

    4) Is there a way to tell Sitefinity to:

    Redirect to ~/sitefinity/login.aspx IF the file that the user is trying to access is in the ~/sitefinity directory

    OR

    Redirect to ~/Resources/login.aspx IF the file that the user is trying to access is NOT in the ~/sitefinity directory

    The issue is, I don't want my normal site members redirected to the ~/sitefinity/login.aspx page -- I don't want them to ever see it.  But, as it stands, if they logout from a non-public page, they are redirected to the sitefinity login page.  I am also concerned that even if I find a fix for this, the ?ReturnUrl functionality would stop working.

    5) When will more granular permissions for blogs, and images and documents be added?  It is difficult to "dole out" blogs for members, knowing that any member has access to all members' blogs.

    6) There are apparently a large number of "hidden" features in Sitefinity, such as the table tool in the generic content control, which are disabled by xml files throughout the ~/sitefinity directory.  Is there a concise documentation of these anywhere?  I would really like to discover, and enable a lot of these capabilities.  Right now, I only find them when I go looking for something specific, but I would love to unlock Sitefinity's true potential by having a list in front of me of what "comes disabled".

    Note: I know how to locate and enable tools in the generic content editor -- what I'm looking for is a more universal list of "Sitefinity has all these features, but they are disabled by default; here's how to enable them" list.

    ----------

    Again, my apologies if any of this is obvious.  I am not a .NET programmer, and am not familiar with Visual Studio, so a lot of this may be simple, but it eludes me.

    Thanks in advance for any assistance you can offer.
  2. Radoslav Georgiev
    Radoslav Georgiev avatar
    3370 posts
    Registered:
    01 Feb 2016
    04 Jan 2010
    Link to this post
    Hello Joshua Taylor,

    Thank you for using our services.

    Let me try to briefly answer your questions in the post bellow:

    1) The SitePanelbar control is a user control which wraps the functionality of RadPanelbar. The expand feature is built in the RadPanelbar and has a number of uses. One of them for example is when your users are on a child page. Then the panel bar will expand to show the child page users are currently on. Unfortunately the RadPanelbar control does not support disabling expand and collapse feature.

    2) This is not the default behavior of Sitefinity controls. The control and its control designer are two different classes. This means that if you map the News View control to use your own templates for List Page mode (~/Sitefinity/ControlTemplates/News/ListPageMaster.ascx) this will not affect the work of the control designer. The control designer should work, no matter that you have mapped a custom template for the News View. On the other hand you can map the control designer to use a custom template. For the news it is located in ~/Sitefinity/Admin/ControlTemplates/News/NewsViewControlDesigner.ascx. For more information on mapping controls to use custom templates please check this KB article - How to map a view to an external template, in Sitefinity 3.6 or later?

    3) You can edit the control template for the Generic Content control and make the RadEditor's ContentAreaCssFile property point to your theme's CSS. To do this take the ~/Sitefinity/Admin/ControlTemplates/Generic_Content/GenericContentDesigner.ascx and make the RadEditor ContentAreaCssFile property point to a CSS file that has the same styles as defined in your theme. 
    <telerik:RadEditor
    runat="server"
    ID="textEditor"
    ContentAreaCssFile="~/Sitefinity/Admin/Themes/Default/AjaxControlsSkins/Sitefinity/EditorContentArea.css"
    ToolsFile="~/Sitefinity/Admin/ControlTemplates/EditorToolsFile.xml"  
    Skin="WebBlue"  
    NewLineBr="False"
    Height="360px"
    Width="98%"
    AllowScripts="true"
    ContentFilters="None">

    I would suggest that instead of pointing to a new file you alter the default one by removing the style rules you want to change and adding your own.

    Then map the external template of the Generic Content control with the following config line in the controls config file and restart the website:

    <viewSettings hostType="Telerik.Cms.Engine.WebControls.Design.GenericContentDesigner" layoutTemplatePath="~/Sitefinity/Admin/ControlTemplates/Generic_Content/GenericContentDesigner.ascx" />

    4) Unfortunately there is no out of the box feature like this yet. You can set the path your log-in page in web.config. Thus make it to some public page which has login control in it. In the web.config you have this:
    <authentication mode="Forms">
        <forms name=".ASPNET" loginUrl="~/sitefinity/login.aspx" protection="All" timeout="1440" path="/"/>
    </authentication>

    You can put any path there. This way you will prevent public users being redirected to the default login page for Sitefinity.

    In order to achieve what you are looking for a custom HttpModule is required. This module should inherit from IHttpModule and on the BeginRequest event you should check what the request is and if user is authenticated. If user is not authenticated should be redirected to appropriate log-in page. A tutorial on IHttModule can be found in this MSDN article.

    5) Granular permissions will be introduced in the new major version of Sitefinity - Sitefinity 4.0. In this version we will have permissions per user alone and down to the single content item. Sitefinity 4.0 is expected by the end of the first quarter of this year.

    6) A good starter is User Manual, which explains how Sitefinity works from the end user's perspective. It contains information on how to enable your website to support multiple languages, enable workflow for pages and content items, etc. For users that need more customizations we have Webinars, KB Articles, Blogs, and the Developer Manual. A good source of information on the building parts of the CMS can be bound here - Sitefinity backend architecture - documentation outline.

    Regards,
    Radoslav Georgiev
    the Telerik team

    Instantly find answers to your questions on the new Telerik Support Portal.
    Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
    Answered
  3. Joshua Taylor
    Joshua Taylor avatar
    7 posts
    Registered:
    23 Dec 2009
    04 Jan 2010
    Link to this post
    Thank you very much for your input!  This helps tremendously, and gives me a good starting point to review and try to resolve some of these issues I'm having.
  4. Joshua Taylor
    Joshua Taylor avatar
    7 posts
    Registered:
    23 Dec 2009
    04 Jan 2010
    Link to this post
    To follow-up a bit, here are some additional questions.  I'm sure I will have even more as I work to employ the functionality you've mentioned below.

    1) I understand the usefulness of the "expanded" areas of navigation.  The part that doesn't make sense to me is the expand animation.  The instant that a user clicks on a "parent" page, they are directed to that page, or to the first page in that group.  Ideally, there is no time for the user to click a section, then click an expanded item from that section.

    2) I followed the instructions in the article you mentioned twice before, without success.  I will try this again, and let you know if I get the appropriate results, or the same results I got before.

    4) Is the HttpModule information there for me to replicate the ?ReturnUrl functionality?

    5) I'm glad to hear this will be in 4.0 - it is one of the biggest hindrances I have encountered.

    Thanks again, and I'm working on implementing a lot of the functionality that you explained in your post.
  5. Joshua Taylor
    Joshua Taylor avatar
    7 posts
    Registered:
    23 Dec 2009
    04 Jan 2010
    Link to this post
    I followed some of the instructions you supplied for #3, but was unsuccessful.  Here are the steps I followed:

    I copied the GenericContentDesigner.ascx file from the external templates that I downloaded from the Sitefinity website, to the ~/Sitefinity/Admin/ControlTemplates/Generic_Content directory of my site.  I did not make any changes to this file, but I did take note that the CSS file was pointed to the one noted below.

    I modified the CSS in ~/Sitefinity/Admin/Themes/Default/AjaxControlsSkins/Sitefinity/EditorContentArea.css to contain some blatant changes to the header tags.

    I inserted the following into my pre-existing controls config file (which I used to remap the events schedule view control template):

    <viewSettings hostType="Telerik.Cms.Engine.WebControls.Design.GenericContentDesigner" layoutTemplatePath="~/Sitefinity/Admin/ControlTemplates/Generic_Content/GenericContentDesigner.ascx" /> 

    Upon uploading these changes, and stopping / starting my web site, I see no change to the generic content editor.
  6. Ivan Dimitrov
    Ivan Dimitrov avatar
    16072 posts
    Registered:
    25 Nov 2016
    04 Jan 2010
    Link to this post
    Hello Joshua Taylor,

    Try making a dummy change in the GenericContent control designer template - GenericContentDesigner.ascx and see whether this will reflect when you open the control in "Edit" mode. If the change you made is there, the problem is in the css classes you are modifying, otherwise the template has not been mapped.

    Best wishes,
    Ivan Dimitrov
    the Telerik team

    Instantly find answers to your questions on the new Telerik Support Portal.
    Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
  7. Joshua Taylor
    Joshua Taylor avatar
    7 posts
    Registered:
    23 Dec 2009
    05 Jan 2010
    Link to this post
    Ivan -- I'm not sure how, but I have managed to get this working now.  I'm going to play around with it and see if I can get it working the way I want it to.

    Thanks for your input!  I really should have thought of that, given how many times I've tested loops and conditionals just by spitting things out on the page!
  8. Radoslav Georgiev
    Radoslav Georgiev avatar
    3370 posts
    Registered:
    01 Feb 2016
    06 Jan 2010
    Link to this post
    Hi Joshua Taylor,

    Each time you map a control template in the controls configuration xml file you should restart the website in order to make the control use the external template. This is probably why it did not work the first time.

    Regards,
    Radoslav Georgiev
    the Telerik team

    Instantly find answers to your questions on the new Telerik Support Portal.
    Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
  9. Joshua Taylor
    Joshua Taylor avatar
    7 posts
    Registered:
    23 Dec 2009
    06 Jan 2010
    Link to this post
    I'm certain I stopped and started it -- I got an XML error while working on it, because I double-closed an element.

    Maybe it's a caching issue?  Either browser or Sitefinity?
Register for webinar
9 posts, 1 answered