How can I use excerpt:hidden=true in a template with textarea

Example template:

{excerpt:hidden=true}
@EXCERPTData|textarea(5x10)@
{excerpt}
When using this template, the textarea doesn't show up and after clicking 'Insert Variables' it creates an empty page

Using the same template without 'hidden=true', the textarea shows up, but the the 'excerpt' is not hidden

1 answer

1 accepted

I don't think there's any way of achieving it with standard templates, but you can certainly do it with the Scaffolding Plugin. Something like this:

{hidden-data}
{excerpt-data:Excerpt|type=area|width=400px|height=5em}
{hidden-data}

I guess an alternative would be using {hide-if} from the Visibility Plugin (or the similar {builder-hide} macro from Adaptavist's Theme Builder), something like so:

{hide-if:action=view}

{excerpt:hidden=true}

@EXCERPTData|textarea(5x10)@
{excerpt}

{hide-if}

Hope that helps!

Thanks a lot,

I used {hide-if} and that worked.

Suggest an answer

Log in or Sign up to answer
Atlassian Community Anniversary

Happy Anniversary, Atlassian Community!

This community is celebrating its one-year anniversary and Atlassian co-founder Mike Cannon-Brookes has all the feels.

Read more
Community showcase
Published yesterday in Confluence

Think you know shares vs. @mentions in Confluence? Take this collab quiz.

To anyone who doubts that Atlassians are a little too obsessed with collaboration, and tools related thereto, let me describe a recent discussion we had (which took place on our internal Confluence, ...

107 views 2 4
Read article

Atlassian User Groups

Connect with like-minded Atlassian users at free events near you!

Find a group

Connect with like-minded Atlassian users at free events near you!

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you