I am in the process of developing a custom content model for Alfresco and customizing the share interface to match. I'm cosidering using constraints and selectone templates in the model definition and the share configuration respectively.
However, I think there must be a better way to implement things like years and year periods rather than having to explicitly hard code them into a list. Is there a way to generate a sequence of numbers (in this case, years and year periods) in these configuration files?
Here is a sample of the data I need to have in the constraints or selectone templates:
Years: 1953, 1954, 1955 ... 2012, 2013, 2014.
Year Periods: 1953-1955, 1957-1960, 1961-1964 ... 2001-2004, 2005-2008, 2009-2012.