More in this section

Forums / Developing with Sitefinity / 15 Questions/Features I have not found the solution

15 Questions/Features I have not found the solution

12 posts, 0 answered
  1. Markus
    Markus avatar
    2763 posts
    Registered:
    25 Nov 2005
    26 Aug 2009
    Link to this post
    Played around with 3.7 trial and came across 10 Questions I could not find the answer to in the support section

    1) LanguageBar

    It seems to be a drop down only. If I want to display the languages like | english | french | germen do I have to amend it to my needs (I would asume some else wanted that in the past)

    2) ChangeLanguage with Link

    What is the best way to have a language change with a simple link kind of: check out our italian page for more info

    3) DynamicLinks to pages not shown in Navigation

    I can make links to pages from generic editor to pages which seems to be excelent because even if renamed they would (asumingly) still work. But only the pages I show in the navigation can be choosen

    4) Having URL's without .aspx

    I have two questions. It seems that all the pages have the same name in every language. I don't know why since I assume it could have been solved with some unique ID. However I can use extra URL's in the options.

    But marketing wise its just nicer ot have www.myurl.com/products then www.myurl.com/products.aspx
    So what's the best practice there. Naming the page default.aspx would not do the trick As I tried that

    5) News localization

    Is there a way to localize news. Or do I just have to have 3 articles under different categories (en/fr/de for example)

    6) MenuDepth

    Since I don't want to display submenues in my main navigation I changed the SiteMenu.ascx under SF/UserControls/Navigation35.

    a) why are these not like the other contols under ControlTemplates
    b) can they be mapped externaly as well? I don't want to have them overwirten on updates

    7) Upgrade to Standard
    If a client starts with Community because he will never need a second langue and as you know that changes as soon as you are finished. Is it possible to upgrade an existing community version to standards withoui pain?

    8) News
    I guess this is kind of a feature request. Sometimes News are short so you dont need to display a summery first to go into details. I made the amendments to SF/ConrolTemplates to have them show the content directly. I think it would be nice to have an option on news arrticles to show summery or full content on single news level.

    9) Search
    Starting Page seems to work also only for pages that are shown in navigation. Is that correct?
    Also I somehow had the feeling that the search is over the whole site all languages, is this correct or is it possible to have language seperate searches?

    10 Rollback
    Rollback deletes all later versions. Imagine a client calling you I rolled back on the much. Sorry no help there. I think a rollback should allways create a new version of the page. Is there a easy way to accomplish this (besides waiting for 4.0 :-)

    11) Not all files deploid
    I don't know how this happend but when I installed a simple page it seemd I did not get all the files needed. Under SF/ControlTemplates/News there were only about 3 files but I found about 15 in another directory I created somewhere along the way in an other folder/project.
    Is this something I did wrong or are the files depending on template you are using when setting up a project

    12) Installation Folder
    Seems to be standards /programme/sitefinty/version/website is there a way to change this. I have an extra drive with client data beeing saved every night. I am not saving programmes directories. So it would be nice to change the directory on project creation. Is this possible. (Now I just copied the files to my clients drive) No problem at all but not to nice either.

    13) Missing themes
     I started once with a template, changed the masters and themes. Applied them to alle pages and deleted the old masters and templates. If you have group pages that use the deleted masters and or templates you are in trouble since you will not be able to change them. I just uploaded a fake master and fake template to get it back working. Is there a better way. Kind of setting the theme in properties of a page like the file name (might be an idea for 4.0) It would be quicker then having to go to edit mode first.

    14) Control Templates
    It is very cool to have the possibility for mapping templates. But you have to read first. Download some stuff. Create a xml file in App_Data/configuration

    Would it maybe make sence to have for all UserControls a counterpart by default News / MyNews, Blogs / MyBlogs
    And the App_Data/configuration/Telerik.Site.Confi....ControlsConfig.xml in place with all the needed XML but commented out. Like this you could when needed just go right ahead and outcomment the correct section.

    I assume that a lot of developers will need to change stuff around :-)

    15) Localization of News
    How would I localizate the .resx files for News. Just like ListPageMaster.ascx.de.resx ?

    I don't need lengthy answers. Usually shoving me in the right direction is help enough.

    Regards Markus
  2. Radoslav Georgiev
    Radoslav Georgiev avatar
    3370 posts
    Registered:
    01 Feb 2016
    27 Aug 2009
    Link to this post
    Hello Markus Berchtold,

    Thank you for using our services. Let me try to give you some answers to the questions you have posted.

    1) LanguageBar

    I have attached a user control that modifies the appearance of the language selection. It renders the language bar as a flag list. You can modify it just to list the language names.

    2) ChangeLanguage with Link

    The same as in question 1. Consider changing the <LayoutTemplate>  in the LanguageFlagList.ascx markup.

    3) DynamicLinks to pages not shown in Navigation

    This is a known issue with Sitefinity 3.7. Theissue comes from the fact that the page selector in Sitefinity 3.7 isbound to the Sitemap Navigation. Now if a page is set as not show innavigation it will not appear also in the page selector. This issueshould be fixed in our upcoming releases. As a temporary workaround youcould try just typing in the URL to the page.

    4) Having URL's without .aspx

    Can you please check the IIS custom error configuration on your beta server. you have to provide custom redirection for 404 pages, be point to ~/YourSite/sf404.aspx. To do this in IIS 6.x, please follow these steps:

    1.Click All Programs > Administrative Tools> Internet Information Services (ISS) Manager.
    2.Expand the tree on the left until you see Web Sites > Default Web Site.
    3.Expand the Default Web Site folder.
    4. Right click your project folder and select Properties.
    5.On the Custom Errors tab, select HTTP error 404.
    6.Click Edit.
    7.From the Message Type list, choose URL.
    8. In the URL field, type the path to sf404.aspx in your project - /Project/sf404.aspx.
    9.Click OK.

    If you are not able to configure the IIS settings on your beta machine you can also configure the custom errors in your web.config file like that:
    <customErrors mode="On"
    ... 
    <error redirect="~/sf404.aspx" statusCode="404"/> 
    ... 
    </customErrors> 

    5) News localization

    You should turn localization for the News module from the web.config:
     <add name="News" allowLocalization="True" urlRewriteFormat="[Publication_Date]/[Title].aspx" urlDateTimeFormat="yy-MM-dd" urlWhitespaceChar="_" visible="False" defaultMetaField="Title" securityProviderName="" allowVersioning="True" applicationName="/News" versioningProviderName="" commentsModeration="true" connectionStringName="GenericContentConnection" type="Telerik.News.Data.DefaultNewsProvider, Telerik.News.Data" /> 

    Consider also checking if certain meta fields part of the news module are localizable, e.g. title by default is not but can be easily set to be:
    <add key="News.Title" localizable="true" valueType="ShortText" visible="True" searchable="True" sortable="True" defaultValue="" /> 


    6) MenuDepth
    a) why are these not like the other controls under ControlTemplates:

    These controls are not built as embedded resources, but rather than as user controls. That is why they are not part of the assemblies, and therefore listed in ControlTemplates. One of the reasons for this is to allow our users easier modification of the navigation controls.

    b) can they be mapped externally as well? I don't want to have them overwritten on updates

    You can build your customizations to the navigation controls as pluggable custom controls to avoid overriding them.

    The menu actually has a property which you can set in page editor to prevent expanding levels. If you set it there but not in code with upgrades the set properties will be kept (take a look at lastexpandlevel.png.

    7) Upgrade to Standard

    This should be hassle free. You just have to replace the dlls located in [YoutProject]/bin/ folder with the Standard Edition ones for the same version of Sitefinity.

    8) News

    We will consider this request for discussion on our next planning meeting. However at the moment I cannot confirm whether this will be implemented or not.

    9) Search

    For choosing starting page for indexing consider my answer to question 3. For now you can manually type in the relative URL. This will work

    Unfortunately the search currently works as you described. A workaround would be to extend the search classes through Sitefinity API to list results belonging only to current UI culture.

    10 Rollback

    Consider the following example code:
    using System; 
    using System.Collections; 
    using Telerik.Cms; 
     
    public partial class test : System.Web.UI.Page 
        protected void Page_Load(object sender, EventArgs e) 
        { 
            CmsManager manager = new CmsManager(); 
            IList pages = manager.GetPages(); 
     
            foreach (IPage page in pages) 
            { 
                if (page.Name == "TestPage"
                { 
                    IPage editPage = manager.GetPage(page.ID, true); 
                    IStagedPage staged = editPage.GetVersion(editPage.Version - 1); 
                    IPage newPage = (IPage)staged; 
                    break
                } 
            } 
        } 

    What it does is to create a newPage that is a copy from a previous version of a page. This way you will preserve the other pages. This is a simple sample but I think it will help you to extend rollback to what you wish. I would recommend that you take a look at our latest webinar for a better insight on what you can achieve through Sitefinity's API - Sitefinity API Tips & Tricks.

    11) Not all files deployed

    This is by default. It is not an installation related problem. By default we distribute external templates separately from Sitefinity installations. You should manually add external templates for each new project if you wish to use them.

    12) Installation Folder

    You can configure Sitefinity installer to install Sitefinity Project manager wherever you wish. However if you create project from the Project manager they will be created in the Websites folder. Currently you can use the Web Platform Installer to create websites and specify a custom path for them but this is for installing Community version web sites. You can take a look at the following video for more information - Installing Sitefinity from the Web Platform Installer.

    Another approach you might take would be using Blank Projects. You can always set up blank project in any location.

    13) Missing themes

    Yes currently you should assign all pages that use a template you wish to remove to another template, and then physically remove the master page/template. This will be also discussed on our next planning meeting and we will see what actions will the team decide to take.

    14) Control Templates

    One of decisions to distribute control templates separately by default is because a lot of users would just prefer to use the built in controls and their look and feel.  They would also want to restrict their user from fiddling in the page editor and changing layout templates etc. I hope that you understand our logic behind such a decision.

    15) Localization of News

    You have answered the question your self. You just need to create the file in ~/Sitefinity/ControlTemplates/News/App_LocalResources/

    Please take a look at my responses to your questions to see if I have missed something, or was not clear enough. If there is something unclear please feel free to come back to us.

    Kind regards,
    Rado
    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.
  3. Markus
    Markus avatar
    2763 posts
    Registered:
    25 Nov 2005
    27 Aug 2009
    Link to this post
    Dear Rado

    Thanks a lot for the detailed answers which will help me a lot.

    Last question that came up. I read that in order to have the admin interface localized you will send .resx files and have them back an compile them.

    Have you done this for German 3.7 version yet. I do not feel like doing something over that has already be done

    Regards Markus
  4. Radoslav Georgiev
    Radoslav Georgiev avatar
    3370 posts
    Registered:
    01 Feb 2016
    27 Aug 2009
    Link to this post
    Hello Markus Berchtold,

    Unfortunately the latest version of Sitefinity has localization resources for the admin only the following languages - Spanish, French, Croatian, Hungarian, Italian, and Russian. So I would have to send you the not compiled localization resources, so you can translate them into German.

    After you are finished with translating the resources, send them back to us and we will compile them. You can find the localization resources attached.

    Regards,
    Rado
    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.
  5. Markus
    Markus avatar
    2763 posts
    Registered:
    25 Nov 2005
    28 Aug 2009
    Link to this post
    Dear Rado

    Thanks a lot. I looked at the files and it seems to be a whole heap of work translating the files.
     
    I assume that at least 1/2 day is needed and then the checks if the understanding was right for where the text appears in the CMS

    I wished Telerik would work on this matter and have the Interface in more languages available. German is Spoken in Germany, Switzerland and Austria :-)

    Also having to resend them to you for compilation seems strange. Hope 4.0 will have the option to do it locally.

    You wrote you dont have it for 3.7. Did you have it for earlier versions. If yes could you somehow merge them so not every single bit has to be translatet again.

    Can these files also be used in the Community Version?

    Regards Markus
  6. Ivan Dimitrov
    Ivan Dimitrov avatar
    16072 posts
    Registered:
    12 Sep 2017
    28 Aug 2009
    Link to this post
    Hello Markus Berchtold,

    I checked versions 3.5 and 3.6 but there are not compiled resources for these versions as well. The compiled resources cannot be used for community edition because it does not support localization( Compare Editions)

    Kind regards,
    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. Markus
    Markus avatar
    2763 posts
    Registered:
    25 Nov 2005
    15 Sep 2009
    Link to this post
    Further to my question

    4) Having URL's without .aspx

    Lets say I have this url in sitefinity www.mydomain.com/products/shoes.aspx

    What I want ist that the client be able to enter URL www.mydomain.com/produkcts/shoes

    Since there is no .aspx I assume it will never be handeled by the asp.net engine.

    I can set custom error pages in my shared hosting envirement. So I assume I could redirect to any .aspx page (since I did not find an sf404.aspx I assume its an example or am I missing the file)

    But then how to redirect back to shoes.aspx?

    Feature Request 4.0 - I think it would be nice if you could have a way to have .aspx less File names.

    Regards Markus
  8. Georgi
    Georgi avatar
    3583 posts
    Registered:
    28 Oct 2016
    15 Sep 2009
    Link to this post
    Hi Markus Berchtold,

    The redirect will be automatically handled by the system. In other words, you will not sf404 in the url, but rather the url that you have requested - www.mydomain.com/produkcts/shoes. The end user will never know that sf404 is invoked in any way.

    Best wishes,
    Georgi
    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. Markus
    Markus avatar
    2763 posts
    Registered:
    25 Nov 2005
    15 Sep 2009
    Link to this post
    Georgi

    Thanks. Is there a sf404.aspx that handles this. And if yes, where do I find it?

    Or do I have to programm a sf404.aspx page myself?

    Regares Markus
  10. Georgi
    Georgi avatar
    3583 posts
    Registered:
    28 Oct 2016
    15 Sep 2009
    Link to this post
    Hi Markus Berchtold,

    No, there is no sf404.aspx file, and you do not have to create it. Sitefinity is "listening" for such requests and processes them automatically and internally. Everything you should do is pointing the custom errors 404 code to sf404.aspx. Nothing else.

    Let us know if Sitefinity behaves differently on your side though. 

    Greetings,
    Georgi
    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.
  11. Markus
    Markus avatar
    2763 posts
    Registered:
    25 Nov 2005
    15 Sep 2009
    Link to this post
    Dear Georgi

    WOW. I can just say it again: Telerik (of course thats the people working there) suprise me once again.

    This is such a convenient feature. I don't know if this is well know but very cool and works like a charm

    SUPER

    Regards Markus
  12. Georgi
    Georgi avatar
    3583 posts
    Registered:
    28 Oct 2016
    15 Sep 2009
    Link to this post
    Hi Markus Berchtold,

    Well, what can we say about your kind words :) This is the greatest reward - we at Telerik like to hear that our work is appreciated. This gives us strength and motivate us for our future products and services.

    I would be glad to answer of the questions you might have in the future. Just let me know if there is something we could do for you. 

    Greetings,
    Georgi
    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.
Register for webinar
12 posts, 0 answered