Add new comment

Posted on by Mike Ryan.

Yes, that's exactly it, you can make arrays of the associated subfields (alt, title, etc.), you just need to make sure they line up - put in an empty value as you did for file_2, rather than omitting the array value entirely. Note that the field handlers have some smarts - if you pass a scalar rather than array to the subfields, that value will be used for all files in the main array.

The source_dir applies whether the source field is populated directly by your query or in prepareRow(), everything gets pulled together at the prepare() stage.

Yes, set destination_file to preserve the full path.

Plain text

  • No HTML tags allowed.
  • Web page addresses and e-mail addresses turn into links automatically.
  • Lines and paragraphs break automatically.

Filtered HTML

  • Use [acphone_sales], [acphone_sales_text], [acphone_support], [acphone_international], [acphone_devcloud], [acphone_extra1] and [acphone_extra2] as placeholders for Acquia phone numbers. Add class "acquia-phones-link" to wrapper element to make number a link.
  • To post pieces of code, surround them with <code>...</code> tags. For PHP code, you can use <?php ... ?>, which will also colour it based on syntax.
  • Web page addresses and e-mail addresses turn into links automatically.
  • Allowed HTML tags: <a> <em> <strong> <cite> <blockquote> <code> <ul> <ol> <li> <h4> <h5> <h2> <img>
  • Lines and paragraphs break automatically.
By submitting this form, you accept the Mollom privacy policy.