Create New Record HERE

9 posts by 3 authors in: Forums > CMS Builder
Last Post: June 21   (RSS)

Using 3.66 I found a small bug. I am finding that when you go to Database Editor >> choose a section >> and then try to use Insert Field Here (+), it works, but it creates the new field two spots down from where I clicked the (+)

Kenny H

Hi Kenny, 

Good find!  We'll have that fixed in the next beta release. 

To patch it in the current version open /lib/menus/database/editTable_functions.php and search for addField.  Then replace this: 

$link  = "?menu=database&action=editField&addField=1&tableName=".urlencode($tableName)."&order=".($field['order'] + 1).".5&fieldname=";

With this: 

$newOrder = ((int) $field['order']) + 0.5;
$link     = "?menu=database&action=editField&addField=1&tableName=".urlencode($tableName)."&order=$newOrder&fieldname=";

Thanks!

Dave Edis - Senior Developer
interactivetools.com

Thanks Kenny, 

We'll check this out and get back to you with any questions.

Dave Edis - Senior Developer
interactivetools.com

Create New Record HERE...but for the sections in cmsb

Hi Dave and Team,

When you correct this issue could you consider adding the function to the Database Editor screen?  For slightly more complicated sites the section editor can get quite long...and I can get lazy. ;-)  It would be a time saver when adding/filling sections.

Create New Record HERE...but for the sections in cmsb

Hi Codee, 

Yea, that's a great idea.  I'll add that one to the queue.  Thanks for the suggestion.

Dave Edis - Senior Developer
interactivetools.com

Hi Kenny, 

Following up on this one.  With v3.71:

  • Create Record Here: It's now inserting right below the record during testing on my local machine.
  • Login Sessions: We haven't seen any login timeouts
  • Editor Spacing: We reverted the checkbox spacing to how it was before for v3.71, but some of the other fields may have less top/bottom margin and require adding a blank separator field for spacing.  This likely changed when we rewrote the field library.  In general, we want to be able to support closer fields for clear logical visual groupings but also allow for adding space when desired (currently by adding a separator).  

If you have any v3.71 installs that aren't working as above or there are still issues feel free to fill out 2nd level support request (or send me some screenshots) and we can take a look.  It's also important to us that we don't change anything that requires you to do a lot of work to "fix" it.  So if the UI changed in a way that doesn't work let us know and we can help.

Thanks!

Dave Edis - Senior Developer
interactivetools.com

Hi Dave - 

So far everything looks good except for Create Record Here - I sent a separate email about this.

The spacing looks great and I haven't had any issues with the the login sessions. 

Thanks!

Kenny

Create New Record HERE, however*

By Codee - June 21 - edited: June 21

Hi Dave,

This is corrected on my copy of cmsb3.71 with the create record here plugin. Thank you for the fix.

*ON A SIMILAR note, concerning the "insert field here" function within the database editor...the function is inserting the field lower than the chosen point, and thus has to be manually dragged to the correct location.  I have attached a couple screen shots from within the database editor on a table - shot 1 is before and shot 2 is after. It's consistent across the board with different tables, etc. 

Attachments:

2screen.jpg 226K

1screen.jpg 208K