[opencms-dev] Name pattern for content element configuration

Filip Kratochvil tech.kratas at gmail.com
Sat Oct 8 23:39:57 CEST 2022


Hi Bernhard,

1) Yes, it is possible, try the following macro: qi_%(number:6).xml
2) Not 100% sure but I think it should be OK. Anyway, I would consider
storing data in DB or if you need search functions, you can index it
in Solr (DB > Solr), but it requires custom development.

Cheers.

Regards
Filip Kratochvil


so 8. 10. 2022 v 17:29 odesílatel Bernhard Zebedin via opencms-dev <
opencms-dev at opencms.org> napsal:

> Hi all.
>
> I searched for the possibility to define a name pattern with 6 digits in
> the filename.
>
> At the moment I configured the name pattern with “qi_%(number).xml”.
>
> This genereates filenames e.g. qi_00001.xml (5 digits)
>
> Is it possible to define this with 6 digits?
>
> I work on the migration from an old system which has around 150.000
> records with an
>
> Incremental number…. I want to use this number as the new filename. And I
> want to
> use further new created records to use the same number circle.
>
> Question 1) Is this possible to define 6 digits?
>
> Question 2) Could this be a problem for OpenCms if I have so much records
> in one folder?
>
>
>
> Kr
>
> Bernhard
> _______________________________________________
> This mail is sent to you from the opencms-dev mailing list
> To change your list options, or to unsubscribe from the list, please visit
> https://lists.opencms.org/mailman/listinfo/opencms-dev
>
>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.opencms.org/pipermail/opencms-dev/attachments/20221008/1e2cb116/attachment.htm>


More information about the opencms-dev mailing list