Giter Site home page Giter Site logo

modxcms / collections Goto Github PK

View Code? Open in Web Editor NEW
53.0 53.0 37.0 4.55 MB

An Extra for MODX Revolution that provides for Resource Collections managed by CollectionContainer Resources

License: GNU General Public License v2.0

PHP 68.58% CSS 0.82% JavaScript 27.02% Smarty 0.01% SCSS 0.40% TypeScript 3.17%

collections's People

Contributors

alipang avatar bruno17 avatar carnevlu avatar danyapostfactum avatar exside avatar jako avatar jpdevries avatar lefthandmedia avatar maef avatar mark-h avatar matdave avatar modxbot avatar opengeek avatar rthrash avatar rtripault avatar ruga avatar sepiariver avatar simbik avatar spheerys avatar theboxer avatar vanchelo avatar zooks avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

collections's Issues

Tag support

Filter/search in grid by tags, whether TV or maybe some other thing?:P

FR: Configure Show Children in Tree

What if each Collection Container had the ability to set whether or not it's resources should show in the tree. Yes that seems like what is the point...but you could base that setting off a user setting. So that certain collections, for certain users, actually show their children in the tree. This way, if a user or user group (2.3) prefers the ability to drag and drop in the tree for certain collections, they can make that happen.

Configurable grid view?

Is there a way to configure the grid view? e.g. to change the columns and representation of column content?
It would be great to have this configurable at least on system level (for all collection containers). Even better on container lever, to define different "views" for different containers...

Drag from Tree to Collection grid

Drag from Collection to Tree is amazing! What about the reverse?

Note: there is a lot of dragging with this thing now LOL. Hopefully we can keep the code sane and Manager fast...if not maybe we shouldn't add this feature?

Some German translations are missing

The menu items under bulk actions are not translated into German. All other grid labels seem to be ok.

Published selected = Auswahl veröffentlichen
Unpublish selected = Auswahl zurückziehen
Delete selected = Auswahl löschen
Undelete selected = Auswahl wiederherstellen

Regards,

pepebe

Option to remove 'deleted' child

It would be a nice feature to have an option to completely remove a 'deleted' child and its intersects (TV values, resource groups, etc) from the database.

This could take the form of a new "purge" or "remove" button that is displayed if the child is already 'deleted'.

Constant Errors because of missing Tagger class

On each manager request I got the following logged to the error log:

[2014-05-22 16:38:23](ERROR @ /manager/index.php) Could not load class: Tagger from tagger.
[2014-05-22 16:38:23](ERROR @ /manager/index.php) Problem getting service tagger, instance of class Tagger, from path /home/radiober/modx/core/components/tagger/model/tagger/

this is quite annoying =)...I think it should just check if the Tagger extra is installed and if not skip "tagger" functionality...skipped trough the source and it seems to set a config variable "taggerInstalled", but couldn't find where it's checking that...obviously disabling the plugin stops the log swamping, but not really a solution...

CMP Collection Templates Ambiguous

The purpose of the Collection Templates is a little confusing. It's not for the templates the resources will be assigned to use, it's for the Collection's editing form. This could be described better in the CMP.

increase flexibility

I would like to see in future versions of this add-on:
in Grid view if the document is a Collections class, you can view the child document, or create new child in them.
This will give multi-level system, while maintaining the Grid view type

Grid Not Loading Error

Not sure what is going on but on sites with VersionX installed on MODX 2.3, Collections grid is failing to load. I tested it with a clean modxcloud install of MODX 2.3-pl, Collections 2.0.1-pl and VersionX 2.1.0-pl to make sure it wasn't just my site.

Collections container not showing children in grid [MODX 2.3]

I'm testing Collections 1.3.2 with MODX 2.3 and most things seem to work just fine, except the container grid doesn't show children. I can confirm that those resources are indeed created and searchable and they have the correct parent setting as well.

It'd be nice to see this issue resolved before MODX 2.3 is released.

Processor "resource/update" not found.

After a fresh install of Collections into a site with four contexts I get an error

Procesor "resource/update" nenalezen.
(Processor "resource/update" not found. in English)

when trying to update the collection. It's creation is fine though. Could the problem be in multiple contexts?

Doesn't work for me :) (Solved)

Your extra seems to be a great idea. Something along the line of "Handling Child Resources with MIGX" but easier to setup.

Unfortunately I'm not able to make it work.

I have installed your extension, created a few resources and moved some of them into each other.

From the screenshot I believe there should be a new tab with a grid showing the child resources but it isn't there.

I've checked the collectors plugin and it is activated,

4 Events are checked:

  • OnBeforeDocFormSave
  • OnBeforeEmptyTrash
  • OnDocFormPrerender
  • OnResourceSort

There doesn't seem to be a settting in the settings manager that could cause this problem.

I also logged out/in and deleted core/cache as well as my browser cache.

My site is hosted on modxcloud.
The version is MODX 2.2.10
I use the latest version of Google Chrome
There are no JS errors shown in the console.

I'm sure it is a stupid mistake on my side. Any advice?

pepebe

Include error on context menu Resource information on container

When choosing for Resource information in context menu on container in tree resulting in following error:

