widget - How to hide some paths while browsing using the XType browsefield? -


In my component dialog, I enable browsefield Use XType and select a page:

  & lt; Page jcr: primary type = "cq: widget" field label = "page" name = "./ path" xtype = "browsefield" />  

At the same time, I want to make some pages invisible. Suppose I have the following structure:

  page / page 1 / page 1_1 / page 1_2 /  

How do I page / page 1 / Page 1_2 is invisible, so that they can browse through the page tree, anyone can choose it?

Browsefield is a excluded xxtype; this feature has the option of this replacement is. Pathfind has a property named predicate which can be used for filtering. You can create and register a custom mistake that makes a false return for the paths that appear in the dialog. Name of the custom word can then be given to the pathfile configuration.

You can find a detailed tutorial on this:

For more information about the forecast, the following links may be referenced:


Comments

Popular posts from this blog

java - Can't add JTree to JPanel of a JInternalFrame -

javascript - data.match(var) not working it seems -

javascript - How can I pause a jQuery .each() loop, while waiting for user input? -