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

Forums / Bugs & Issues / After updating the GenericContent module latest changed name(title) of the specific language is displayed in the fullstory url

After updating the GenericContent module latest changed name(title) of the specific language is displayed in the fullstory url

5 posts, 0 answered
  1. ravi shankar
    ravi shankar avatar
    18 posts
    Registered:
    13 Feb 2010
    06 Apr 2010
    Link to this post
    Hi sitefinity,
    My Project is developed for English and arabic language in which I have created the four providers in generic content module.
    I have contentview(listview) on the page with fullstory for redirecting for detailview .
    urlrewriter is using publicationdate/name.aspx

    When i update the arabic content in the Generic content module the fullstory url will have the arabic name.aspx.
    similarly  if i update the english it will take the english name url


    I want only the english name to be used in url if arabic content is updated.


    Please help me to sort out this issue.
  2. Ivan Dimitrov
    Ivan Dimitrov avatar
    16072 posts
    Registered:
    25 Nov 2016
    06 Apr 2010
    Link to this post
    Hi ravi shankar,

    This could happen if localizable property of the Name metakey for GenericContent control is set to true. You could explicitly set localizable="false" for the metakey Name. By doing so the both versions will have the same title.

    Another option is adding a new metakey that will be used as a FullContent url - title from the ContentView control. You have to register a new metakey in your web.config - say CustomTitle. The property should be of type ShortText  or LongText. Then override SetItemContent method of ContentView and access your custom metakey and set it as url of the content item article

    sample code

    ctrl = FindContentViewControl("fullContent" + i, itemContainer);
       if (ctrl is HyperLink)
       {
          string CustomMetaData = (string)contentItem.GetMetaData("CustomUrl);
           ((HyperLink) ctrl).NavigateUrl = CustomMetaData;
             
        }


    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. ravi shankar
    ravi shankar avatar
    18 posts
    Registered:
    13 Feb 2010
    07 Apr 2010
    Link to this post
    Hi Sitefinity,
    Thanks for replying.

    I have position(dropdown),category(dropdown) and Title(string) as a metakeys in the genericContent module .I am assigning the value to this metakeys while editing in the english version.Is it possible to get the values from the english version to arabic version dynamically when i switch the language to arabic.

    example:if postion=100 in english version then if i switch it to arabic the position value should be 100 by default.
    Note:As of now the default value for metakey in web.config ="".

  4. ravi shankar
    ravi shankar avatar
    18 posts
    Registered:
    13 Feb 2010
    07 Apr 2010
    Link to this post
    Hi Sitefinity,

    The above Problem got solved by setting the localize="false" in metafield

    Thanks
  5. Ivan Dimitrov
    Ivan Dimitrov avatar
    16072 posts
    Registered:
    25 Nov 2016
    07 Apr 2010
    Link to this post
    Hello ravi shankar,

    This was suggested in the previous reply.

    "This could happen if localizable property of the Name metakey for GenericContent control is set to true. You could explicitly set localizable="false" for the metakey Name"


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