Be the first to write a review
Creating a File Management System with File Genie - part 2
Enhance the options of the simple File Management System
In this article Patrick will show you how to enhance the options of the simple File Management System that was created in the article Creating a File Management System with File Genie – part 1. First he will show you how to give the File Management System the Explorer-style, that could be seen in the first article. Next he will hide the Quick-Add form, when no folder has been selected. After that the header will be edited, in such a way that the name of the selected folder will appear in the header of the File List.
To end this article Patrick will walk you through a couple of steps to enable sorting of all columns.
Explorer-like style through CSS
Until now we did not pay any attention to the layout of the File Management System. To have the File Management System blend into existing websites, the layout can be completely edited through CSS. The current page is without any CSS styles and in this example it will be transformed into a page with an Explorer-like style.
In our CSS file, 6 separate CSS-styles have been created:
· folderlisttable
· folderlisttd
· folderlistheader
· folderlist
· folderlistcontent
· filelistcontent
First we will attach the Style Sheet to the current page. Make sure the CSS Styles window is visible. If it is not, choose Window, CSS Styles.
- Download the Source Code available with this article.
- Unzip the file.
- Make sure the file fms.css is at the location you choose. In this article it is placed in a folder called css.
- Click on the button Attach Style Sheet.
- Click on the Browse button.
- Browse to the folder containing the file fms.css.
- Select the file and click OK.
- The path/filename should be entered in the File/URL field.
- Click OK once again.
Now that the Style Sheet has been attached, the different styles will be applied.
- Select the main table. Right-click in the top row and select Table, Select Table.
- In The Property Inspector activate the Class pull-down menu and select the folderlisttable style.
- Next, select the table row <tr> that contains the text Folder List and File List. The easiest way to do this is by clicking on the tag in the bar above the Property Inspector.
- Right click the <tr>.
- Click the menu-option Set Class and select the folderlistheader style.
- Now select the <td> that contains the actual Folder List. Set the style by right clicking the <td>, Set Class, folderlisttd or by choosing folderlisttd in the Class pull-down menu in the Property Inspector.
- Repeat this for the <td> that contains the File List.
- Next select the row that contains the column headers of the File List.
- Use any of the above ways to set the folderlist style.
- Select the <td> that contains the Folder List name.
- Set the folderlistcontent style on the <td>.
- Select the link on the Folder List name.
- Set the folderlistcontent style on the link.
- Select the row containing the File List content.
- Set the filelistcontent style on the row.
- Select the link on the Delete link.
- Set the filelistcontent style on the link.
Save and upload the page. Also upload the css file to your server. Your File Management System will look something like this.
Patrick Julicher
Patrick started developing websites at the age of 25, only using HTML and building simple websites. Through the years his passion for designing and developing grew, and his career moved in that direction in the year 2004, when he decided to try and get a job in ICT and Web Development.
He got this chance at WE ICT, based in Nijmegen, The Netherlands. For the first couple of years he combined network management for customers with creating database-driven websites in ASP. Since 2008 his main work is on the developing part.
While ASP is still his favorite language, he's slowly trying to dive into ASP.NET and discover all of the possibilities.