Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

Next challenges

Recent achievements

  • Global
  • Personal

Recognition

  • Give kudos
  • Received
  • Given

Leaderboard

  • Global

Trophy case

Kudos (beta program)

Kudos logo

You've been invited into the Kudos (beta program) private group. Chat with others in the program, or give feedback to Atlassian.

View group

It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage
Highlighted

How to get datetime annotation from Blueprint Form in Template?

I'm trying to create a Blueprint Form in combination with an XML Template to create pages.

I already do have a form in .soy format, which includes a Date-Picker to get the date from a form:

simplebp.soy:

..
<form action="#" method="post" class="aui">
<fieldset>
<div class="field-group">
<label for="vdatum">{getText('my.blueprint.form.label.title.vDATUM')}</label>
<input class="aui-datepicker" name="vDATUM" id="vdatum" type="date" size="10" autocomplete="off">
</div>
..

 

The datepicker is working fine, and when calling vDATUM from an XML-template it is filled with the chosen date:

myTemplate.xml:

..
<tr>
<th colspan="1">Datum</th>
<td colspan="1">
<div class="content-wrapper">
<p><at:var at:name="vDATUM" at:rawxhtml="true"/></p>
</div>
</td>
</tr>
..

 

How can I change the template so, that the date is annotated like the Confluence DateTime-format (the "double // method) for use in a Page Properties Index page?

Syntax:

<time datetime="2019-05-23">

NOT WORKING:

<time datetime="<at:var at:name="vDATUM" at:rawxhtml="true"/>">

Can anyone help me out?

0 comments

Comment

Log in or Sign up to comment
TAGS
Community showcase
Posted in Confluence

What do you think is the most *delightful* Confluence feature? Comment for a prize!

- Create your own custom emoji 🔥 - "Shake for Feedback" on mobile 📱 - An endless supply of GIFs via GIPHY 🤩 Is there anything quite as nice as a pleasant surprise? Comment below with what...

384 views 23 8
Join discussion

Community Events

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

Find an event

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

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you