kaushal
Nuke Ace Posts:42
|
06/23/2009 7:01 AM |
|
like we have readymade token available to show Current Date in DNN. Is there anything bydefault or any token thru which we can show current time also? or any way to show time on the home page at top?
|
|
Mocrosoft MVP [.NET/ASP.NET] |
|
|
Joseph Craig DNN MVP Posts:11667
|
06/23/2009 7:13 AM |
|
Yes, both the skin object and the token display date and time, based on the format given to them. For the skin object in an ascx file: < dnn:CURRENTDATE runat="server" id="dnnCURRENTDATE" DateFormat="dd MMMM yyyy" / > Change the format to another standard string to display the date. For the token, use [DateTime:Now|"format"] . |
|
Joe Craig, Patapsco Research Group Complete DNN Support |
|
|
kaushal
Nuke Ace Posts:42
|
06/23/2009 7:16 AM |
|
Thanks joe for such a prompt reply.. thats easy.. Can i include EST reference with that?
|
|
Mocrosoft MVP [.NET/ASP.NET] |
|
|
kaushal
Nuke Ace Posts:42
|
06/23/2009 8:52 AM |
|
i added time to show on header by writing [currentdate] [currentdate:1] in skin and in xml file: in case if anybody need it.. still searching to have EST reference in time fotmat... |
|
Mocrosoft MVP [.NET/ASP.NET] |
|
|
Joseph Craig DNN MVP Posts:11667
|
06/24/2009 12:52 PM |
|
I don't believe that you need two instances to show date and time. They can be shown with one instance, given the right formatting string. Format strings are discussed here: http://msdn.microsoft.com/en-us/lib...S.71).aspxIt probably is a lot easier to experiment with formatting strings by using a replaceable token in a text/HTML module. |
|
Joe Craig, Patapsco Research Group Complete DNN Support |
|
|
kaushal
Nuke Ace Posts:42
|
06/24/2009 11:49 PM |
|
thanx joe for your kind reply. I tried giving the format as specified in previuos post.. but I didnt see any date time instead it prints simple text whatever i give as format.. I am using dnn 5.0
|
|
Mocrosoft MVP [.NET/ASP.NET] |
|
|
Joseph Craig DNN MVP Posts:11667
|
06/25/2009 10:19 PM |
|
If you are doing this in a Text/HTML module, you will need to go to the module settings and enable token replacement. |
|
Joe Craig, Patapsco Research Group Complete DNN Support |
|
|
kaushal
Nuke Ace Posts:42
|
06/25/2009 11:41 PM |
|
I have stated the token in .html skin file... and defined the format in .xml token file.
I got the time on the top of my page; however, in my surprise - I changed the time zone to UTC Estern Time Zone - but still its not showing corret date.. |
|
Mocrosoft MVP [.NET/ASP.NET] |
|
|
Joseph Craig DNN MVP Posts:11667
|
06/26/2009 5:43 AM |
|
To test, add a Text/HTML module to your site and use the token to display date and time. Is the date/time that is displayed recognizable? That is, is the offset from GMT something that is not correct?
Make sure that the server's time is correct. Then make sure that the site and user's time zones are set appropriately.
|
|
Joe Craig, Patapsco Research Group Complete DNN Support |
|
|
bjmell
Nuke Active Member Posts:23
|
11/11/2009 10:16 AM |
|
How do I combine CURRENTDATE with SOLPARTMENU? I want them on the same line?
|
|
|
|
|
Joseph Craig DNN MVP Posts:11667
|
11/12/2009 5:59 AM |
|
You will need to edit your skin to do that.
|
|
Joe Craig, Patapsco Research Group Complete DNN Support |
|
|
bjmell
Nuke Active Member Posts:23
|
|
Joseph Craig DNN MVP Posts:11667
|
11/13/2009 8:12 AM |
|
We have a nice collection of tutorials on skin development here. Start with: |
|
Joe Craig, Patapsco Research Group Complete DNN Support |
|
|
bjmell
Nuke Active Member Posts:23
|
11/16/2009 8:04 AM |
|
We (my colleague and I) have a purchased a membership with you. Those videos do not show, specifically, how to combine those two attributes.
|
|
|
|
|
Joseph Craig DNN MVP Posts:11667
|
11/16/2009 4:25 PM |
|
Those are two "skin objects" and they can be placed anywhere you like on the page.
But ... before you get in too deep, you should be using the DNN Nav Menu. It is [NAV] in html skins. [NAV] is current and up to date, whereas SOLPART is old and not supported.
But ... all of that aside, if you want the date to be shown just to the left of the menu, for example ...
[CURRENTDATE] [NAV]
will work.
You will probably want a bit more structure.
Look at how these objects are used in existing skins. The Minimal Extropy skin is worthy of study ...
|
|
Joe Craig, Patapsco Research Group Complete DNN Support |
|
|
Lee Sykes DNN Creative Staff
Nuke Master VI Posts:4945
|
|