|
|
 Rank: Fanatic
Joined: 11/24/2006 Posts: 323 Location: Stockholm, Sweden
|
Is there a stand alone package containing only the image gallery add-on? I'm thinking about the package on http://www.creativewebspecialist.co.uk/? Or do I have to extract and add the scripts/doctypes/templates manually?
Web Developer at Kärnhuset - http://www.karnhuset.net - Stockholm, Sweden
|
|
 Rank: Umbracoholic
Joined: 9/8/2006 Posts: 1,831 Location: MA, USA
|
Don't know of one. I would recommend you make a new umbraco installation, load Warren's package, and pull out the relevant bits to your real site. cheers, doug.
MVP 2007-2009 - Percipient Studios
|
|
 Rank: Fanatic
Joined: 10/9/2006 Posts: 460 Location: batavia, IL
|
@Thomas... we may have something that i can upload for you... let me test it a bit first... it is a package that one of my designer/developers put together based on some other gallery set-ups. i think it uses imageGen and lightbox2.0 let me do some testing and get back to you.
bootnumlock - aka bob baty-barr My Packages Site: http://packages.maliciousthinktank.comBusiness Blog: http://www.maliciousthinktank.com/blogPersonal site: http://www.baty-barr.comLevel 1 Certified!
|
|
 Rank: Fanatic
Joined: 10/9/2006 Posts: 460 Location: batavia, IL
|
hey, we still have some de-bugging to do on this one... we use it internally, so it fits with our setups... we need to make it more universal and work on some documentation... i will keep you posted.
bootnumlock - aka bob baty-barr My Packages Site: http://packages.maliciousthinktank.comBusiness Blog: http://www.maliciousthinktank.com/blogPersonal site: http://www.baty-barr.comLevel 1 Certified!
|
|
 Rank: Fanatic
Joined: 11/24/2006 Posts: 323 Location: Stockholm, Sweden
|
bob baty-barr wrote: hey, we still have some de-bugging to do on this one... we use it internally, so it fits with our setups... we need to make it more universal and work on some documentation... i will keep you posted.
Thanks! Don't invest a lot of time on this just because of me. I will probably go ahead and extract the pieces I need for now and perhaps revise the function later on. Still - if you create this package I think people will use it! :)
Web Developer at Kärnhuset - http://www.karnhuset.net - Stockholm, Sweden
|
|
 Rank: Fanatic
Joined: 11/24/2006 Posts: 323 Location: Stockholm, Sweden
|
I have it working OK, but to get there I had to remove the whole sort order bit in the "ListGalleries.xslt" script. The original script looks like this (just the starting part): Code: <xsl:variable name="SortOrder" select="$currentPage/ancestor-or-self::node[@level=1]/descendant::node [@nodeTypeAlias = 'GalleriesListPage']/data [@alias = 'SortOrder']" /> <xsl:variable name="SortBy" select="$currentPage/ancestor-or-self::node[@level=1]/descendant::node [@nodeTypeAlias = 'GalleriesListPage']/data [@alias = 'SortBy']" />
<xsl:template match="/">
<xsl:variable name="DataType"> <xsl:choose> <xsl:when test="$SortBy='sortOrder'"> <xsl:value-of select="'number'" /> </xsl:when> <xsl:otherwise> <xsl:value-of select="'text'" /> </xsl:otherwise> </xsl:choose> </xsl:variable>
<xsl:for-each select="$currentPage/node [string(data [@alias='umbracoNaviHide']) != '1']"> <xsl:sort select="@*[name() = $SortBy]" order="{$SortOrder}" data-type="{$DataType}"/>
When I try to save a script that starts like this (in the Umbraco XSLT-script editor) I get the error: System.Xml.Xsl.XsltException: '' is an invalid value for the 'order' attribute. If I remove this line: Code: <xsl:sort select="@*[name() = $SortBy]" order="{$SortOrder}" data-type="{$DataType}"/>
...the XSLT-parser accepts the script. By doing this I no longer need all the other code and the final script that I end up with is this: Code: <xsl:param name="currentPage"/>
<xsl:template match="/">
<xsl:for-each select="$currentPage/node [string(data [@alias='umbracoNaviHide']) != '1']">
First question: What does the part that I removed do?Second question: Why did it fail when I tried to save it/use it? I'm not that good at XSLT (yet) so I need some help with this one. :)
Web Developer at Kärnhuset - http://www.karnhuset.net - Stockholm, Sweden
|
|
|
Guest |