Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

How can I insert a predefined table?

I October 4, 2021

We have a table that needs to be created in a consistent way across pages and users need to be able to add them to existing pages as desired and then edit them (add rows). 

I'm wondering if there is a way for a user to be able to insert a predefined table (has column headers set), and then be able to edit it.  Sort of like a template for just a table.

I tried creating a user macro which can insert a table no problem, but it is not editable because the user editable 'body' can't be within a table as far as I can see.

Is there a feature that can do this?

 

 

2 answers

1 accepted

2 votes
Answer accepted
Bill Bailey
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
October 4, 2021

This is a tough nut to crack. You could start with a page template, and have users ALWAYS start that way. But you also want people to be able to insert this table.

The only way I can think of solving this is to write a plugin that adds a button to the editor ribbon. Clicking this button would run javascript to insert the base table. All this will take some time, especially if you have not developed a plugin before.

You may to just use a two pronged approach:

  • Page template for new pages.
  • Source that users can copy/paste from

Not the most elegant, but quicker to set up.

I October 4, 2021

Hi, thanks for your response.

The use of new page templates and copy/paste is what we are currently relying on and the copy/pasting mechanism has some odd behavior that we are trying to get away from if possible.  I'll post a separate question about that since maybe it can be streamlined a bit.

Creating a custom plugin sounds like it could work but I think it is too much overhead to make it worth the trouble for us.

thanks again

0 votes
Lukas Kempf
Contributor
June 22, 2023

Hi,

I would be interested in this solution too. Was this added as a feature-request?

BR

 

  Lukas

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events