Jump to content

Search the Community

Showing results for tags 'file url'.

  • Search By Tags

    Type tags separated by commas.
  • Search By Author

Content Type


Forums

  • Welcome to ProcessWire
    • News & Announcements
    • Showcase
    • Wishlist & Roadmap
  • Community Support
    • Getting Started
    • Tutorials
    • FAQs
    • General Support
    • API & Templates
    • Modules/Plugins
    • Themes and Profiles
    • Multi-Language Support
    • Security
    • Jobs
  • Off Topic
    • Pub
    • Dev Talk

Product Groups

  • Form Builder
  • ProFields
  • ProCache
  • ProMailer
  • Login Register Pro
  • ProDrafts
  • ListerPro
  • ProDevTools
  • Likes
  • Custom Development

Find results in...

Find results that contain...


Date Created

  • Start

    End


Last Updated

  • Start

    End


Filter by number of...

Joined

  • Start

    End


Group


AIM


MSN


Website URL


ICQ


Yahoo


Jabber


Skype


Location


Interests

Found 1 result

  1. Hello, I have this simple code that throws errors I put in an echo (to test) of the url call on the file (line 5), it throws: /voetvolk.be/site/assets/files/1016/grande_guide_to_lead_nurturing.pdf "Notice: Trying to get property of non-object in ......." Weird thing, the path is outputed as you can see, but I'm getting these errors The $snippet->press_date and $snippet->title are showing up, no problem here The file field press_snippet is a single file field. <?php $press = $pages->get("/press/")->find("press_project=$page->id"); echo "<h3>Press</h3>"; echo "<table>"; foreach($press as $snippet) { echo $snippet->press_snippet->url; ?> <tr> <td><a href='<?=$snippet->press_snippet->url?>' target='_blank'><img src='<?php echo $config->urls->templates?>img/<?=$snippet->press_snippet->ext?>_icon.png' alt='<?=$snippet->press_snippet->get('description|name')?>' title='<?=$snippet->press_snippet->get('description|name')?>' width='24' height='31'/></a></td> <td><?=$snippet->press_date?><br/><?=$snippet->title?></td> </tr> <?php } echo "</table>"; ?> It's probably someting stupid, but I'm not seeing it Thanks S.
×
×
  • Create New...