Fatal error: require_once() [function.require]: Failed opening required '/xxxxxxxxxxxx/core/components/collections/controllers/data.class.php' (include_path='.:/usr/share/pear;') in /xxxxxxxxxxxx/manager/controllers/default/resource/resource.class.php on line 79

error-collections

It occurs on several installations using MODX 2.3.1.

The file data.class.php is really missing in called directory.

Thumbnails in Grid View

I've found a flexible way to add an optional thumbnail to every grid row that can be easily customized, but I still have a couple of issues:

  1. Media sources are only working if they don't depend on the id of the resource displayed in a row. They always get the id of the collection resource (the parent) and until now I have failed to set a docid parameter for the media resource snippet.
  2. I can't find the right syntax to only return an img tag if {thumbnail} is not empty. I'm sure its easy, but im not a smart(y) person...
/* source: assets/components/collections/js/mgr/widgets/category/collections.grid.resources.js
*/
        this.tplThumbnail = new Ext.XTemplate('<tpl for=".">'
            +'<div class="collections-thumbnail">'
            /* !empty(thumbnail)... */
            +'    <img src="/connectors/system/phpthumb.php?h=80&w=80&zc=1&source={source}&wctx=mgr&src={thumbnail}" alt="{thumbnail}">'
            /* /!emtpy(thumbnail)... */
            +'</div>' 
            +'</tpl>',{
            compiled: true
        }); 

If somebody is in the mood to help, I'll send some login details to my test environment.

I'll post a pull request if I'm able to get rid of these problems.

Regards,

pepebe

Incorrect dirty bit on Chrome (Mac) and Safari

Whenever I click "Edit" on a child document in Chrome/Safari on Mac I get the following:

screen shot 2014-06-30 at 08 37 50

screen shot 2014-06-30 at 08 46 40

This doesn't occur in Firefox, IE 11 (Windows 8.1), IE10 (Windows 8), IE10 (Windows 7), IE9 (Windows 7) - so I guess only a Webkit problem?

UI

I think this is really cool. Was just wondering if you had plans to clean up the UI at all? I never understood why Articles had such a massive Published On and Title Text.

Ideally it should be a nice clean grid like Expression Engine uses for it's Channels: http://i.stack.imgur.com/1TrJS.png

or how Craft CMS displays Channels.

And are you planning pagination and search too?

Update Error in Package Manager

Version 2.0.2-pl installed, Update button highlighted. It produces this error message:

An error occurred while connecting to the Provider: No Package release found.

Error in MODX 2.3.x

After installing Collections 2.0.2, the following error is being logged every time the manager page refreshes:

(ERROR @ /manager/index.php) [OnManagerPageInit]1

This happens in MODX 2.3.0 and 2.3.1, and doesn't matter whether or not a resource of the type "Collection" currently exists.

Publish-Unpublish buttons mixed up

The Publish and Unpublish buttons affect the wrong resources. I still haven't determined the pattern, but it appears that the first click will unpublish the first child, a second click will unpublish the second resource, etc until finally it will unpublish itself.

The publish button works in the opposite direction. Top resource published first, then down the line until it publishes itself.

show_in_tree Default Conflict

show_in_tree defaults to 1 on other Resource Types that are meant to be hidden children. Even after saving, it reverts back to being checked. This runs into conflicts with other types of containers (e.g. miniShop2) making it impossible to hide anything else in the tree.

Collections and MODX 2.3

I have tried this on two different 2.3 installations - one running June 14th Nighly and another running June 24th nightly.

All CMS seems to be running as expected, however when I add a new collection the tree icon never gets changed from either a standard 'page' or 'folder' icon (depending on if it has children or not). If I go to edit the Collection parent I can see the grid but none of the children show. I cannot get to these pages unless I change the document class from "collection" back to "document".

pagination logic

I think there is something wrong with how the pagination is calculated. I do not see all of my documents when set to view the first 20. It says it is displaying 1-4 of 6. I try view 10, I get 1-2 of 6. When I increase the items per page to 200 I get all six. There is a large gap between my resource ids.

UPDATE: It happens when I try to add a tv_variable column. The mapping seems to be off and I get different TV values other than the one I specify.

Direct childs visible after upgrading to 1.1.0

Few weeks ago I did upgrade your plugin to v1.1.0 and from that moment all new direct childs are shown in Resource-tree.

It was ment to be hidden automaticly when being a direct child of the container, right?

image

Resources added before upgrading still being hidden.

No children in Revo 2.3.1 (Collections 2.1.0)

Children aren't showing up in Revo 2.3.1, using Collections 2.1.0

Works as expected in Revo 2.2.15

In 2.3.1 error log:

[2014-07-28 02:05:50](ERROR @ /assets/components/collections/connector.php) Error 42S22 executing statement:
Array
(
[0] => 42S22
[1] => 1054
[2] => Unknown column 'CollectionTemplate.child_template' in 'field list'
)

[2014-07-28 02:05:50](ERROR @ /assets/components/collections/connector.php) Error 42000 executing statement:
Array
(
[0] => 42000
[1] => 1064
[2] => You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '' at line 1
)

More space for the Title

Hi there,
just a simple "demand" ;-) by ANY customer using Collections:
"Could we place have more space for the title of a resource?"

I absolutely get what they mean: The colums for "menu index" and "alias" are so huge compared to their content.

Just saying. ;-)

Thanks for the tool anyway. It'a a great assets!

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.