Ed is totally right that CSB creates that folder for you and SHOULD upload the file to the server for you.
But there is a GLITCH in the publish for CSB 4 and 5 for uploadable items.When you PUBLISH, remember to UNCHECK the option to publish to a local HTML file if you have defined it in the publishing options. If you do that, your HTML-obj or resource folder will publish fine. [This box is helpful as a setting for previewing your site, but not for publishing your site!]
File > Publish web site > Options > HTML Directory > Uncheck this box when you publish. If you leave it checked when you publish, CSB can actually cause files to be REMOVED from your site!
You can easily recheck it again when you want to use the preview function again.
(also applies to options #1 and #3 below)
And Ed was right that there are several ways to provide PDF documents on a website.
Personally I am not a fan of container pages for these types of files and would not recommend them for your purpose. There are MANY ways you can provide PDF documents for your visitors. Depends on how often you want to maintain them, how big they are, how you want your visitors to see the files.
4 WAYS TO have a downloadable PDF file: Many people stick with #1 or #2. 1)
USE THE INSERT > FILE DOWNLOAD LINK (in Trellix it's the webgem for file download) Choose your file and publish. Simple, clean, quick.
LINK STYLE: regular text or image link
LINK OPENS: can only open in same window, replacing content of current window.
CSB uploads file, and file content is added to tlx design file.
(see note 1 below) (not
YOUR best option)
2)
USE FTP (or file manager at host) TO UPLOAD A FILE: When you use a 3rd party FTP program to upload your special files (swf, music, pdf, image for slideshows, etc) you can place them into folders on your website that mean something logical if you like. You can place all your pdf files in a pdf folder, or separate them by topic, etc. Then in your CSB page, simply link to them either from a web page with a simple link (use URL style link) or from a script, just use a full URL address. EX:
http://www.samisite.com/external/web_designer_features.pdfLINK STYLE: regular text or image link
LINK OPENS: 4 choices here.
A - open in same window, set target to top
B - open in new window, set target to blank
C - open within a frame, if the TLX file is published with frames "on", set target to TRLX_Middle
D - open within an iframe (great for some files, but not best for PDF).
Best option if you have A LOT of files or you need to change them out often, or you want to keep your tlx file small. This also allows your visitor to download the file to their own computer by right clicking the link if they so choose. I have used open B most to set all links to open in NEW window so no matter which browser or resolution they use, they can see the file well and yet still stay on the main link page.
3)
USE CSB/TRELLIX TO UPLOAD A FILE AS PART OF A CODE: (usually this instruction is for FLASH .swf or image files for slideshows, etc) When you use CSB/Trellix to upload and link to a file (swf, music, pdf, image) as part of a code, you place the code into an INSERT HTML, then place the file into the WEB COMPONENTS part of the insert HTML. To find the file, the code must be modified to put ^GEMDIR/ in front of the file name.
RESULT: CSB/Trellix publishes the code AND your file to your website.
ADDITIONAL INFO: You should look at the VIEW SOURCE on the page with the code. You will not see ^GEMDIR/ in the code. That is placed into your code to tell CSB/Trellix to create a SUBDIRECTORY to hold that webcomponent. The source code on the page will show the swf file can be located at an address that looks like HTMLobj-123/yourfile.swf
(see note 1 below)LINKING: If you want to link to the file from somewhere else on your site, or as part of another script, you would have to use the true URL address to link to the file, example:
http://www.domain.com/HTMLobj-123/yourfile.swf You would NEVER use the ^GEMDIR/ outside of the confined space of the CSB INSERT HTML interface! To link from one Insert HTML to another is tricky but can be done. Insert the swf file. Publish. Using the View source get the proper url address of the swf file. Then when you put your other code in you can use the true address of the swf file in the code. You use ^GEMDIR/ for the files that are inserted only into the CURRENT insert HTML code.
4)
CONTAINER PAGE. Basically you can use CSB to store and upload all kinds of files to your site (as if it is an FTP program). Then they can appear inside a frame (usually a header to match the site).
A sample to build a container page is on KW's website here.. His sample uses a pedigree HTML page, but it could have been a pdf file, image or other type of document. Concept and instruction is still the same.
CSB uploads file, and file content is added to tlx design file.
(see note 1 below) (not
YOUR best option)
In my opinion, you should use option #2. A framed page could be set have the PDF files open inside the middle frame but I choose not to do that. Did not want my customers getting confused and closing the window by accident and going off the site so I cause new windows to open.
If you do want a container look just set your tlx file to use frames and open links in the middle.
Option #2 is most versatile.
Note 1: YES....YOU CAN put all your zip or pdf, or other files into your website with this then use a URL style link to link. No FTP software is really needed. BUT putting a bunch of big files into your CSB file will bloat it and could in the long run cause problems with publishing....