Auto-update a copyright date post-build?

This forum is for all Flare issues not related to any of the other categories.
Post Reply
John Cook
Propeller Head
Posts: 11
Joined: Wed Sep 09, 2015 2:25 pm

Auto-update a copyright date post-build?

Post by John Cook »

Is there a way that I can use a copyright range such as 2013-2018 on the home page and have it change to 2013-2019 on Jan 1? A variable won't do that.
SteveS
Senior Propellus Maximus
Posts: 2089
Joined: Tue Mar 07, 2006 5:06 pm
Location: Adelaide, far side of the world ( 34°56'0.78\"S 138°46'44.28\"E).
Contact:

Re: Auto-update a copyright date post-build?

Post by SteveS »

My question has to be why?

Copyright applies to the date something was created or significantly updated, not automatically applied every year.

Not trying to teach my grandmother to suck eggs, just curious.
Image
Steve
Life's too short for bad coffee, bad chocolate, and bad red wine.
ChoccieMuffin
Senior Propellus Maximus
Posts: 2632
Joined: Wed Apr 14, 2010 8:01 am
Location: Surrey, UK

Re: Auto-update a copyright date post-build?

Post by ChoccieMuffin »

Please excuse a facetious response, but would a calendar reminder be the appropriate solution? I'm afraid that's what we do! At the beginning of each year I go into my global project and change that date in one location, just once, and from then on the date flows out to the child projects the first time they're built.
Started as a newbie with Flare 6.1, now using Flare 2023.
Report bugs at http://www.madcapsoftware.com/bugs/submit.aspx.
Request features at https://www.madcapsoftware.com/feedback ... quest.aspx
NorthEast
Master Propellus Maximus
Posts: 6363
Joined: Mon Mar 05, 2007 8:33 am

Re: Auto-update a copyright date post-build?

Post by NorthEast »

You can insert a
John Cook wrote:Is there a way that I can use a copyright range such as 2013-2018 on the home page and have it change to 2013-2019 on Jan 1? A variable won't do that.
Nope - a variable will do that.

Open your variable set, click Add DateTime variable, and enter the variable format yyyy. You can choose if the date reflects the build date, file save date, etc.
John Cook
Propeller Head
Posts: 11
Joined: Wed Sep 09, 2015 2:25 pm

Re: Auto-update a copyright date post-build?

Post by John Cook »

Steve: The reason is that our legal dept. wants us to do that. Not something I'm willing to die for.
John Cook
Propeller Head
Posts: 11
Joined: Wed Sep 09, 2015 2:25 pm

Re: Auto-update a copyright date post-build?

Post by John Cook »

Dave: I need it to update dynamically post-build. As I understand it, I need to use JavaScript. I asked one of our developers for help.
John Cook
Propeller Head
Posts: 11
Joined: Wed Sep 09, 2015 2:25 pm

Re: Auto-update a copyright date post-build?

Post by John Cook »

If anyone's interested, here's the code:

<script>document.write(new Date().getFullYear())</script>
Post Reply