I'm defining the structure of the page that my scaffold will create, but I'm failing to see how I can add a DatePicker in the Dialog Editor. I would have expected a Date(Time)Picker in the Fields grouping but no. So, how do I add a DatePicker to my scaffold?
Solved! Go to Solution.
Views
Replies
Total Likes
This may be a bit late...but I'll give an answer anyway.
For that particular field, you need to set the xtype property to "datetime" as opposed to "textfield" for a traditional text field. You will probably also want to add an additional property to that node to avoid the time appearing in the field when you select a date. Here is the info for that property:
Name: hideTime
Type: String
Value: true
Hope that helps!
Views
Replies
Total Likes
In am not sure - do you want the datepicker in a scaffolding dialog or on the web page so end users can use a datepicker to choose a date value? I am assuming the scaffolding dialog.
Here are the docs https://docs.adobe.com/docs/en/cq/5-6-1/wcm/scaffolding.html
Note in the docs the difference between a component dialog and a scaffolding dialog:
The dialog definition for a scaffold works similarly to that of a component (see Components). However a few important differences apply:
Views
Replies
Total Likes
smacdonald2008 wrote...
In am not sure - do you want the datepicker in a scaffolding dialog or on the web page so end users can use a datepicker to choose a date value? I am assuming the scaffolding dialog.
Here are the docs https://docs.adobe.com/docs/en/cq/5-6-1/wcm/scaffolding.html
Yes, I want a DatePicker in the scaffolding dialog. I've read the above documentation thoroughly and looked at the included demo sites (geometrix) without finding an example of how to include a DatePicker. So, how to do it?
Views
Replies
Total Likes
This may be a bit late...but I'll give an answer anyway.
For that particular field, you need to set the xtype property to "datetime" as opposed to "textfield" for a traditional text field. You will probably also want to add an additional property to that node to avoid the time appearing in the field when you select a date. Here is the info for that property:
Name: hideTime
Type: String
Value: true
Hope that helps!
Views
Replies
Total Likes
Views
Likes
Replies
Views
Like
Replies