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

Forums / General Discussions / news module date type

news module date type

10 posts, 0 answered
  1. john mirzaei
    john mirzaei avatar
    13 posts
    Registered:
    06 Oct 2009
    06 Oct 2009
    Link to this post
    hi
    i wanna change the date format and type to shamsi calender where i can access the date of that module.
    thank you
  2. Ivan Dimitrov
    Ivan Dimitrov avatar
    16072 posts
    Registered:
    25 Nov 2016
    06 Oct 2009
    Link to this post
    Hi john mirzaei,

    For News module you need to changed the Culture property of DateTimePicker control in NewsItemNew and NewsItemEdit templates after they have been mapped.

    All the best,
    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.
  3. john mirzaei
    john mirzaei avatar
    13 posts
    Registered:
    06 Oct 2009
    09 Oct 2009
    Link to this post
    hi
    in the file Sitefinity/ControlTemplates/News/ListPageDetails.ascx i can only find this part related to date :
     <p class="sf_newsDate">
            <asp:Literal ID="Publication_Date" runat="server" Text="{0}" />
        </p>
    where is date time picker?
    i've mapped the control.
    thanks
  4. Radoslav Georgiev
    Radoslav Georgiev avatar
    3370 posts
    Registered:
    01 Feb 2016
    09 Oct 2009
    Link to this post
    Hi john mirzaei,

    You are looking at the public end templates - the ones that are just responsible for displaying content items. You should look at ~/Sitefinity/Admin/ControlTemplates/News/NesItemNew.ascx and ~/Sitefinity/Admin/ControlTemplates/News/NesItemEdit.ascx.

    Greetings,
    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.
  5. john mirzaei
    john mirzaei avatar
    13 posts
    Registered:
    06 Oct 2009
    09 Oct 2009
    Link to this post
    hi again
    i don't know why visual studio cannot render the rad date time picker.
    here is the screen shot of the error
    http://mytasvir.com/photo/gallery/24acf2c97b577b.jpg
    and i've installed the telerik asp.net contorols and i'm using that contorols befor the sitefinity.

  6. Radoslav Georgiev
    Radoslav Georgiev avatar
    3370 posts
    Registered:
    01 Feb 2016
    09 Oct 2009
    Link to this post
    Hi john mirzaei,

    The problem with VS not rendering the date time picker is not because of the installation of the RadControls for ASP.NET AJAX. The problem is that the picker is nested within a <sf:ContentMetaFields ID="MetaFields" runat="server"> control. This control does not have Design Time support, so Visual studio will not be able to render it.

    Kind 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.
  7. john mirzaei
    john mirzaei avatar
    13 posts
    Registered:
    06 Oct 2009
    09 Oct 2009
    Link to this post
    For News module you need to changed the Culture property of DateTimePicker control in NewsItemNew and NewsItemEdit templates

    so how can i change that?
  8. john mirzaei
    john mirzaei avatar
    13 posts
    Registered:
    06 Oct 2009
    09 Oct 2009
    Link to this post
    and what is this error while i'm going to new news item page:

    Server Error in '/PersiaSoft Company' Application.

    Compilation Error

    Description: An error occurred during the compilation of a resource required to service this request. Please review the following specific error details and modify your source code appropriately.

    Compiler Error Message: CS1061: 'Telerik.Cms.Web.CmsPageBase' does not contain a definition for 'ResolveCmsUrl' and no extension method 'ResolveCmsUrl' accepting a first argument of type 'Telerik.Cms.Web.CmsPageBase' could be found (are you missing a using directive or an assembly reference?)

    Source Error:

    Line 68:                    }
    Line 69:                    editor.showExternalDialog(
    Line 70:                    '<%= ((Telerik.Cms.Web.CmsPageBase)Page).ResolveCmsUrl("~/Sitefinity/UserControls/Dialogs/ImageEditorDialog.aspx") %>',
    Line 71:                    editorArgs, 
    Line 72:                    750, 

    Source File: c:\Program Files\Telerik\Sitefinity3.6\WebSites\PersiaSoft Company\Sitefinity\Admin\ControlTemplates\News\NewsItemNew.ascx    Line: 70

  9. john mirzaei
    john mirzaei avatar
    13 posts
    Registered:
    06 Oct 2009
    09 Oct 2009
    Link to this post
    what is the matter? i need help .
    nobody is here?
  10. Radoslav Georgiev
    Radoslav Georgiev avatar
    3370 posts
    Registered:
    01 Feb 2016
    12 Oct 2009
    Link to this post
    Hello john mirzaei,

    Thank you for getting back to us.

    Can you tell us which version of Sitefinity are you using? Is it possible that you are using an older version of Sitefinity (for example Sitefinity 3.6 SP2), and you have downloaded the latest external templates archive. In the older versions of Sitefinity, the line that is giving you errors was:
    '<%= Page.ResolveUrl("~/Sitefinity/UserControls/Dialogs/ImageEditorDialog.aspx") %>',

    If you are using external templates for a different version of Sitefinity, you might get this kind of errors, because all external templates are made for a specific version. To solve this check your version of Sitefinity, as described in this article. Then download the correct external templates.

    The culture of the DateTime picker is changed by modifying the controls properties, by following this example.
    <telerik:RadDateTimePicker ID="Publication_Date" Culture="" Calendar-CultureInfo="" runat="server"></telerik:RadDateTimePicker>


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