The quickest and easiest way (IMHO) is to use some ASP/VBScript inside your templates (and wrapping it around Prexecuting Script Blocks)
Simply assign the date placeholders into variables: <% yearVar = "<%stf_RelatedDate%>" anotherDateVar = "<%stf_AnotherDate%>" %> ..and depending on how your Date Standard Field is set up, you can obtain the year value for the date using something like this: <% yearVar = Right(yearVar, 4) %> .. and assign that to the date in the other placeholder: <% anotherDateVar = Left(anotherDateVar, 5) & "/" & yearVar ' output the date response.write anotherDateVar %> Check out DevGuru for a complete listing of VBSCript functions, syntax etc if you need a refesher. http://www.devguru.com/technologies/vbscript/index.asp. Of course, you can another language you might be more comfortable using (such as PHP).. which you can configure your project templates to use (see Active Templates under General Settings.) Cheers, Kim On Jul 2, 10:25 pm, thebiglife <[email protected]> wrote: > Hello, > > Is is possible in a template to create '2009','2008' etc.. when the > user has set a start year? > > I have to display a list of documents by year. > > Or, is it possible to take the value that's entered in a > 'stf_RelatedDate' variable such as 02/07/2009 and get the year out of > it? potentially into another stf_AnotherDate? > > I hope this makes sense. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "RedDot CMS Users" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/RedDot-CMS-Users?hl=en -~----------~----~----~----~------~----~------~--~---
