Access: Admin
Total Posts: 1395
Joined: 2006-05-19
To attach files to news posts and have them show correctly requires a few steps.
First off, upload your files. Options > File Uploads. If you can't see/access the File Uploads section then you need to make sure your account access level is allowed to access it.
Once you've uploaded some files you now attach them to a news post. Either post a new article or edit an existing one. Notice the new icon top right corner of the textbox [img]http://network-13.com/images/page_white_office.png[/img]. Clicking this will bring up a menu that will let you select which files you want to attach to the news post. Select your files, press Submit then post your news.
Now you just need to edit your template so that the files show properly.
First, edit the template you're currently using, Options > Templates. The only 2 sections we need to edit here are the News & Uploaded Files.
First expand the News section, we'll place the files within a table. Wherever you want your files to appear add this code,
Notice the {files} tag in the middle of that, for each file that is attached to a news post, the system will grab the code you've entered into the Uploaded Files section and repeat it for each file. If no files are attached to a post then anything within the [files] & [/files] tags won't be shown.
Now we add some code to the Uploaded Files section. You'll see some options in there that I'm not using in this example just not to over complicate this example.