Copied to clipboard

Flag this post as spam?

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


  • Glenn Barnas 2 posts 22 karma points
    Aug 02, 2012 @ 23:04
    Glenn Barnas
    0

    List of links to external documents

    Greetings

    I'm fairly new to Umbraco and might not be using the correct search term to find my answers..

    Running v4.8 on W2K8r2/IIS 7.5. Installed the Koiak Standard Site starter kit. I'm migrating an ASP-based site and have been mostly successful in the transition. I'm stuck on one concept, however.

    We have two document repositories on our internal network. One contains .DOC files (MS-Word), and the other contains software functions in TXT format. We have a nightly scheduled task that A), prints the .DOC files to .PDF and copies them to a folder on the primary web server, and B) formats/colorizes each of the function files, saving them as .HTM files in another folder on the primary web server. (then sync'd to the secondary servers in the farm.) My current ASP code is similar for both sets of folders - it scans the directory for a list of files and creates a list of links to the files. The anchor references the file so that it opens in the Content area of the page. The HTM files are not full HTML - no head or body tags.. just the markup needed to display in the content diversion, so I'd need them to be wrapped in a standard page or modify my formatting code to create a full web page.

    Searching this site, I get the impression that I can search for (Examine) documents that are defined within Umbraco. In my case, there are almost 250 "external" documents, and I'd rather not have to define them in Umbraco as they are created.

    I looked at the "Media Folder Content List" example as well as one that uses
    <xsl:variable name="documents" select="umbraco.library:GetMedia(1234, 1)"/>
    and then enumerates the Documents variable to create links for what's found. I'm just wondering if I'm on the right track.. I'd appreciate a nudge in the right direction, even if it's just a better search term for what I'm trying to do so I can find better answers/examples.

    Thanks!

    Glenn

  • Chriztian Steinmeier 2800 posts 8790 karma points MVP 8x admin c-trib
    Aug 03, 2012 @ 09:44
    Chriztian Steinmeier
    0

    Hi Glenn,

    If your 250 documents were created (or maybe uploaded with Desktop Media Uploader or similar package) in the Media section, you can very easily do some XSLT processing of them.

    If they don't exist as Umbraco Media nodes, you'd need to provide some other kind of access to them (I know uComponents has some basic IO extensions for XSLT to check for files, but haven't used any of them).

    Be glad to help in the first case (XSLT) - I've done plenty of simple galleries and document repositories with Umbraco, so should be able to help you out.

    /Chriztian

  • Glenn Barnas 2 posts 22 karma points
    Aug 03, 2012 @ 13:32
    Glenn Barnas
    0

    Chriztian,

    Thanks for your response - it helps to know what I should be looking for.

    The uComponents package threw an error on installing earlier this week, so I removed it before having an opportunity to investigate it. I'll try it again after the server snapshot runs tonight.

    I'll search for the Desktop Media Uploader package and see how that works. The documents section might be OK, since we do a document review process before publishing them internally, and adding them to Umbraco media folder might just get added to that process.. there's usually 25 or fewer documents in this area. My big concern is the software function library. These functions are updated or created on a regular basis and made public every night. There are currently over 180 of these, so manually adding them can be a chore that nobody will want to do.  The back-end program runs on our dev server and enumerates all of the function files in the library and "html-izes" them automatically. This is the current site - http://www.innotechcg.com/tech/main.asp?ID=5:KixLib:first.txt - which dynamically reads all of the .htm files in the folder and generates links to each file.

    I'll try the uComponents install again and see how far I can get. I'll post back with some code if I need some assistance - I appreciate the offer to help!

    Regards,

    Glenn

Please Sign in or register to post replies

Write your reply to:

Draft