I am making some customized index pages that use the Content Report Table Macro. Things are working as I expect but when I have a an empty table the following box is shown instead of the table:
Provide step-by-step guidance for completing a task.
Add how-to article
Where is this content coming from and how can I change it? I am able to change the button name in the Create from Template macro but it seems I have no ability to change this default content. and the button true to it's description creates an article from the how-to template rather than the custom one I have.
Hello Scott,
Happy to help you with this. I just need to understand a bit more about your situation.
Can you let me know how you have created these customized index pages? Are you editing an existing template, or did you create a new page? If you created a new page, which template are you choosing?
Lastly, when you added the Content Report Table Macro, is this when the How-to article details showed up? Or was it when you created the page? Have you added any parameters to the macro?
Regards,
Shannon
The index pages I believe I cloned from the included one that is for how-to articles. It's a simple page with just a right justified "Create from template" macro (this puts a button on the screen to create a page from a template specified in the macro configuration. I can change the displayed name of the button and the template it generates pages from so that is fine. Next it has a line spacer then the left justified "Content Report Table" macro. For the Content Report I can only edit the article label(s) it shows in the table, the space it looks in, etc. but no option to change what it says if the table is empty. So if there are no articles to display in the table it shows a box containing:
Provide step-by-step guidance for completing a task.
Add how-to article
The "Add how-to article" text is a button that is hard coded to create a document using the how-to template. It seems odd to me that a "Content Report Table" macro that says nothing about being how-to specific would be coded so that if no articles are found matching the configured labels it would prompt the viewer to create a how-to article without giving the document author a way to change the text and the template the button uses.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Scott,
Thank you for that information. I'd be interested to see the source of the page in question, this is a very unique issue.
Is this for a Cloud instance? If so, I would recommend that you contact the Cloud Support Team and you can ask them to have a look at the page you are creating and they can determine what is causing that block to appear.
Let me know if you have any trouble.
Regards,
Shannon
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
@Shannon S:
So, it seems that the default behavior of the Content Report Table macro and the Content by Label macro is to display a default for empty content (see below) when what I'd like it t just display and empty table.
The Content Report Table macro also prompts users to "Add how-to article" which is absolutely NOT the thing I want them to do.
Using the Scriptrunner CQL Search macro, we at least get a simple "No results" rendering, which is OK if you have the Scriptrunner for Confluence add-on.
How can we suppress this default presentation of the Content Report Table macro and the Content by Label macro when there is no content matching the search criteria?
I am using Confluence Data Center, version 8.5.19, BTW.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.