Copied to clipboard

Flag this post as spam?

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


  • Jens Fup 2 posts 22 karma points
    Apr 04, 2011 @ 15:49
    Jens Fup
    0

    How to get an overview of a site

    Is it possible to get an overview of an entire site in umbraco?

    I'm looking for a possibilty to export all pages to PDF or similar.
    This is for a person that has to get the site reviewed and approved by a superior officer before publishing it.

    Best regards
    JF

     

  • Lee Kelleher 4026 posts 15836 karma points MVP 13x admin c-trib
    Apr 04, 2011 @ 16:28
    Lee Kelleher
    0

    Hi Jens,

    You could take a look at the built-in notifications system? http://our.umbraco.org/wiki/reference/umbraco-client/context-menus/notifications

    This will email/notify an admin/editor user for content changes that need to be approved/published.

    Cheers, Lee.

  • Jens Fup 2 posts 22 karma points
    Apr 04, 2011 @ 17:57
    Jens Fup
    0

    Hi Lee

    Thanks for a very fast response.
    I think your suggestion would do fine for minor changes.

    I was thinking more of a major redo of a website in umbraco.
    Given an old outdated website, having a person check and change alot of stuff and then finally have someone aprove the whole thing.

    Best regards

    JF

  • Lee Kelleher 4026 posts 15836 karma points MVP 13x admin c-trib
    Apr 04, 2011 @ 18:20
    Lee Kelleher
    0

    Hi Jens,

    If you are after outputting a PDF, take a look at the XSLT PDF Creator package.

    Then depending on how you want to present the website's content, you could write some XSLT accordingly?

    Simple example:

    <?xml version="1.0" encoding="UTF-8"?>
    <!DOCTYPE xsl:stylesheet [
        <!ENTITY nbsp "&#x00A0;">
    ]>
    <xsl:stylesheet
        version="1.0"
        xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
        xmlns:msxml="urn:schemas-microsoft-com:xslt"
        xmlns:umbraco.library="urn:umbraco.library"
        exclude-result-prefixes="msxml umbraco.library">
        <xsl:output method="xml" />
    
        <xsl:param name="currentPage"/>
    
        <xsl:template match="/">
            <!-- navigate to the root node -->
            <xsl:apply-templates select="$currentPage/ancestor::root/*[@isDoc]" />
        </xsl:template>
    
        <xsl:template match="*[@isDoc]">
    
            <div>
                <!-- output all the attributes and properties -->
                <xsl:apply-templates select="@* | *[not(@isDoc)]" />
            </div>
    
            <!-- output all the child documents -->
            <xsl:apply-templates select="*[@isDoc]" />
    
        </xsl:template>
    
        <xsl:template match="@* | *[not(@isDoc)]">
            <dl>
                <dt>
                    <xsl:value-of select="name()"/>
                </dt>
                <dd>
                    <xsl:value-of select="." disable-output-escaping="yes" />
                </dd>
            </dl>
        </xsl:template>
    
    </xsl:stylesheet>

    Feel free to use this as a basis... obviously, you'd need to add all the XSL-FO markup for the PDF formatting! ;-)

    Cheers, Lee.

Please Sign in or register to post replies

Write your reply to:

Draft