Easy image thumbnails in v2.0.27

Discuss Page and Text Editing in ScrewTurn Wiki.

Easy image thumbnails in v2.0.27

Postby sacjohn » Mon Mar 03, 2008 1:11 am

Ok sorry everyone for not posting here, but I was having trouble getting my account established here so I posted the full walkthruogh as a discussion in the ScrewTurn Wiki Here:

http://www.screwturn.eu/PageEditing.ash ... Redirect=1

Basically it describes a method that I use to allow Screwturn wiki to display thumbnail images by using a simple parameterized snippet. The snippet will automatically point the thumbnail to the larger source image. The link above provides much more in-depth information.

Here are the basics:

1. Create a snippet with the following code:
Code: Select all
[image?1?|?2?|getthumb.aspx?image=?3?&big=?4?|{UP}?3?]


2. Now use reference the snippet this way in your pages:
Code: Select all
{s:snippetname|alignment|title|filename|sizeflag}


Where:
    "snippetname" = the name of your snippet.
    "alignment" = "left", "right", or "auto"
    "title" = the title of your image.
    "filename" = the name of the file in your upload directory (do NOT use the {UP} prefix!!!)
    "sizeflag" = "0" for smaller thumbnail, "1" for larger thumbnail


You can also see an live example of how this technique works here:
http://www.saveatclose.com/all/wiki/gfe.ashx

john
sacjohn
 
Posts: 23
Joined: Mon Mar 03, 2008 12:34 am
Location: Texas

Postby neronerd » Wed Mar 05, 2008 6:38 pm

This works great!!!... but :)

How do I point to a folder with in my upload dir?

\TEMP\Servers\server.jpg

I sort all my images..
neronerd
 
Posts: 68
Joined: Thu Apr 26, 2007 6:16 pm
Location: Las Vegas

Postby sacjohn » Wed Mar 05, 2008 7:43 pm

Good question.

I tested this and it worked on my wiki. Just use this syntax:

Code: Select all
dir\filename


In the snippet format, it would look like:

Code: Select all
{s:thumbSnip|auto|Test Thumbnail|files\Blue hills.jpg|1}
sacjohn
 
Posts: 23
Joined: Mon Mar 03, 2008 12:34 am
Location: Texas

Postby neronerd » Wed Mar 05, 2008 7:50 pm

Thank you... works great...




Would it be cool.. to have a "hover over" to show the thumb nail.. Just a thought..
neronerd
 
Posts: 68
Joined: Thu Apr 26, 2007 6:16 pm
Location: Las Vegas

Postby neronerd » Wed Mar 05, 2008 7:51 pm

Ohh.. by the way .. Where in Texas are you?
neronerd
 
Posts: 68
Joined: Thu Apr 26, 2007 6:16 pm
Location: Las Vegas

Postby sacjohn » Wed Mar 05, 2008 7:55 pm

neronerd wrote:Ohh.. by the way .. Where in Texas are you?


See PM I sent you.
sacjohn
 
Posts: 23
Joined: Mon Mar 03, 2008 12:34 am
Location: Texas

Re: Easy image thumbnails in v2.0.27

Postby kimicrazy » Tue Jan 06, 2009 11:35 am

After upgrading to STW 2.0.35, the snippet automatically wraps all content after it. It works ok in 2.0.34. Any idea how to fix this?

The following code produce the linked image.

Code: Select all
Make sure to provide a project unique standard installation number before adding standard installation.

Standard Installations must be added against a discipline.

{S:thumbnail|right|Add Standard Installation|MMS%2fImages%2fAdd_Standard_Installation.PNG|0}

Steps
#Login to MMS
#Select a discipline
#Navigate to [discipline] -> MTO -> Manage -> Standard Installation
#Click on tab ''Add Standard Installation''
#Key in Installation Number


http://www.flickr.com/photos/11461821@N05/3172827929/sizes/o/

Thanks
kimicrazy
 
Posts: 1
Joined: Tue Jan 06, 2009 11:11 am


Return to Page/Text Editing - WikiMarkup

Who is online

Users browsing this forum: No registered users and 1 guest