[-- STORE.Date --] not working?

General ShopSite user discussion

[-- STORE.Date --] not working?

Postby Rodney » Wed Jul 27, 2005 12:55 pm

I have the tag [-- STORE.Date --] in my main page template to show the
current date in my store (I guess to make the store seem always "fresh") but
it seems to be stuck on Tues July 12, 2005.

Any ideas why this would happen?

Thanks,

--
Rodney
Rodney
 

Re: [-- STORE.Date --] not working?

Postby loren_d_c » Wed Jul 27, 2005 1:10 pm

The template tags are only evaluated at the time of the Publish. So if
your main page hasn't been generated since July 12, then this is why the
date is what it is. Also, the date is the server date, so if your server
date is off, then that would be a problem.

-Loren



Rodney wrote:
I have the tag [-- STORE.Date --] in my main page template to show the
current date in my store (I guess to make the store seem always "fresh") but
it seems to be stuck on Tues July 12, 2005.

Any ideas why this would happen?

Thanks,
loren_d_c
 
Posts: 2570
Joined: Fri Aug 04, 2006 12:02 pm
Location: Anywhere

Re: [-- STORE.Date --] not working?

Postby Rodney » Wed Jul 27, 2005 1:16 pm

"Loren" <loren_d_c@yahoo.com> wrote in message
news:dc8pnh$hpm$1@eval.shopsite.com...
The template tags are only evaluated at the time of the Publish.

That's good to know. I guess I should just use javascript there instead
since I don't plan on publishing my main page every day.

I thought it would always show the current server date.

Thanks,

Rodney
Rodney
 

Re: [-- STORE.Date --] not working?

Postby loren_d_c » Wed Jul 27, 2005 1:41 pm

"I thought it would always show the current server date."

Current as of the time the page was published. These are static pages
that are being generated.

JavaScript or Server Side Includes would be the best way to dynamically
display a date.

-Loren



Rodney wrote:
"Loren" <loren_d_c@yahoo.com> wrote in message
news:dc8pnh$hpm$1@eval.shopsite.com...

The template tags are only evaluated at the time of the Publish.


That's good to know. I guess I should just use javascript there instead
since I don't plan on publishing my main page every day.

I thought it would always show the current server date.

Thanks,

Rodney

loren_d_c
 
Posts: 2570
Joined: Fri Aug 04, 2006 12:02 pm
Location: Anywhere


Return to User Forum

Who is online

Users browsing this forum: Google [Bot] and 117 guests