File Field in Matrix
Posted: 30 August 2010 09:22 PM   [ Ignore ]
Is a Really Great Dancer
RankRank
Total Posts:  57
Joined  2010-08-26

Hey guys,

I’m having a hard time with the SafeCracker File field returning any data inside of a Matrix field.  Any ideas on how I might be able to troubleshoot this?

Oh, the file is uploading fine, it just isn’t displaying out of the Matrix.

Thanks!

Profile
 
 
Posted: 30 August 2010 09:41 PM   [ Ignore ]   [ # 1 ]
Is a Really Great Dancer
RankRank
Total Posts:  57
Joined  2010-08-26

Here are a few more details:

I’ve attached a screenshot of the custom field settings.  And here is my code for displaying the image_url

{if add-on_image}
    {add
-on_image}
    {exp
:imgsizer:size src="{image_url}" width="590"}
      
<div style="background-image:url({sized}); width:{width}px; height:{height}px; margin-bottom: 18px;"></div>
    
{/exp:imgsizer:size}
  {
/add-on_image}
{
/if} 

It triggers the {if} conditional statement, but then it won’t display the {image_url}.

Profile
 
 
Posted: 30 August 2010 09:44 PM   [ Ignore ]   [ # 2 ]
Teen Scream
Avatar
RankRankRank
Total Posts:  3541
Joined  2009-05-29

Hey Jesse,

I found a bug and fixed it. I’ll have the new release up in a bit.

Profile
 
 
Posted: 30 August 2010 09:57 PM   [ Ignore ]   [ # 3 ]
Is a Really Great Dancer
RankRank
Total Posts:  57
Joined  2010-08-26

grin Awesome! Thanks!

Where do I get the updated version?

Profile
 
 
Posted: 11 October 2010 02:56 PM   [ Ignore ]   [ # 4 ]
Wallflower
Rank
Total Posts:  11
Joined  2010-09-28

I think I’m coming up against this - I’m also trying to output the data within a matrix but are unable to.

Any idea when the update will be available?

Profile
 
 
Posted: 12 October 2010 08:17 PM   [ Ignore ]   [ # 5 ]
Teen Scream
Avatar
RankRankRank
Total Posts:  3541
Joined  2009-05-29

Hey dane, this was fixed a while ago, so you’re probably encountering something different. Wanna post a few more details about your situation? Template code, etc.

Profile
 
 
Posted: 16 October 2010 04:39 AM   [ Ignore ]   [ # 6 ]
Wallflower
Rank
Total Posts:  11
Joined  2010-09-28

I’m trying to output the data (Saefcracker File and Texta Input) of a matrix in a ‘view’ portion of the template.

{if image-upload}
    {image
-upload}
        {image}
        {description}
    {
/image-upload}
 {
/if} 

If I use {field:image-upload} the Matrix is displayed and I can upload and edit and so everything I want, but in the view template I just want to output the images and the description.

The field names {image} and {description} are correct.

Profile
 
 
Posted: 16 October 2010 04:53 AM   [ Ignore ]   [ # 7 ]
Teen Scream
Avatar
RankRankRank
Total Posts:  3541
Joined  2009-05-29

And are they parsing as blank or not parsing at all? And this is within a channel:entries tag, right?

Profile
 
 
Posted: 16 October 2010 04:55 AM   [ Ignore ]   [ # 8 ]
Wallflower
Rank
Total Posts:  11
Joined  2010-09-28

I think I may have been mistaken - I was under the impression the tag pair could output the data of a matrix while in a exp:safecracker tag, but am I right to assume that any ‘view’ template should just be run through a exp:channel:entries tag and only the safecracker is to be used to editing the fields?

Profile
 
 
Posted: 16 October 2010 04:56 AM   [ Ignore ]   [ # 9 ]
Teen Scream
Avatar
RankRankRank
Total Posts:  3541
Joined  2009-05-29

That is correct.

Profile
 
 
Posted: 16 October 2010 04:56 AM   [ Ignore ]   [ # 10 ]
Wallflower
Rank
Total Posts:  11
Joined  2010-09-28

Gotcha - ok thanks.

Problem solved.

Profile