Hi,

No matter what I try, i can't get Views to generate a sortable display on a local install. I've installed the latest dev versions of all required modules (Views 6.x-3.x-dev, jQuery UI 6.x-1.x-dev, jQuery Update 6.x-2.x-dev, jquery-ui-1.7.3). What did I miss? Any advice? See attached screen captures.

CommentFileSizeAuthor
#2 safari-activity-window.png152.16 KBbisonbleu
sgrid-d6-setup.pdf932.54 KBbisonbleu

Comments

Countzero’s picture

Assigned: Unassigned » Countzero

Please check these two things :

- do you have any Javascript errors on the page ?
- does the view's containing DIV have the 'sortable' class ?

bisonbleu’s picture

Title: Can get Sgrid to work in D6 » Can't get Sgrid to work in D6
StatusFileSize
new152.16 KB

Ok, got it!

The 'sortable' class was there in Views. The problem was related to 3 JavaScript errors which I was able to see using the Safari Activity window (attached). Essentially, the ui.draggable.js file and two others were "not found".

As it turns out (at least on my local install) the system expects the jquery.ui library to be at sites/all/modules/contrib/jquery_ui/jquery.ui and not the usual location (sites/all/libraries/jquery.ui) as specified in the jquery_ui module README.txt:

* Extract the archive. This will create the following sub-directory:

/sites/all/libraries/jquery-ui-1.7/

* Rename the sub-directory into "jquery.ui":

/sites/all/libraries/jquery.ui/

so the actual jQuery UI JavaScript files are located in:

/sites/all/libraries/jquery.ui/ui/*.js

Any idea why jquery.ui's default location is deprecated?

Merci Countzero!

p.s. On Mac OSX, Sgrid only works in Firefox (good enough for me). The grid elements are visible but not draggable in Chrome, Safari or Opera.

Countzero’s picture

Title: Can't get Sgrid to work in D6 » Jquery_ui module changed the place of its files
Component: Documentation » Code
Category: support » bug
Priority: Normal » Major
Status: Active » Needs work

The module asks for the path via drupal_get_path and deduces the place to find the files from this. Apparently, there was a change in the jquery_ui policy about the place of the files, so the module no longer finds them. Dam'it.

As for your Safari problem, maybe you're having a cache issue. I just retested on my setup (5.1.1) and everything's fine. Try hitting Alt+Cmd+E and reloading the page, it may do the trick.

I leave this issue open and reword it to match the underlying problem. Thanks for reporting it.

Countzero’s picture

Status: Needs work » Closed (won't fix)

I'm reluctant to work on the D6 version, as it doesn't really have a future from my POV :

- D6 is disappearing slowly from new projects.
- Draggable Views integrates the same functionality as this module.

So I won't fix this problem. Feel free to reopen if you think I'm wrong.

Countzero’s picture

Issue summary: View changes

spellcheck