opencms

What name pattern macros are available in OpenCMS?


I can't find any information on available macros for the name-pattern in OpenCMS, besides the %(number) one.

Are there any other macros?

I try to achieve something like %(title)_%(year)%(month)%(day).html.

However, OpenCMS doesn't recognize these macros and in the official documentation they only mention the %(number) macro.


Solution

  • I would say that %(number) is the only one available.

    Can't see anything else in I_CmsFileNameGenerator: http://documentation.opencms.org/javadoc/core/org/opencms/loader/I_CmsFileNameGenerator.html#MACRO_NUMBER

    (It's also the only one I have ever used; I think for anything else you will probably need to write your own logic/macro.)