Support for node preview

Paraplegic Racehorse - February 20, 2009 - 02:29
Project:Storm
Version:6.x-1.x-dev
Component:Miscellaneous
Category:bug report
Priority:normal
Assigned:Unassigned
Status:active
Description

Am I the only person for whom the create forms load without a save, submit or preview option at the bottom of the form? Any ideas on how to put them there myself?

#1

Paraplegic Racehorse - February 20, 2009 - 02:48

It seems I solved my own issue. Removing form.stormcomponent_node_form #edit-preview from storm.css did the trick. This may have been achievable by editing the content types, but I was logged in as the site-admin (superuser) and still didn't see these buttons.

#2

Magnity - April 15, 2009 - 10:25

Marked #392610: Save button missing to add new content as a duplicate of this.

#3

Magnity - May 11, 2009 - 19:37
Component:User interface» Miscellaneous

I find that if I click the preview button, I get the error Fatal error: Unsupported operand types in /includes/common.inc on line 1273

My thoughts are that it will be good to show the preview button, so this needs sorting out first. As mentioned in other issues, whether the save button shows depends on the require preview configuration setting in Drupal core.

#4

Magnity - July 24, 2009 - 11:42
Title:no submit or save or preview buttons on create forms» Support for node preview
Version:6.x-1.20» 6.x-1.x-dev
Category:support request» bug report

Combining #521972: Storm requires that Preview for content be optional. into this issue...

#5

Magnity - September 13, 2009 - 22:12

Braindump for night:

Error message is Fatal error: Unsupported operand types in /[path]/includes/common.inc on line 1283

The error is only triggered on the nodes that contain dates, and the line in common.inc is $timestamp += $timezone; as part of function format_date.

The function format_date is called from each storm 'view' theme function for each date item. Format_date is also called from _form functions via _storm_gmtimestamp_to_date. If both of these calls are removed, the error does not occur.

#6

Magnity - September 14, 2009 - 16:59

The problem is caused by the way that Storm converts dates to and from timestamps and arrays. As a consequence, for some reason an array is being sent on node preview.

I'm getting a bit lost in the realm of timestamps->dates and vice versa. Would anybody care to put a pair of fresh eyes over to see if there is an easy way of solving this? I do wonder why we need all of the conversions too...

 
 

Drupal is a registered trademark of Dries Buytaert.