Git Product home page Git Product logo

assets's People

Contributors

ecoreng avatar marlinc avatar rchavik avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

assets's Issues

Featured Image

Adding Integration with Nodes plugin for 'Featured Image'

Storage Path location

Currently, all uploads are stored in WWW_ROOT/uploads. For big sites, this is not desired.

Further, some uploads are intended to be used only for certain records. For example, a node feature image. Or a block banner.

We should come up with a nice way to classify and store these images in the filesystem (or storage engines).

The FileManage might also need better UI to enable easier access to these assets.

Error - Asset not found for shortcode

I'm unable to get the shortcodes to work correctly. I used "[image:5]" as displayed in the Assets browser.

I've tracked it down to a recursive=-1 on line 48 of the AssetsFilterHelper. The model being used is the AssetsAssetUsage model, and the subsequent code is looking for a result from the AssetsAsset model, but its being ignored because of the recursive setting. When I comment out that line, the shortcode works fine and the image shows up in the rendered page.

Asset counter

  • Track asset usage in nodes/blocks/links
  • Possibly via a shortcode, eg: [Asset:1 size=100x200]
  • Figure out how to integrate with Wysiwyg editors, at least the Ckeditor plugin needs to be able to use this syntax. How does other CMS do this?

Hooking Assets to custom Models/Controllers

Hello,
now, i know this is tagged with "Enhancement" here: #6

however, if i were to implement this on my own, manually (not minding to edit bootstrap.php for instance), what's the proper procedure?

Currently i've added my own Model under /Plugin/Assets/Config/boostrap.php

// TODO: make this configurable via backend
$actions = array(
	'Nodes/admin_edit',
	'Blocks/admin_edit',
	'Types/admin_edit',
	'Projects/admin_edit',
);

AND

// TODO: make this configurable via backend
$models = array('Block', 'Node', 'Type', 'Project');

the tab is being added under admin/projects/edit/14 (for example), but it doesn't seem to be calling the $this->fetch('actions'); under Croogo/View/Common/admin_edit.ctp for it to show the browse/upload/refresh buttons

<?php if ($actionsBlock = $this->fetch('actions')): ?>
<div class="<?php echo $cssClass; ?>">
	<div class="actions <?php echo $columnFull; ?>">
		<div class="btn-group">
			<?php echo $actionsBlock; ?>
		</div>
	</div>
</div>
<?php endif; ?>

right now my View/Projects/admin_edit.ctp only has this:

<?php $this->extend('/Common/admin_edit'); ?>

Actually, now that i brainstormed when preparing this issue here, i realized this issue may have nothing to do with Assets, rather than croogo? I'm still learning, and i u can't imagine how much i praise your work. but if this is a bug with a work-around, it would be awesome. :)

/avz

Case icon meaning

It should have a tool tip showing what it means.. i would have guessed "browse" but browse uses another icon... Attachment?, Edit?

adding new files on fails with JS error

on /assets/assets_attachments/add i try to click on + Add Files button, i select the files, but throws a javascript error where nothing happens.

below is the javascript error:

Empty string passed to getElementById(). jquery.min.js:2:7678

i'm not sure what's causing the error or which JS file i should try debugging to make sure this is working properly, but after a hectic 3 hours trying to install Gallery i cannot upload images neither through Gallery plugin, nor Assets. :(

gracias
capture

Documentation

Any links to decent documentation for installation of this and other related plugins. Been trying to install (and I am usually pretty good) but I've been going round in circles getting to work with 2.1.0 - and failing miserably

Asset repositories

Enable adding asset repositories dynamically and handle multiple asset repositories.

Asset duplication on add (?)

I added some assets to one node, then went to edit another node, added the same and they are being shown duplicated when i click the browse icon.

i dont know if its normal, but its confusing

CollectShell improvements

Right now, the CollectShell only works for webroot/uploads or any directory one level below webroot.

It also assumes that the original files is in webroot/uploads while resized files in webroot/uploads/resized.

Other plugin, such my rchavik/gallery stores the files in webroot/galleries/<album-slug>/<resized-file>.jpg, while the original file is stored in webroot/galleries/<album-slug/source/.

Either:

  • Figure out a way to 'collect' these files and store them appropriately in the assets table
  • or Write a shell that automatically collects and rename/move the physical files according to the the Assets' plugin convention

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.