Aricie
Intégrateur de vos solutions d'avenir
DNN Community Forums

Diplay the Date in dnn?

Sort:
You are not authorized to post a reply.
Author
Messages


kiraqi











New Member



Posts:




New Member



    Hello,

    Please, how can i display the date like "Monday, JJ/MM/AAAA" in the Home page?

    and also its corresponds in arabic (date in arabic) it s possible en dnn ?

    if it s yes , pls how can i do it?



    Stéphane TETARD











    New Member



    Posts:




    New Member



      Hi,

      You could add date in your skin by editing ascx which is used by your homepage.

      I propose 2 solutions :

      - using the default SkinObject by adding following code

      <%@ Register TagPrefix="dnn" TagName="CURRENTDATE" Src="~/Admin/Skins/CurrentDate.ascx" %>
      <dnn:CURRENTDATE runat="server" id="dnnCURRENTDATE" DateFormat="dddd, dd/MM/yyyy" />

      - using VB insctruction with

      <% =Date.Now.ToString("dddd, dd/MM/yyyy") %>

      I hope that will help you.

      Regards,



      kiraqi











      New Member



      Posts:




      New Member



        Hello Stephane,

        Yes, it s working, Thank you for reply,

        I m used :

        <%@ Register TagPrefix="dnn" TagName="CURRENTDATE" Src="~/Admin/Skins/CurrentDate.ascx" %>
        <dnn:CURRENTDATE runat="server" id="dnnCURRENTDATE" DateFormat="dddd, dd/MM/yyyy" />

        in my ascx file skin,

        But I have an other problem:

        I wanted to add an image in contenpane s place (this image was so big that changed the width of my web site)

        and still i don t found how to return back the initial width of my web site?

        i don t want to use scrollbar to see my web site, i want to have ths initial size s site ...

        i reduced the of image BUT the width of my dnn solution is still big

        please help

         



        Stéphane TETARD











        New Member



        Posts:




        New Member



          Hi,

          I think that using a smallest picture would restore initial size of your skin.
          I don't know any other solution.

          I recommand you to post your general questions at www.dotnetnuke-fr.org if you want to increase the chance to obtain correct answers. You could post on www.dotnetnuke.com too.

          Regards,

          You are not authorized to post a reply.