ExpressionEngine CMS
Open, Free, Amazing

Thread

This is an archived forum and the content is probably no longer relevant, but is provided here for posterity.

The active forums are here.

My File Fields info is not coming through

July 14, 2011 6:33pm

Subscribe [3]
  • #1 / Jul 14, 2011 6:33pm

    bottleboot

    54 posts

    I have this code:

    {file_exmpl}
      <li>
        <a href="http://{path}{filename}{extension}">filename</a>
      </li>
    {/file_exmpl}

    This code is sitting in an embedded template though the title and all the rest is coming through. Also when i add a new file (i am using matrix too) it does show a new list item…

    What am I doing wrong?

  • #2 / Jul 15, 2011 5:33am

    John Henry Donovan

    12339 posts

    bottleboot,

    What version and build of EE are you using?

    Can you explain how you are using your embedded template please?
    Are the Channel entry tags sitting in in the main template or the embed?

  • #3 / Jul 15, 2011 5:54am

    bottleboot

    54 posts

    Hi Jhon,
    Thanks for the reply!

    I’m using v2.1.3, i put the serial in my settings, but so far it hasn’t asked me for an update yet.

    ‘Main’ file index.php from channel ‘apps’:

    {exp:channel:entries channel="apps" orderby="title" sort="asc" limit="10"}
    
         <?php $entry_id = '{exp:url_title_to_entry_id url_title="{segment_3}"}' ; ?>    
         {embed="apps/detail" entries="<?=$entry_id;?>"}
                    
    {/exp:channel:entries}

    The embed file code, detail.php from channel ‘apps’:

    {exp:channel:entries channel="modules" entry_id='{embed:entries}' dynamic="no"}
    {title}
    {file_exmpl}
      <li>
        <a href="http://{path}{filename}{extension}">filename</a>
      </li>
    {/file_exmpl}  
    {/exp:channel:entries}
    
    Evrything, but the files work, I do get the correct number of files through though.
  • #4 / Jul 17, 2011 2:48pm

    Lisa Wess

    20502 posts

    Hi, bottlebot -

    The File Manager has gone through some major changes between 2.1.3 (your version) and 2.2.1.  Can I ask you to update and see if that helps with your situation?

    Thank you!

  • #5 / Sep 14, 2011 9:07am

    bottleboot

    54 posts

    Ok, back to it. I upgraded to 2.2.2.

    I still seem to have the same issue.
    I tried displaying a file field with a single field (so without matrix) and this worked.

    So I’m guessing the solution must be found there.
    Edit: found & Solved

  • #6 / Sep 14, 2011 11:19am

    Mark Bowen

    12637 posts

    Hi bottleboot,

    Glad to see that you have this sorted now.

    I’ll close this one out now but if anything else comes up then please don’t hesitate to post again as needed.

    Thanks,

    Mark

.(JavaScript must be enabled to view this email address)

ExpressionEngine News!

#eecms, #events, #releases