Git Product home page Git Product logo

draggable's Introduction

Draggable

Draggable adds drag and drop sorting to custom channel fields, member fields, statuses, and categories in the ExpressionEngine control panel.

Installation

To install Draggable:

  1. Copy the /draggable/ folder to your /system/expressionengine/third_party/ folder.
  2. Navigate to "Add-Ons" > "Extensions", then click the "Enable?" link to the right of the Draggable extension listing.
  3. Make sure "install" is selected for both the Accessory and the Extension and click "Submit"

Once installed, you'll be able to sort entries on the custom channel fields, member fields, statuses, and categories pages by dragging and dropping the table rows. Row order is saved automatically when you drop the row in its new position.

ChangeLog

1.4.2

  • Fix a bug that was stopping the publish page from displaying Draggable
  • Enable Draggable even if only one column is visible

1.4.1

  • Add support for DevDemon Udpater

1.4

  • Revise order column hiding logic to accurately hide the correct column regardless of ExpressionEngine version or language
  • Add visible drag handles to tables that include Draggable
  • Improve extension compatibility with newer versions of ExpressionEngine
  • Update extension to include all required settings as defined in the ExpressionEngine developer documentation
  • Add support for sorting custom category fields
  • Improved row styles while in dragging state
  • Updated zip file format to be compatibile with DevDemon Updater
  • Add the ability to drag and drop categories in the edit categories feature of the publish section's categories tab

1.3

  • Added sorting to custom member fields
  • Fixed bug that was causing Field Name to be hidden in ExpressionEngine 2.2x
  • Removed extension settings
  • Draggable tab and order columns are now always hidden by default

1.2

  • Various Bug Fixes

draggable's People

Stargazers

 avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

draggable's Issues

Devot:ee Package name

Can you update the package name on Devot:ee?

It will make an annoying alert go away in the new Devot:ee Add-on Monitor.

Thanks.

Drag order not saving

Everything appears to be working correctly, but drag order is not saving.

Running ExpressionEngine v2.1.0 Build 20100810

EE Version 2.5 Install Issue

On a fresh install of EE, version 2.5, been getting an error when I try to do an installation of the extension.

I believe this is the same error as http://devot-ee.com/add-ons/support/draggable/viewthread/3031

A Database Error Occurred

Error Number: 1364

Field 'settings' doesn't have a default value

INSERT INTO exp_extensions (class, method, hook, priority, version, enabled) VALUES ('Draggable_ext', 'update_order', 'sessions_end', 10, '1.3', 'y')

Filename: codeigniter\system\database\DB_driver.php

Line Number: 330


Thanks!

Still need fix for DB error on install in EE v.2.5.5

This may be the same issue as in closed issue #5 and on the Devot-ee thread about this error. Here's the steps I took to fix it for myself. I'd contribute a patch if I knew a little more about PHP & MySQL. Maybe this will help someone.

Upon installing Draggable in a fresh, locally hosted instance of EE v.2.5.5, I received a database error that

Field 'settings' doesn't have a default value

INSERT INTO `exp_extensions` (`extension_id`, `class`, `method`, `hook`, `priority`, `version`, `enabled`) VALUES ('', 'Draggable_ext', 'update_order', 'sessions_end', 10, '1.3', 'y')

Following some advice from a commenter on the Devot-ee thread about this error, I went into the database with phpMyAdmin and changed the settings field to allow NULL values.

That brought up a second error complaining about an incorrect value in the extension_id field. I changed that field to allow NULL values as well.

That might not have been necessary because I got the same message about the extension_id field again. Line 79-95 of draggable/ext.draggable.php reads:

function activate_extension()
{
    // Create Extension Record
    $this->EE->db->query(
        $this->EE->db->insert_string('exp_extensions',
            array(
            'extension_id' => '',
            'class'        => ucfirst(get_class($this)),
            'method'       => 'update_order',
            'hook'         => 'sessions_end',
            'priority'     => 10,
            'version'      => $this->version,
            'enabled'      => "y"
            )
        )
    );
}

It occurred to me that an integer type field shouldn't have a string value. I changed line 85 to 'extension_id' => NULL, and then it finished installing with no more errors.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.