Forum
thumnails not appearing in assets for bucket
Perch Runway: 2.8.34, PHP: 7.0.8, MySQL: mysqlnd 5.0.12-dev - 20150407 - $Id: 241ae00989d1995ffcbbf63d579943635faf9972 $, with PDO
Server OS: Darwin, apache2handler
Installed apps: content (2.8.34), assets (2.8.34), categories (2.8.34), perch_forms (1.8.3)
App runtimes: <?php $apps_list = array( 'content', 'categories', 'perch_forms' );
PERCH_LOGINPATH: /perch
PERCH_PATH: /Users/john/projects/uxgent-runway/public/perch
PERCH_CORE: /Users/john/projects/uxgent-runway/public/perch/core
PERCH_RESFILEPATH: /Users/john/projects/uxgent-runway/public/perch/resources
Image manipulation: GD
PHP limits: Max upload 32M, Max POST 32M, Memory: 128M, Total max file upload: 32M
F1: 6a33f95eca3667f9e0c39bf5ca2980fe
Resource folder writeable: Yes
HTTP_HOST: uxgent.localhost:8888
DOCUMENT_ROOT: /Users/john/projects/uxgent-runway/public
REQUEST_URI: /perch/core/settings/diagnostics/
SCRIPT_NAME: /perch/core/settings/diagnostics/index.php
Hi, I'm trying to create a new bucket with these settings:
<?php
return array(
'backup' => array(
'type' => 'dropbox',
'web_path' => '',
'file_path' => 'backup',
),
'portfolio' => array(
'type' => 'file',
'web_path' => '/perch/resources/portfolio',
'file_path' => $_SERVER['DOCUMENT_ROOT'].'/perch/resources/portfolio'
)
);
I've got a page template using this for it's image, storing it inside the portfolio bucket
<perch:content id="image" type="image" label="image" bucket="portfolio" />
If I go to Assets inside Perch and select Portfolio as the Bucket and then drag and drop the images in it deletes them and nothing appears in the resources folder.
If I add it via the page template I can add the image but no thumbnail appears but once I assign it to the page the thumbnail appears. Now if I go to the Assets section of Perch I see a placeholder for that image but no thumbnail.
Can't figure it out
Does
perch/resources/portfolio
exist?Yes, It's there and the images along with a homesav-banner-wide-thumb@2x.png thumbnail are being created there
Ok, so what was the problem? I thought that was the issue, but clearly not.
Sorry, clicked mark as solution by mistake.
Trying to resolve it, can't figure out what the problem is
Uploadeding the same image again and again in order to see if it's a caching issue
I don't understand what problem you're trying to solve.
The problem I'm trying to resolve is uploading images under the bucket 'portfolio'
I've got an image on a portfolio page template, that's is going to use one of these images with the tag
And when I create a page using that template, create an image using the bucket portfolio I don't get a thumbnail appear.
Also if I try to add anything to the portfolio bucket in the Assets area of Perch it won't add any.
Have I got my bucket defined right?
All i really want is portfolio images to be created inside a directory by itself in the perch/resources folder
If you want a sub folder of
resources
you don't need to add the bucket to the buckets list.Cool, how'd I do that?
Just us the
bucket
attribute on the template tag. If the bucket isn't defined, it just becomes a subfolder of resources.