Main
Index
Search
Posts
Who's
Online
Log
In

Home: Discontinued/Classic Products: Article Manager 1:
Cannot change date format inside the template

 

 


vasantheb
User

Feb 20, 2007, 7:18 AM

Post #1 of 7 (8289 views)
Shortcut
Cannot change date format inside the template Can't Post

Hello


I have following code in one template.

!-- template insert : $article_list$ -->
<!-- templatecell : row -->
<p class="first">
<span class="bold">$art_name$</span><br />
<span class="date">$global_updated$</p>
<p>$art_summary$</p>
<a href="$detail_link$">Read More</a>
<!-- /templatecell : row -->

etc...

How can I write the code to change the format into this template? I only need to change the format on this page ?
New format is format(dd MMM yyyy). For this I write the code
$global_updated.date:format(dd MMM yyyy)$
Where I insert this code, if this is correct ?
Can you pls help me ?

Regards
Aniesh Joseph


(This post was edited by aniesh82 on Feb 20, 2007, 7:37 AM)


ross
Staff / Moderator


Feb 20, 2007, 3:39 PM

Post #2 of 7 (8282 views)
Shortcut
Re: [aniesh82] Cannot change date format inside the template [In reply to] Can't Post

Hi Aniesh.

Thanks for posting!

With Article Manager 1, you can adjust the date format in the /config.ini file. Log onto your server and you'll find it in the /exec folder. Once you have it, open it up and look for these three lines:

date_format = %b %e, %Y
time_format = %H:%M
datetime_format = %b %o, %Y - %H:%M:%S

That's the different date and time formats. For an overview of the different options you have here, check out the big table towards the bottom of this page in our docs:

http://www.interactivetools.com/docs/doc.cgi?/articlemanager/admin/doc_page36.html

That will show you what each of the characters mean and what you can change them all to. Have a look and let me know how you make out with it Smile.

Also, I am going to move your post into the Article Manager 1 forum.
-----------------------------------------------------------
Cheers,
Ross Fairbairn - Product Specialist
support@interactivetools.com

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: http://www.interactivetools.com/consulting/



vasantheb
User

Feb 20, 2007, 11:00 PM

Post #3 of 7 (8274 views)
Shortcut
Re: [ross] Cannot change date format inside the template [In reply to] Can't Post

Hello

Thanks for your reply.

I just want to change the date format in only one page. I already pasted the code in the first post.

Can you please write the code to change the date format ?


Regards
Aniesh Joseph


ross
Staff / Moderator


Feb 21, 2007, 11:40 AM

Post #4 of 7 (8266 views)
Shortcut
Re: [aniesh82] Cannot change date format inside the template [In reply to] Can't Post

Hi Aniesh

Thanks for the update!

I am not quite sure how you can change the date format for just that one page. The system is actually setup for global settings.

I would imagine you could use some JavaScript to reformat it but I am not really an expert when it comes to JavaScript so I don't quite know what that would look like.

Does anyone else have an idea on the JavaScript for this?
-----------------------------------------------------------
Cheers,
Ross Fairbairn - Product Specialist
support@interactivetools.com

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: http://www.interactivetools.com/consulting/



vasantheb
User

Feb 22, 2007, 7:55 AM

Post #5 of 7 (8243 views)
Shortcut
Re: [ross] Cannot change date format inside the template [In reply to] Can't Post

Hello

Thanks for your reply.

I saw a reply posted by Donna(moderator).

if you want to change it for just one template, you can add "modifiers" to the $article.date$ placeholder. Take a look here for more information on how to do that:

http://www.interactivetools.com/docs/doc.cgi?/articlemanager2/templates/modifiers_format.html


I formatted the date like $global_updated.date:format(dd MMM yyyy)$ . But I donot know where to insert this formatted date.

Can someone help me ?

Regards
Aniesh Joseph


Donna
Staff / Moderator


Feb 23, 2007, 10:25 AM

Post #6 of 7 (8203 views)
Shortcut
Re: [aniesh82] Cannot change date format inside the template [In reply to] Can't Post

Hi Aniesh,

That would be what you would enter in the the template directly where you want the date to display -- it's a placeholder. However, that will only work in Article Manager 2, not Article Manager 1. Can you verify what version you're using?

Donna

--
support@interactivetools.com


ChetW
Staff


Feb 23, 2007, 10:28 AM

Post #7 of 7 (8203 views)
Shortcut
Re: [aniesh82] Cannot change date format inside the template [In reply to] Can't Post

Hi Aniesh82,

Thanks for the follow-up!

The placeholder modifiers that your refering to are part of Article Manager2, these modfiers won't work for you in Article Manager1. :)

If this is something that you'd like to use I'd suggest upgrading to Article Manager2.
Cheers,
Chet Woodside - Product Specialist
support@interactivetools.com

[hr][i][url "http://www.interactivetools.com/consulting/"][b]Hire me![/b][/url]
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 [url "http://www.interactivetools.com/consulting/"][b]Priority Consulting[/b][/url].[/i]