web site returns this message Ryan, Database Error: Unable to connect to your database… must be a bad time, are you working on the database?
My server (I’m running on a VPS) is pretty much at capacity - and masugadesign.com is on it. I had to restart mySQL this morning. I have a new, bigger, better, faster VPS, but I have yet to move my site there.
Should be back up now!
Silly question, but where do I find the field id?
Just go into your Custom Fields, (CP Home > Admin > Weblog Administration > Field Groups > Custom Fields ) go to the field in question like you’re going to edit it and as you hover over it, look at the URL in your browser (in Firefox, it’s at the bottom). It might look like this:
http://www.site.com/system/index.php?C=admin&M=blog_admin&P=edit_field&field_id=1
All you’re concerned with is the last part: field_id=1.
You could also just click the field name and look at the end of the location string in the location bar.
You’re supposed to get a dash if there is no photo associated with a field in that weblog. Have you specified the correct field id in the settings of the field that holds your photos? Also, is it set to multiple? I’m actually not sure if it will work with the field set to hold multiple pics/files.
Yeah, I haven’t tested this for multiple. I created this to fill the specific need I had for the site I was working on and released it with that functionality. If I get the time, I may consider trying to tweak it to work with a multiple field type.
just to let you know that we’re 2 people having the same issue 😊 (I’m having the multilpe file upload option enabled). but it still works if you only upload 1 image!
thanks anyways! stefan
Well, how would you imagine this works if you have, say, 5-10 images loaded in one multiple field? This was really intended to work for the “weblog as gallery” method, where each weblog entry is a specific and single image. Can you tell me how you’d use this when multiple images are uploaded? Would you only want the first image?
Well, how would you imagine this works if you have, say, 5-10 images loaded in one multiple field? This was really intended to work for the “weblog as gallery” method, where each weblog entry is a specific and single image. Can you tell me how you’d use this when multiple images are uploaded? Would you only want the first image?
yes, only the first image!
in fact like the “single variable” in the file extension. it has a multiple variable pair pair and a single variable… see files documentation:
Single Variables
{[custom_field]} — When used alone, the custom field will output the first uploaded image
Variable Pairs
{[custom_field]}…{/[custom_field]} — When used as a pair the contained code will loop, outputting all the uploaded files.
cheers - you’d really help me with that change!! stefan
edit: I use it for “mini galleries in a single weblog entry” here’s an exaples of one weblog entry with multiple images. jquery does the pagination and the slideshow… http://www.outline4.ch/EE/index.php/examples/Mini_Gallery_jQuery/
Hi Ryan,
I’m getting
Notice: Undefined offset: 1 in /www/<replaced>/public_html/<replaced>/extensions/ext.weegee.php on line 386
repeated on my Control Panel home page.
I’m using File 3.1.1, EE 1.6.3, and PHP 5.1.6 (EngineHosting). Any idea what this could be or what other info I could give you to help troubleshoot?
Packet Tide owns and develops ExpressionEngine. © Packet Tide, All Rights Reserved.