We use cookies to improve your experience. No personal information is gathered and we don't serve ads. Cookies Policy.

ExpressionEngine Logo ExpressionEngine
Features Pricing Support Find A Developer
Partners Upgrades
Blog Add-Ons Learn
Docs Forums University
Log In or Sign Up
Log In Sign Up
ExpressionEngine Logo
Features Pro new Support Find A Developer
Partners Upgrades
Blog Add-Ons Learn
Docs Forums University Blog
  • Home
  • Forums

Structure Drag and Drop

Development and Programming

reservoir's avatar
reservoir
11 posts
16 years ago
reservoir's avatar reservoir

I have the structure module installed and while I can drag items in page view I cannot drop them. I have version 1.2.7 installed anyone help me on this please?

       
Peter Lewis's avatar
Peter Lewis
280 posts
16 years ago
Peter Lewis's avatar Peter Lewis

Just a wild guess, but are the JavaScript paths correct and did you update these appropriately when you upgraded Structure?

       
reservoir's avatar
reservoir
11 posts
16 years ago
reservoir's avatar reservoir

Yes, checked the javascript paths and they appear correct. I can actually drag just unable to drop - so the javascript must be working. I’ve tested by setting incorrect paths and I am unable to drag in the first instance.

I’ve noticed some other people have similar issue and I was hoping might have a fix.

       
Jack McDade's avatar
Jack McDade
425 posts
about 16 years ago
Jack McDade's avatar Jack McDade

Check your permissions in the module and extension files – they should be at least 755. That’s the main problem causing this issue.

       
Jim Pannell's avatar
Jim Pannell
187 posts
15 years ago
Jim Pannell's avatar Jim Pannell

Good call Jack - setting everything to 755 just solved that problem for me!

       
Eric A.'s avatar
Eric A.
14 posts
15 years ago
Eric A.'s avatar Eric A.

Hey Jack thanks for the advice, but this fix didn’t work for me. I changed permissions of all structure dirs and files in the module, extension and cp/default directories to 755 recursively.

Using structure 1.3.1 on EE 1.6.8 build 20090915. Never had Pages module installed and I don’t have the CP masked. Any ideas? Thanks in advance. Will cross post in the official 54 page Structure post as well in case Travis is still answering support requests.

       
Paul Bell's avatar
Paul Bell
103 posts
15 years ago
Paul Bell's avatar Paul Bell

I’m having the same issue. When I drop the pages, I see “ERROR” next to the thing I’ve just dragged. Otherwise, very impressed.

       
Paul Bell's avatar
Paul Bell
103 posts
15 years ago
Paul Bell's avatar Paul Bell

UPDATE - sorted it now. For me, the issue was the fact the index.php is hard-coded into the javascript. I’m developing the site at a different URL (since I’m developing on the same server as another live site, so had to change the name of my index file.)

Once I’d changed this in the javascript file, dragging and dropping works. Seems to me that an add-on shouldn’t be making assumptions about my setup like this.

That said, going well so far for my first experience.

       
Eric A.'s avatar
Eric A.
14 posts
15 years ago
Eric A.'s avatar Eric A.

Paul that was the same “fix” I made. I think Travis is looking at reworking the Structure CP javascript so that this assumption isn’t made. At least I remember seeing that in the original 55 page thread somewhere.

       
Paul Bell's avatar
Paul Bell
103 posts
15 years ago
Paul Bell's avatar Paul Bell

Thanks ejatk. I didn’t see your fix, so thought I’d post the details here, and I imagine it had been raised/addressed somewhere. Hope it helps someone.

That 55 page thread is getting a little unwieldy!

       
Eric Nance's avatar
Eric Nance
25 posts
15 years ago
Eric Nance's avatar Eric Nance

Hi Paul,

I’m wondering what javascript file you modified? I’m running MSM with Structure 1.3.1, EE 1.6.8. While the drag and drop works, I also get the error message. I’ve set the permissions as noted above but I’m wondering if it’s a MSM issue? I noticed someone has this same problem posted over on the “official” thread, but I didn’t see a solution posted yet.

Thanks, Eric

       
Paul Bell's avatar
Paul Bell
103 posts
15 years ago
Paul Bell's avatar Paul Bell

The change I made was to do with the path to Expression Engine’s main, client-side homepage (NOT the CP homepage). The javascript file assumes that this file is called “index.php” and is in the root of your webhosting directory. If that’s the case, you should be fine.

If it’s not, then you just need to open up structure.min.js and search for “index.php” and replace that with the name and location of your index.php file (in my case it was index_ee.php). That fixed it for me. When I put the site live, I’ll undo this change, but it gets drag and drop working without the ERROR message. Hope that helps.

       
Eric Nance's avatar
Eric Nance
25 posts
15 years ago
Eric Nance's avatar Eric Nance

Thanks Paul. Unfortunately, this didn’t solve my problem. As a workaround I just removed ‘ERROR’ from the code (same line as where you find index.php). I still get the red dot that appears for a second, but at least there’s no red ‘ERROR’ appearing.

I’m wondering if this is something with MSM. I’ve not run across this before when using Structure on a single domain.

Thanks for your assistance.

       
Tyssen's avatar
Tyssen
756 posts
15 years ago
Tyssen's avatar Tyssen

I’m getting the same problem on an MSM install; dragging and dropping works OK on the default site, but I get an error on the new site and none of the changes stick.

       
Eric Nance's avatar
Eric Nance
25 posts
15 years ago
Eric Nance's avatar Eric Nance

Tyssen,

My issue was slightly different than yours. I had the red “error” message but the changes still worked. I removed the error message code in the structure.min.js file, near the bottom of the file. I’m not sure why this was occurring, especially since the changes were taking effect.

I also only experienced this on an MSM install. All other single installations haven’t had this issue. Hope that helps.

       
1 2

Reply

Sign In To Reply

ExpressionEngine Home Features Pro Contact Version Support
Learn Docs University Forums
Resources Support Add-Ons Partners Blog
Privacy Terms Trademark Use License

Packet Tide owns and develops ExpressionEngine. © Packet Tide, All Rights Reserved.