content-reporter cant exclude regex label

  • 1
  • Question
  • Updated 3 years ago
  • (Edited)
Hello,

I have this code that should work (my guess):

It circle for descendents pages of "Arbre décision" and look for all pages.
And if it finds a page that has only label(s) beginning with "t_" then it should return the page title.

The idea here is to look for page that dont have label except "t_.....".
The label filter seems to be the problem, as it finds page with no label at all...


<code>
<ac:structured-macro ac:name="report-table">
                        <ac:rich-text-body>
                          <ac:structured-macro ac:name="content-reporter">
                            <ac:parameter ac:name="scope">Arbre décision &gt; descendents</ac:parameter>
                            <ac:parameter ac:name="types">page</ac:parameter>
                            <ac:rich-text-body>
                              <p>
                                <ac:structured-macro ac:name="number-filter">
                                  <ac:parameter ac:name="minValue">0</ac:parameter>
                                  <ac:parameter ac:name="maxValue">0</ac:parameter>
                                  <ac:parameter ac:name="">content:labels&gt;collection:size</ac:parameter>
                                </ac:structured-macro> </p>
                              <p>
                                <ac:structured-macro ac:name="text-filter">
                                  <ac:parameter ac:name="exclude">t_.*</ac:parameter>
                                  <ac:parameter ac:name="">content:labels</ac:parameter>
                                </ac:structured-macro>
                              </p>
                            </ac:rich-text-body>
                          </ac:structured-macro>
                          <ac:structured-macro ac:name="report-column">
                            <ac:parameter ac:name="title">Titre de la page</ac:parameter>
                            <ac:rich-text-body>
                              <p>
                                <ac:structured-macro ac:name="report-info">
                                  <ac:parameter ac:name="link">true</ac:parameter>
                                  <ac:parameter ac:name="">content:title</ac:parameter>
                                </ac:structured-macro>
                              </p>
                            </ac:rich-text-body>
                          </ac:structured-macro>
                          <ac:structured-macro ac:name="report-empty">
                            <ac:rich-text-body>
                              <p>
                                <em>Bravo, toutes les pages sont taguées...</em>
                              </p>
                            </ac:rich-text-body>
                          </ac:structured-macro>
                        </ac:rich-text-body>
                      </ac:structured-macro>
                    </ac:rich-text-body>
                  </ac:structured-macro>
                </ac:rich-text-body>
              </ac:structured-macro>
</code>

The page with yellow tag should be return as they only have "t_...." labels.....





Thanks for any help.

Michael
Photo of michael regelin

michael regelin

  • 346 Posts
  • 2 Reply Likes
  • confident

Posted 3 years ago

  • 1

There are no replies.