2 Replies Latest reply on Apr 19, 2012 9:10 AM by utrive

    How to limit node generation in CQ5?

    utrive Level 1

      How & where can I configure node limitation for a page in CQ5? Is it possible to limit the nodes to like 100 or 1000 under a directory?

        • 1. Re: How to limit node generation in CQ5?
          d_suess

          What is the reason for such a restriction.

          As far as I know there is no lowlevel option (like a jcr mixin-Type) to restrict nodecreation. One of the basic problems is, that a user (and also the API calls executed for his principal) might not see all existing pages/nodes based on his ACLs. Internally there are mechanisms to optimize large amount of nodes (afaik, the usage of a b-tree was introduced, so internally the tree is broken down in subbranches). If your use-case is from the high-level perspecitve (like restrikting the max-amount of navigation nodes) you might have the need to overlay the ExtJS frontendfunctionallity of CQ to apply some prechecks before a user can perform a node-creation. But you should be aware that such solutions can in most cases be tricked (like "moving" pages).

           

          HTH

          Dominik

          • 2. Re: How to limit node generation in CQ5?
            utrive Level 1

            We are storing social network content e.g. tweets into nodes & it could grow exponentially, so we would like to restrict the amount of soical content that can be stored in CQ. That is the reason I would like to restrict the node creating to certain number so that queries to that content will not pose threat to performance.