Notice: CMS Builder v1.23 Released (November 6th)

29 posts by 6 authors in: Forums > CMS Builder
Last Post: November 21, 2008   (RSS)

Re: [Dave] Notice: CMS Builder v1.23 Released (November 6th)

By Damon - November 6, 2008 - edited: November 6, 2008

[img]http://www.interactivetools.com/iforum/Products_C2/CMS_Builder_F35/Notice%3A_CMS_Builder_v1.23_Released_%28November_6th%29_P66632/gforum.cgi?do=post_attachment;postatt_id=2390;t=search_engine[/img]

This is a screenshot of the new admin.

Increasing the width of the admin is now simply to do by just changing the ui.css file.
#main > DIV { width: 690px; }
Cheers,
Damon Edis - interactivetools.com

Hire me! Save time by getting our experts to help with your project.
http://www.interactivetools.com/consulting/
Attachments:

cmsbuilder_1_23_admin.jpg 49K

Re: [Dave] Notice: CMS Builder v1.23 Released (November 6th)

By Djulia - November 9, 2008 - edited: November 9, 2008

Hello,

I have a problem with the modal window since the button Add Field.

For example :
Admin > Section Editors > realty_homepage (Add Field)

I use a resolution of 1024 (and IE7) and the buttons (Save, Save & Copy...) are not accessible.
Capture1.gif

I do not have a problem if I use the modal window with the link modify.
Capture2.gif

You can help me to solve this problem ?

Thanks,

Djulia

Attachments:

capture2.gif 24K

capture1_003.gif 17K

Re: [Djulia] Notice: CMS Builder v1.23 Released (November 6th)

By Dave - November 10, 2008

Hi Djulia,

This is fixed for the next version, here's the fix if you'd like to apply it now.

- Open /lib/menus/admin/editTable_functions.js
- Save a backup of this file
- Search for: function addField
- Replace this:

function addField() {
var tableName = $('#tableName').val();
var fieldname = '';
var thickboxUrl = "?menu=database&action=editTable&addField=1&tableName=" +tableName+ "&fieldname=" +fieldname
+ "&TB_iframe=true&height=600&width=700&modal=true";

tb_show(null, thickboxUrl, false); // code reference: http://jquery.com/demo/thickbox/thickbox-code/thickbox.js
}


With this:

//
function addField() {

// set iframe height
var iframeHeight = 600;
var windowHeight = document.documentElement.clientHeight;
if (windowHeight > 0) { iframeHeight = parseInt(windowHeight * 0.80); }
if (iframeHeight < 200) { iframeHeight = 200; }
if (iframeHeight > 600) { iframeHeight = 600; }

// get url
var tablename = $('#tableName').val();
var fieldname = '';
var url = "?menu=database&action=editTable&addField=1"
+ "&tableName=" +tablename
+ "&fieldname=" +fieldname
+ "&TB_iframe=true&width=700&height=" + iframeHeight
+ "&modal=true";

// show thickbox
var caption = null;
var imageGroup = false;
tb_show(caption, url, imageGroup);
}


Let me know if that fixes it for you.
Dave Edis - Senior Developer
interactivetools.com

Re: [Dave] Notice: CMS Builder v1.23 Released (November 6th)

By Djulia - November 10, 2008

Hi Dave,

Thanks, it is perfect ! [:)]

I have another suggestion.

In the editor ( Capture1.gif ), it is possible to have the link "modify" of the Section Editors ( Capture2.gif ) ?

For example : if in Admin > User Accounts


Admin Access == Yes


Then, it would be possible to reach directly the function editTable.

In the Select for example ( Capture3.gif ) ?

Your opinion ?

Thanks,

Djulia

Re: [Djulia] Notice: CMS Builder v1.23 Released (November 6th)

By Dave - November 10, 2008

We want to be careful to keep the interface simple and clean. So I want to give it some more thought before we add more links or options:

Here's how to do it yourself, though. You can add a link just below the section name after </h2>:

</h2>
<?php if ($CURRENT_USER['isAdmin']): ?>
Admin:
<a href="?menu=database&action=editTable&tableName=<?php echo $tableName ?>" >Edit Section</a>
<?php endif ?>


This will show:

Your Section Name
Admin: Edit Section

Hope that helps!
Dave Edis - Senior Developer
interactivetools.com

Re: [Dave] Notice: CMS Builder v1.23 Released (November 6th)

By Djulia - November 11, 2008

Thanks Dave, [:)] It is perfect !

That make more ergonomic the production of the tables.

Djulia

P.s. : I added it in /lib/menus/default/list.php

Re: [Djulia] Notice: CMS Builder v1.23 Released (November 6th)

By Dave - November 11, 2008

Great, glad it's working the way you want. And thanks for the ongoing feedback and suggestions, Djulia. I appreciate them! :)
Dave Edis - Senior Developer
interactivetools.com

Re: [Dave] Notice: CMS Builder v1.23 Released (November 6th)

By Djulia - November 14, 2008

Hi Dave,

I have a JavaScript error with the use of the function Add New Editor (in Section Editors).

JavaScript - ...admin.php?menu=database&action=addTable&
Event thread: keyup
Error:
name: ReferenceError
message: Statement on line 1: Undefined variable: autoFillTableName
Backtrace:
Line 1 of function script
autoFillTableName()
...
stacktrace: n/a; see 'opera:config#UserPrefs|Exceptions Have Stacktrace

You have an idea ?

Thanks for your assistance.

Djulia

P.s. :

It is also pleasant for me to exchange with you.
But, it is sometimes tedious that my English is not better. I cannot always express as I would like it.

Re: [Dave] Notice: CMS Builder v1.23 Released (November 6th)

By Djulia - November 14, 2008

Oops ! The problem disappeared.

Perhaps a problem with the server ( I make test on https://) !

Djulia