Adding Multiple TXT files to a Blog post
Installation and Configuration
You can add file upload fields to the create and update forms for any Jamroom item using the Form Designer. Unfortunately uploading multiple files in one field isn't an option. However, you can add multiple 'single file' fields.
I've tried this on my test site and added two blog file fields to the blog create form. These are 'blog_file1' and 'blog_file2'. See the attached screenshot.
When adding new fields to a form, you will then need to edit the appropriate template(s) to show those new fields. This cannot happen automatically as Jamroom has no knowledge what users might want to add, or where in the item view they want that info to show.
After adding these file fields, this is the code I added to the blog 'item_detail.tpl' template to show the uploaded files and allow their download -
{if jrCore_checktype($item.blog_file1_size, 'number_nz')}
Download '{$item.blog_file1_name}': <a href="{$jamroom_url}/{$murl}/download/blog_file1/{$item._item_id}/{$item.blog_file1_name|jrCore_url_string}">{jrCore_file_type_image extension=$item.blog_file1_extension width=32 height=32 alt="`$alt` `$item.blog_file1_name`" class="download_img"}</a><br>{/if}
{if jrCore_checktype($item.blog_file2_size, 'number_nz')}
Download '{$item.blog_file2_name}': <a href="{$jamroom_url}/{$murl}/download/blog_file2/{$item._item_id}/{$item.blog_file2_name|jrCore_url_string}">{jrCore_file_type_image extension=$item.blog_file2_extension width=32 height=32 alt="`$alt` `$item.blog_file2_name`" class="download_img"}</a><br>{/if}
See second screenshot for how it looks on the detail page. You can show other uploaded file data if needed - use the smarty debug to see what blog parameters are available to the template.
Hope this helps