xintesa / assets Goto Github PK
View Code? Open in Web Editor NEWDeprecated: Merged to upstream
License: Other
Deprecated: Merged to upstream
License: Other
Adding Integration with Nodes plugin for 'Featured Image'
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.
When possible, we should integrate with FileStorage
plugin and provide a clear upgrade path for it.
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.
shortcode
, eg: [Asset:1 size=100x200]
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
It should have a tool tip showing what it means.. i would have guessed "browse" but browse uses another icon... Attachment?, Edit?
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. :(
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
Enable adding asset repositories dynamically and handle multiple asset repositories.
I edited an attachment on the popup and then saved, then it took me to the attachment index but it had the default layout instead of the popup
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
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:
assets
tableA declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.