nafiseh Registered Users
Posts:25


 |
| 6/01/2009 10:34 PM |
|
To show what happen for our articles' date, I attached two images to this post. Just take a look at them. Thanks a lot.
Regards,
Nafiseh |


|
|
|
|
Scott McCulloch Administrators
 Ventrian Master Posts:17204


 |
| 6/01/2009 10:46 PM |
|
What token does the listing template use compared to the view article? These are the "exact" same section of code processing each. Have you changed the template in listing.item.html and not in view.item.html? |
|
Scott McCulloch Site Administrator |
|
|
nafiseh Registered Users
Posts:25


 |
| 6/01/2009 10:56 PM |
|
They are exactly the same in Listing.Item.html: [PUBLISHSTARTDATE:MMMM dd, yyyy HH:mm] and in View.Item.html: [PUBLISHSTARTDATE:MMMM dd, yyyy HH:mm] Because of this I'm wondering what is wrong here. |
|
|
|
|
Scott McCulloch Administrators
 Ventrian Master Posts:17204


 |
| 6/01/2009 11:02 PM |
|
It might be the order of events that is different on those pages. I'll need to review the code to see if they load on different events. The layoutcontroller handles all templating, so it's actually the same code that renders both, regardless if it's a listing page or a view page. |
|
Scott McCulloch Site Administrator |
|
|
Scott McCulloch Administrators
 Ventrian Master Posts:17204


 |
| 6/02/2009 8:15 AM |
|
| They both bind in page_init, so I'm not sure why it would be different. I'm running out of ideas on what the issue is. |
|
Scott McCulloch Site Administrator |
|
|
Mehran Registered Users
 Ventrian Super Newbie Posts:17


 |
| 6/02/2009 9:09 AM |
|
| I hope you fix it. |
|
|
|
|
nafiseh Registered Users
Posts:25


 |
| 6/02/2009 9:16 PM |
|
Hi Scott Thanks for your attention. So I'll search for a better way to change date. If I can find a suitable way, I will post the solution here. Regards, Nafiseh |
|
|
|
|
nafiseh Registered Users
Posts:25


 |
| 6/06/2009 12:45 AM |
|
Hi Scott Just one more question Can I use my own custom user control (which infact is a convertor) in ventrian news Article module for any Date label to show what I want to display? If it is possible, will you guid me how? It's better if we don't have to go through source code of news article module? Is it possible with just changing the .ascx files? As you might guest I'm newbe with dotnetnuke and I don't know how can I use my own controls with dotnetnuke modules. I guess I should copy the dll of my control in bin folder and then add the necessary tags to the module specific .ascx files. I'm not sure about how I can do this. Should I use any dlls of dotnetnuke to my control? Is there anything special which I should include in the ascx file of module? I searched for this issue but I couldn't find anything useful. I will be very gratefull if you can help me. Regards, Nafiseh |
|
|
|
|
Scott McCulloch Administrators
 Ventrian Master Posts:17204


 |
| 6/06/2009 2:28 AM |
|
The code for printing out the date is in LayoutController.vb To modify news articles, you probably do need to have some experience in developing modules for DNN as it's quite a large project. I'm not really sure how much I can help out with this issue, both the listing and the view article bind the details in the page_init method, and both use the same class "LayoutController" to render the information. So really, they should be identical. |
|
Scott McCulloch Site Administrator |
|
|
nafiseh Registered Users
Posts:25


 |
| 6/29/2009 10:28 PM |
|
I called the ChangeCultureToPersian() in initializepage() in Default.aspx.vb and the shamsi date for view and list of news worked in a right way. But still as it is shown in last picture which I upload in previous posts, in archieve the year can not be converted. Is there any thing special about the year which is displayed in the Archieve? It seems the data of Year is filled with a repeater and through ArticleController. The month is converted in a right way. Do you have any guidance for me? |
|
|
|
|
Scott McCulloch Administrators
 Ventrian Master Posts:17204


 |
| 6/30/2009 8:03 AM |
|
| Ah, I think it's because it uses this archiveDate.Year, when maybe you want the date format expression, e.g. archiveDate.ToString("yyyy") |
|
Scott McCulloch Site Administrator |
|
|