More in this section

Forums / Developing with Sitefinity / Multi language footer

Multi language footer

4 posts, 0 answered
  1. Max van Essen
    Max van Essen avatar
    2 posts
    Registered:
    31 May 2010
    31 May 2010
    Link to this post
    Hi!

    For a client I want to create a multi language footer. What is the best way to accomplish this? Making two template is not really an option (100+ pages).

    I tried to make a generic content item with a translated footer content and embedding that using Content View, but I can't seem to display just one article.

    Using version 3.5.

    Kind regards,
    Max
  2. Ivan Dimitrov
    Ivan Dimitrov avatar
    16072 posts
    Registered:
    12 Sep 2017
    31 May 2010
    Link to this post
    Hi Max van Essen,

    Try using GenericContent control with a shared content. This will allow you to have multiple pages with the same content in several languages. Also, modifying the content from the backend view ( from GenericContent module) will update all instances of GenericContent control authomatically.

    Actually you can use ContentView with a single item. Open the control designer of ContentView control and find "Obsolete members" section. Expand it and set SelectedItemId. Although the property is marked as obsolete, it will do the trick. Note that when you set this property the content item will be displayed in Detail mode.

    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.
  3. Max van Essen
    Max van Essen avatar
    2 posts
    Registered:
    31 May 2010
    31 May 2010
    Link to this post
    Thanks for your reply. When using a ContentView, how would I get the id of an content item, I can't seem the find that anywhere.

    Kind regards,
    Max
  4. Ivan Dimitrov
    Ivan Dimitrov avatar
    16072 posts
    Registered:
    12 Sep 2017
    31 May 2010
    Link to this post
    Hi Max van Essen,

    You can get create a custom control that extracts the ID of each content. You can use GetContent method to get all content items and then a foreach loop to extract the IDs. You can get the ID from the GenericContent module, when you open an item in preview mode the ID is appended to the QueryString.
    You can also get the ID from the database - CmsContentBase table.

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