Attempting to create an asset builder for calendar events and run into a couple of issues…
Want to use Create Location Rules to specify where the event is stored (ie if Start Date contains 2008 stick it in a 2008 folder). Set up the rules and it comes back with:
The new asset was not created. Ensure you have entered all required information and try again.
Unable to determine where to create this Single Calendar Event [CMS0033]
It does say below: 'Note: New assets will be linked under additional locations according to these rules.' does this mean it has to be created somewhere 'fixed' first?
Titles will be quite long (and then get translated into webpaths) is there a way to allow the user to set a shorter web path as part of the asset builder page (I know there was a discussion here recently about the absense of a keyword so looking for more a smart work-a-round I guess…)
[quote]1) Want to use Create Location Rules to specify where the event is stored (ie if Start Date contains 2008 stick it in a 2008 folder). Set up the rules and it comes back with:
The new asset was not created. Ensure you have entered all required information and try again.
* Unable to determine where to create this Single Calendar Event [CMS0033]
It does say below: ‘Note: New assets will be linked under additional locations according to these rules.’ does this mean it has to be created somewhere ‘fixed’ first?[/quote]
The Asset Builder is not matching the rule and failing to create the Calendar Event under the assigned location. This may be due to the processing of the “start_date” attribute which if I recall occurs in the Single Calendar Event asset and not at the Asset Builder level. A “Fixed Location” does not have to be supplied - I can link an event based on asset name for example. If you would like to submit a report to our Bug Tracker, we can determine whether or not the behaviour you have described is a bug.
[quote]2) Titles will be quite long (and then get translated into webpaths) is there a way to allow the user to set a shorter web path as part of the asset builder page (I know there was a discussion here recently about the absense of a keyword so looking for more a smart work-a-round I guess…)[/quote]
It might be possible to use the "Add Web Path" trigger to create a new path based on one of the keywords in the newly-created asset. This trigger would be configured to look at your destination root assets (most likely Folders) for "Single Calendar Event" assets and only act when the "Asset Created" event is fired. Although using this approach will mean that there are two web paths per asset (long and short names). I haven't tried this to see if it works, but it might form part of a solution for this point.
I have looked in the Bug Tracker and found the report I was referring to in my last post:
[quote]The Asset Builder is not matching the rule and failing to create the Calendar Event under the assigned location. This may be due to the processing of the “start_date” attribute which if I recall occurs in the Single Calendar Event asset and not at the Asset Builder level.[/quote]
The related report is Feature #2689: Datetime attribute validation in Asset Builder. The date fields in Single Calendar Event and other event types are composed of at least three fields - year, month and date - and these are processed by the asset itself to determine the attribute value (ie; start_date). As this processing occurs within the asset and not Asset Builder, the value is blank when it is queried for “Create Location” rules.
The required functionality could be achieved by showing a Selectable Create Locations dropdown list containing Folder locations (ie; 2007, 2008). Some Javascript could be added to the form to evaluate the year portion of the start date entered and select the relevant destination asset from the dropdown list before the form is submitted.
[quote]I have looked in the Bug Tracker and found the report I was referring to in my last post:
The related report is Feature #2689: Datetime attribute validation in Asset Builder. The date fields in Single Calendar Event and other event types are composed of at least three fields - year, month and date - and these are processed by the asset itself to determine the attribute value (ie; start_date). As this processing occurs within the asset and not Asset Builder, the value is blank when it is queried for “Create Location” rules.
The required functionality could be achieved by showing a Selectable Create Locations dropdown list containing Folder locations (ie; 2007, 2008). Some Javascript could be added to the form to evaluate the year portion of the start date entered and select the relevant destination asset from the dropdown list before the form is submitted.[/quote]
Thanks - that’s what I’ll do then - have a hidden DD list that gets set by the date selections.
I can’t get my single calendar event asset builder to work if start and end are set as required fields. I assume that Feature #2689: Datetime attribute validation in Asset Builder is still a dream in someone’s eye as far as 3.18.11 is concerned?
I had experienced the similar bug, but it's for customise form -> time and date question field. When the user chooses "00" for example, 21:00, the value of the minute field turned to be "blank". Fortunately this bug has been fixed on 3.20.2 which we are using.