Better Confluence Page Index Macro? - macros

I'm currently using Confluence Page Index Macro to index my sub-pages from a specific area. The issue is, I can't customize the results generated by this macro.
I would like to have only specific pages with a dedicated tag as a result.
The question is: does exist a better page index macro? I want to have the same output but with less content.
regards!

Related

Create a dictionary looking page on wiki.js

I am trying to create a page on wiki.js that looks very much like a dictionary. More specifically,
There are multiple terms with definition ranked alphabetically
There is a search bar to search within those terms
There is a way for users to add a new term+definition if the term is not present.
Is anything like this possible?

When using Virtual Documents how can a template be used with different report parameters?

I'm using a virtual document structure generated by a script to create a document from EA, and I'm trying to use the same template fragment several times with different elements and different headings.
For example, I have an element which describes the input data to one program, and the output data to another program, so I can't really store the information in the element I'm documenting.
Where it is the input, I want one heading (and similar references within the template), and where it is output I want different values for the headings.
I've tried using the ReportTitle tagged value in the individual <model document> element, but this appears to be ignored and only the <report package> value is used throughout (which makes me wonder why they are there in the first place).
While I could create multiple templates all referring to the same fragment and hard-code the different headings, but that is messy, and as I already have fragments within fragments so it could result in a lot of almost identical templates and fragments. Variables that I can set for each <model document> would be much preferable.
Has anyone got a better approach than this? Thanks!
I don't think there's an easy solution.
If there is a way to determine based on the element, package, or diagram ID whether you should use one title or the other then you could use a script or SQL fragment to return the correct title.
If that is not the case I guess the only possibility is to hardcode the different titles in your templates.
In order to avoid too much duplication you could create a template with only the title and use that on a model document. Since you are generating the modeldocuments by a script anyway that doesn't cost any user time.

Limit amount of content elements in a column in a backend layout of TYPO3

I have to implement a homepage in TYPO3 so that it has a different look and a different backend_layout than the subpages. In one column the editors can insert boxes as content elements. I want to have a maximum limit of boxes (or an exact amount) that can be inserted, e.g. 4 boxes.
Is there any way to achieve this?
The only limitation that I found was the type of content elements not their amount.
You will need to write a special PHP function for that.
TYPO3 offers a system-wide principle called "hooks".
A hook can intercept the data flowing through the system and modify the behaviour of TYPO3.
There are a lot of hooks in several vital places so you should be able to tackle the issue.
In your rather special case you will need several hooks that will change the several places where an editor could add content elements.
You could circumvent some of these places by disallowing the editor to see them (which might in turn reduce the amount of hooks you need to use).
Another thing you could to is to restrict the amount of content elements that are being rendered in the Frontend via Typoscript.
Take a look at select.limit.
Keep in mind that this might look odd to the editors which can't tell, why content elements they added in the BE do not show up in the frontend later.
Currently there's no easy way to configure that. The PHP class \TYPO3\CMS\Backend\View\PageLayoutView is responsible for rendering these boxes (content elements) per page and per column (the database field is named "colPos"). Currently the only way would be to XCLASS/override the PageLayoutView class and to post-process the results of method getTable_tt_content().
A better solution would be to introduce this limiting behaviour or to add a hook that allows custom processing of the accordant data (buttons to be shown, like 'new' and 'paste').

Advanced conditional logic - Gravity Forms Wordpress plugin

I had a question as to the best way to hook some specific functionality into my Gravity Form.
I have a situation where I want to show a different set of dropdown options based on several different possible ranges of postcodes entered into a field.
One way I've tried to achieve this was with Conditional Statements, but the only problem I'm encountering there is that there are quite broad ranges for the postcodes that aren't super easy to work with, plus a few exceptions.
e.g.
New South Wales post codes can be:
1000, 1999,
2000, 2599,
2619, 2898,
2921, 2999
I could code this as a PHP function to validate and return a state, is there a way to hook that into the functions.php file? Or is there a better way to handle this?
Thanks!
Alright, I managed to come up with a solution for this by using a hidden select field as my conditional and then using on page javascript to check for entries to the postcode field and update the hidden conditional field manually.

How can I work collaboratively on Confluence tables?

The idea is:
Page A contains a table header, and a lot of child pages (B, C, D), which in turn contain table rows. Page A should display ALL rows of all child pages in ONE table.
No matter which type of include macro I use (include, excerpt-include, multi-excerpt-include) the table macro of page A interprets the results as a SINGLE column. I guess this is due to the execution order of the markup and macros. Does anyone have another solution at hands?
An easy work around, although it might not suit your needs, would be to create the tables in .asp pages and then html-include them on the necessary pages.
I've used .asp pages with html-include a number of times to display content that I couldn't otherwise use in confluence.
Hope that helps.