Home | Products | Consulting | Forums | Support | Order | 1-800-752-0455
  Main
Index
Search
Posts
Who's
Online
Log
In

Home: Discontinued Products: News Manager & Job Manager:
Custom format of date in NM

 

 


compubase
User

May 4, 2004, 2:48 PM

Post #1 of 3 (4620 views)
Shortcut
Custom format of date in NM Can't Post

Hi,

We are implementing 5 of your products at a customer site. To my surprise the News publish date is not customizable (format to Dutch standards) and the customer will not accept this.

Could you please provide me with a solution?

Thanks


Donna
Staff / Moderator


May 4, 2004, 4:18 PM

Post #2 of 3 (4616 views)
Shortcut
Re: [compubase] Custom format of date in NM [In reply to] Can't Post

Hi compubase,

Thanks for your post. :)

No, the date in News Manager isn't customizable. However, Article Manager's date field is -- you may want to take a look at Article Manager instead. :) Article Manager is much more fully featured than News Manager, it includes a search engine, categories & sub-categories, a syndication tool, headline lists and much, much more.

Let me know if you have any other questions or concerns.

Donna


Hire me!
Save time by getting our experts to help with your project. Template changes, advanced features, full integration, whatever you need. Whether you need one hour or fifty, get it done fast with Priority Consulting.


compubase
User

May 5, 2004, 2:16 AM

Post #3 of 3 (4603 views)
Shortcut
Javascript solution for this problem [In reply to] Can't Post

Donna,

Thanks for your suggestion, however NM is just fine.

I found the solution in adding some javascript in the template that does the formatting:

<!-- Nieuws Begin -->
<script>
function format_date(pDate) {
var lMonthArray = new Array()
var lDateObject = new Date(pDate);
var lRetval = "";

lMonthArray[0] = "januari";
lMonthArray[1] = "februari";
lMonthArray[2] = "maart";
lMonthArray[3] = "april";
lMonthArray[4] = "mei";
lMonthArray[5] = "juni";
lMonthArray[6] = "juli";
lMonthArray[7] = "augustus";
lMonthArray[8] = "september";
lMonthArray[9] = "oktober";
lMonthArray[10] = "november";
lMonthArray[11] = "december";
lRetval = lDateObject.getDate() + " " + (lMonthArray[lDateObject.getMonth()]) + " " + lDateObject.getFullYear();
return lRetval;
}
</script>
<!-- template insert : $list$ -->
<!-- templatecell : row -->


<table border=0 cellspacing=0 cellpadding=0 width=460>
<r>
<td> <a href="$url$"><b>$name$</b></a> -
<script>
document.write(format_date('$date$'));
</script>
<br>
</td>
</tr>
</table>
<table border=0 cellspacing=0 cellpadding=0 width=460>
<tr>
<td>$summary$<br>
</td>
</tr>
</table>
<!-- /templatecell : row -->
<!-- templatecell : notfound -->
<table border=0 cellspacing=0 cellpadding=0 width=460>
<tr>
<td>Op dit moment geen nieuws artikelen. Kom graag een keer terug!<br>
</td>
</tr>
</table>
<!-- /templatecell : notfound -->
<!-- Nieuws Einde -->


Joep

 
 
 


Search for (options)
Products
CMS Builder
Article Manager
Realty Manager
Listings Manager
Order Now
Services
Priority Consulting
Support
Online Documentation
Support Forums
Support Homepage
Company Info
12 reasons to choose us!
Meet the team
Monthly newsletter
Contact Us
Toll Free: 1-800-752-0455
Phone: (604) 689-3347
Sales | Support
Conditions of Use | Privacy Policy | Copyright © interactivetools.com 2008
#201 - 2730 Commercial Drive, Vancouver BC Canada V5N 5P4