I have 2-3 HTML files created per week that will be uploaded via FTP to a folder on the web server. The files are just plain HTML having results from my local Bridge Club.
Before I go ahead and spending time creating a "fancy" solution in Umbraco/.Net for this I better ask if there is any built in support for this in Umbraco.
Basically I want to have a main menu item called Results, and that page should have a secondary menu with links to each .HTML file in a specific folder
Any ideas?
If this is not possible my approach would be to create a webservice to upload the content instead.
I'd create a user control that'll get a list of all .html files in a specific folder and list those. I bet you'll need full trust on the server for this to work as you're doing some .net io operations...
You could use the GetFiles("~/path/to/html-files/", "*.html", false) to get a list of the HTML files in a specific directory. Then you could list those in your navigation.
There might be some other useful methods in there that could help further. Feel free to ask any questions, etc.
Automatically create links to content in a folder
I have 2-3 HTML files created per week that will be uploaded via FTP to a folder on the web server. The files are just plain HTML having results from my local Bridge Club.
Before I go ahead and spending time creating a "fancy" solution in Umbraco/.Net for this I better ask if there is any built in support for this in Umbraco.
Basically I want to have a main menu item called Results, and that page should have a secondary menu with links to each .HTML file in a specific folder
Any ideas?
If this is not possible my approach would be to create a webservice to upload the content instead.
Cheers, Stefan
I'd create a user control that'll get a list of all .html files in a specific folder and list those. I bet you'll need full trust on the server for this to work as you're doing some .net io operations...
Cheers,
/Dirk
Hi Stefan,
In the uComponents package, there is an XSLT extension for IO functions. http://ucomponents.codeplex.com/wikipage?title=IO&referringTitle=Documentation
You could use the GetFiles("~/path/to/html-files/", "*.html", false) to get a list of the HTML files in a specific directory. Then you could list those in your navigation.
There might be some other useful methods in there that could help further. Feel free to ask any questions, etc.
Cheers, Lee.
is working on a reply...