Register
or
Login
(
Why?
)
Home
Modules
Aggregator - Tabbed Modules
Aggregator - Skins
Aggregator - FAQ
Aggregator - Demos
Nested Tabs
Targeting Other Aggregators
Localization of Tabs
Active Hover
Multiple Modules Per Tab
Token Replacement in Tab Titles
Linking Directly To A Tab
RSS Tabs
Tab Layouts
Default Tab and Remembering Selected Tab
Module Wrapping
Pager Styles
jQuery Accordion
jQuery Tabs
jQuery Tabs with Rotation
jQuery Featured Content Slider
Height and Width Settings
Coda Slider
jShowOff
Kwicks
Aggregator - Documentation
Aggregator - Testimonials
Inject Anything
Inject Anything - Demos
You Tube Videos
DNN Token Replacement
Custom Token Replacement
Inject Anything - Documentation
Favorite Pages
Favorite Pages - Demos
Default Toggle Modules
Toggle Skin Object
Module Rotator
Module Rotator - Demos
Module Rotator - FAQ
SQLView Pro
SQLView Pro - Demos
Grid Report
Fusion Chart - Single Series
Fusion Chart - Multiple Series
XSL Report
Template Report
Parameters
Drilldown
Advanced Template - Google Chart
Advanced Grid
Skin Samples
Multiple Parameters
Custom Parameter Layout
Full Screen
SQLView Pro - Documentation
Welcome
Welcome - Demos
Hide Based on Page Views
Hide Based on Page Views (Session Only)
Including a Hide Button
Including a Keep Hidden checkbox
Including a Keep Hidden Link
Showing alternate text instead of hiding
Showing an unhide button
Welcome - Documentation
CSS Include
SQLView
SQLView - Demos
Google Analytics
Articles
Archive
Support
Forums
Email Support
Store
Download
Videos
Press Center
Questions? support@dnnstuff.com
You are here
Support
Forums
Search:
Unanswered
Active Topics
Forums
Search
Forums
>
Free Modules
>
SQLView
Picture View Template
Last Post 12 Feb 2011 10:57 AM by Richard Edwards. 2 Replies.
Sort:
Oldest First
Most Recent First
Next
You are not authorized to post a reply.
Author
Messages
prattmi
New Member
Posts:1
11 Feb 2011 03:02 PM
Does anyone know how I can make this work? I have a query that gathers the names of picture files from a server and I need them to display in the SQLview module. The query looks like this:
Select Pic1, Pic2, Pic3, Pic4 From RealEstate_DNN_Listing Where CAST(ID AS VarChar(10))='[QUERYSTRING:ID]'
The link from the other page provides the ID number and the query works fine, I get the filenames for Pic1, Pic2 etc.
I need them to display in a single column but the grid view will only put them in a row. I have an XSL file that will show the filenames, I just can't get the syntax right to point to the actual files on the web server such as: http://www.Picserver.com/newpics/121b07f3-b0cb-46e5-bb02-741be895c1bd.jpg
_________________________________________
<xsl:stylesheet version="1.0"
xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<xsl:template match="SQLData">
<B>Pictures</B><BR/>
<TABLE CELLPADDING="8" CELLSPACING="1" Border="1">
<xsl:for-each select="Table">
<TR>
<TD><xsl:value-of select="Pic1"/></TD>
<TD><xsl:value-of select="Pic2"/></TD>
<TD><xsl:value-of select="Pic3"/></TD>
<TD><xsl:value-of select="Pic4"/></TD>
</TR>
</xsl:for-each>
</TABLE>
</xsl:template>
</xsl:stylesheet>
__________________________________________
This is the result of the template above:
Pictures
121b07f3-b0cb-46e5-bb02-741be895c1bd.jpg c22bcb6a-49ac-4647-86e5-585dcb4c1805.jpg a63dfe9f-4291-48b2-a9b5-2c441979cfa5.jpg 5a5fb05f-fa9d-4747-85a0-619f70352ffa.jpg
-M.Pratt
Richard Edwards
DNNStuff Founder
Veteran Member
Posts:1207
12 Feb 2011 10:55 AM
Hi M.Pratt,
You'll need to get an
tag in there somewhere with the src attribute set to your image url.
Something like this:
Richard Edwards
DNNStuff Founder
Did you receive excellent support? Consider leaving a
testimonial
Richard Edwards
DNNStuff Founder
Veteran Member
Posts:1207
12 Feb 2011 10:57 AM
Darn, I really hate these Active Forums for inserting code snippets. Email me at support@dnnstuff.com and I'll send you the code I'm trying to post.
Richard Edwards
DNNStuff Founder
Did you receive excellent support? Consider leaving a
testimonial
You are not authorized to post a reply.
General
--DNNStuff
--Announcements
--Testimonials
Commercial Modules
--Aggregator
----Skins
--Inject Anything
--Module Rotator
--Welcome
--Favorite Pages
--SQLView Pro
Enhancement Requests
--Aggregator Enhancement Requests
--Inject Anything Enhancement Requests
--Welcome Enhancement Requests
--Module Rotator Enhancement Requests
--SQLView Pro Enhancement Requests
--Favorite Pages Enhancement Requests
--New Module Requests
Free Modules
--SQLView
--CSS Include
--Google Analytics
Forums
>
Free Modules
>
SQLView
Active Forums 4.1
Forums
|
Email Support
Page generated in 1.015391 seconds. Make your site scream at PowerDNN!
You need to be logged in to:
post in forums
manage your account
download free content
ask for support
download your purchases
receive discounts
Welcome to DNNStuff!
X