Page 1 of 1

Designing pages - pages won't collapse in admin-panel

Posted: Wed Jan 16, 2008 10:23 am
by photastic
hi,

i have recently succesfully installed CMS MS 1.2.3 on my webspace and it's working like a charm :)

I have one problem though in creating my menus.
Whenever I go to the admin-panel to design the pages (I believe it's menu "Content" --> "Pages", it's in dutch with me),
If I click there on the arrow to collapse the items so I can see the submenus, they don't open.
Clicking on "Collapse all" doesn't do anything else either.

I tried this in FF 2.0 and IE7 both with no luck...

The menu I'm using is the default built-in "CSSMenu Left + 1 Column".

If any details are required, let me know...

Thanks in advance!

Re: Designing pages - pages won't collapse in admin-panel

Posted: Thu Jan 17, 2008 5:16 am
by nivekiam
That feature uses Ajax.  I would make sure you have JavaScript enabled in both IE and FF.

Then I would make sure that http://www.example.com/lib/xajax/xajax_js/xajax.js is getting loaded.  If it is, I would then make sure that it's not corrupt.  It looks like that file was sent through a javascript compressor, perhaps your FTP client messed that file up somehow.  Maybe rename that file to something else, then rename xajax_uncompressed.js to xajax.js and see if it works then.

Re: Designing pages - pages won't collapse in admin-panel

Posted: Fri Jan 18, 2008 8:53 am
by photastic
thanks for the reply but i tried renaming the file and re-uploading it but no joy.

Javascript is working so reason lies somewhere else...

how can i check if the ajax is loaded?

Re: Designing pages - pages won't collapse in admin-panel

Posted: Fri Jan 18, 2008 6:16 pm
by nivekiam
I would look at the source of the generated page and see if it's in the right location.  I don't think that is the problem, but it's something to double check.  Maybe even copy and paste that URL of the xajax.js file into your browser address bar to make sure your browser can access it.

User Firefox and install the Web Developer Toolbar https://addons.mozilla.org/en-US/firefox/addon/60

Then load the page and see if there are any JavaScript errors.  You should see 2 green check marks on the right side of the toolbar.  If you hover your mouse over them you should see "No CSS Errors" and "No JavaScript Errors".

Re: Designing pages - pages won't collapse in admin-panel

Posted: Mon Jan 28, 2008 12:37 pm
by photastic
I have entered the full URL of the xajax.js file in Firefox and the file was shown in the browser.

I also installed that FF add-on and when I open the page where I have the problem, the 2 dots turn green so no errors are found.
When I click on an arrow to unfold the menu, simply nothing happens and the 2 dots remain gray.

any other ideas?

Re: Designing pages - pages won't collapse in admin-panel

Posted: Mon Jan 28, 2008 12:53 pm
by photastic
update on the issue that might help : out of pure curiosity, I right-clicked the unfold-icon and chose "open in new tab" and so it did with the menu unfolded... So opening it in the same tab doesn't work...

Re: Designing pages - pages won't collapse in admin-panel

Posted: Mon Jan 28, 2008 2:14 pm
by nivekiam
I just can't see what would be wrong.

And clicking on Expand All or Collapse All doesn't do anything?

Although this works with either setting for me, try going to My Preferences > User Preferences at the bottom there is a check box to select if you see indentation in the page listing.  If it's checked, try unchecking, saving and seeing if you can expand the pages.

You've also cleared your browser cache and cookies?  Have you been able to try it from a different computer?

Maybe try putting your CMSms install into debug mode (if it's a live site you might want to wait until late at night).

Edit the config.php file and change $config['debug'] = false; to $config['debug'] = true;  Then see if there are any errors when you try to click on that.  The debug output should come in at the bottom of the page.

Maybe copy and paste that output to a text file and attach that here for someone to look at.