Document Accordion Macro 1.0 released

Hello,

I just released version 1.0 of the Document Accordion Macro sponsored by SFR group.

See the details on http://extensions.xwiki.org/xwiki/bin/view/Extension/Document%20Accordion%20Macro/

Thanks,
Mohamed

2 Likes

Hi, great extension!
This is exactly what I was looking for.
I want to primary use it for displaying FAQ entries.

Best regards
Miroslav Glajda

Ran into an issue when using this on subwiki. It’s unable to locate the Space being referenced on the subwiki nor is it able to recognize the xclass. Example location paths that were used:
$subwiki:Space
:$subwiki:Space
xwiki:$subwiki:Space

Can you explain a little more how to use it? We don’t know how to do either of these:

Select the entries of a AWM application

{{docaccordion space=“MyApp”/}}

Select blog posts available on a given space

{{docaccordion xclass=“Blog.BlogPostClass” space=“MyBlog” sort=“ALPHA” openFirstAccordion=“true” displayAuthor=“false” displayDate=“false” accordionMaxHeight=“300” limit=“100”/}}

These are rendering macros (see http://platform.xwiki.org/xwiki/bin/view/Main/XWikiSyntax?syntax=2.1&section=Macros).

You use them either:

Hi, I would like to propose some ideas for improvement and some bugs:

  1. when placed in page with toc, the toc links don’t work, because they all target to an anchor ‘#’
  2. headings in the accordion are created with H4 elements, which creates in toc deep nesting when placed for example under H1 level
  3. allow to collapse or expand when clicked on the whole header, not only on the heading link

Thank you

Hi, great! Could you please open jira issues at https://jira.xwiki.org/browse/DOCACCORDI ?Thanks :slight_smile:

Hello,[quote=“nmartin1984, post:3, topic:166”]
Ran into an issue when using this on subwiki. It’s unable to locate the Space being referenced on the subwiki nor is it able to recognize the xclass.
[/quote]

Hello, I have the same issue here on xwiki 8.4.4 with:

{{docaccordion space=“BacASable”/}}

I installed extension with extension manager on debian/tomcat server

Hello,
it is possible that there are issues with the app on sub-wikis because It has not been tested on sub wikis.
please open JIRA issues at https://jira.xwiki.org/browse/DOCACCORDI

Thx, Mohamed

I don’t use sub wiki.
Anyway I must test it on xwiki 8.4.4 jetty package before open a jira issue

Submitted to JIRA

I tested on jetty xwiki 8.4.4 package without sub wiki and I have same problemwith {{docaccordion space=“Encyclopédie.nested page”/}}
“Failed to execute the [docaccordion] macro. Cause: [No documents found according to the parameters of your macro. Make sure that you correctly enter the ‘space’ and ‘xclass’ parameters.]. Click on this message for details”

Anyway with xclass parameters your extension working well {{docaccordion xclass=“XWiki.XWikiUsers”/}} but not with space parameter alone

You can use this macro in 2 ways:

  1. Show all the entries of a given AWM app by setting the ‘space’ parameter to your AWM space
  2. Show entries of a given XClass objects by setting the ‘xclass’ parameter to your class reference, in this case the ‘space’ paramater can be used as filter, ie: show all pages with a given xclass object available in some space.

So, if you use only the space parameter you need to be sure that this space contains an AWM application.

Find details about AWM apps here http://extensions.xwiki.org/xwiki/bin/view/Extension/App%20Within%20Minutes%20Application

ty I understand now that I can not use your macro to rendering normal xwiki page…

Maybe you could add this in your documentation: with space parameter: “select all pages of Application Within Minutes and limit the selection to this location and its children pages Pages without xwiki objects are not selected”

Done.

Thx