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

Forums / Developing with Sitefinity / Multilingual article's url

Multilingual article's url

4 posts, 0 answered
  1. Adam
    Adam avatar
    7 posts
    Registered:
    12 May 2008
    11 Sep 2008
    Link to this post
    We have a client that uses sitefinity strictly as a backend cms.  The front end is a legacy website that we've modified to display content queried directly from the sitefinity database.  This has worked very well so far, but they've decided to include multilingual support recently.

    The problem we've run into is that the url we've been using is stored in the sf_cmscontentbase table.  This url seems to change every time the content is updated, and while normally this is fine, with multiple languages the urls become a problem.

    Is there any way to only update that url only when the cultural invariant (english) version content is updated? 
  2. Georgi
    Georgi avatar
    3583 posts
    Registered:
    28 Oct 2016
    19 Sep 2008
    Link to this post
    Hello Adam,

    We apologize for the delay with this response.
    We are not sure where the problem is though. The Url of the content will be changed only if the Title, or some other metafield which is presented in the URL is changed. The Url format is declared in the web.config file. For example, for the news module it is:
    urlRewriteFormat="[Publication_Date]/[Title].aspx" 

    We suggest you changing the UrlRewriteFormat depending on your needs.
    Please let us know if we are missing something.

    Best wishes,
    Georgi
    the Telerik team

    Check out Telerik Trainer, the state of the art learning tool for Telerik products.
  3. Adam
    Adam avatar
    7 posts
    Registered:
    12 May 2008
    26 Sep 2008
    Link to this post
    The problem is, if you have multiple languages.  If you change the title in a different language, this generates a new localization for the site, and the whole url for the content changes.

    If I have a news content, titled "This is a test" and the url it generates would be something like:
    /This_is_a_test.aspx

    If i then edit the spanish version of the content, and change the title to "Esto es una prueba".  Now, BOTH pages will use the url:
    /Esto_es_una_prueba.aspx

    Is this by design?  I cannot imagine why the url for the english would change when the spanish title is changed.
  4. Georgi
    Georgi avatar
    3583 posts
    Registered:
    28 Oct 2016
    29 Sep 2008
    Link to this post
    Hello Adam,

    Thank you for your clarification.
    Yes, this is by design because the Title metafield is not localizable by default, so when you change the Spanish article's Title, it becomes identifier for the English version as well. This could be resolved. You should enable the localization for the Title metafield:
    <add key="News.Title"  
     valueType="ShortText"  
     visible="True"  
     searchable="True"  
     sortable="True"  
     localizable="True"  
     defaultValue="" /> 

    I hope this helps.

    Best wishes,
    Georgi
    the Telerik team

    Check out Telerik Trainer, the state of the art learning tool for Telerik products.
Register for webinar
4 posts, 0 answered