Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • Stefan Ekman 18 posts 37 karma points
    Aug 31, 2011 @ 12:41
    Stefan Ekman
    0

    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

  • Dirk De Grave 4541 posts 6021 karma points MVP 3x admin c-trib
    Aug 31, 2011 @ 13:09
    Dirk De Grave
    0

    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

  • Lee Kelleher 4026 posts 15836 karma points MVP 13x admin c-trib
    Aug 31, 2011 @ 13:14
    Lee Kelleher
    0

    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.

Please Sign in or register to post replies

Write your reply to:

Draft