Results 1 to 5 of 5

Thread: Thumb and Index page using Variables

  1. #1
    Join Date
    Mar 2006
    Location
    .
    Posts
    1

    Default Thumb and Index page using Variables

    Hello,

    I use this String <a href=&Q(RelFile(prevPage, thmPage))>
    which generates standard links of for my previous page link on galleries.

    page.html

    Is it possable to generate extra varibales so that the out put can look like this:


    page.html?Variable

    thanks

  2. #2
    Join Date
    Mar 2006
    Location
    Raleigh, NC
    Posts
    1,356

    Default RE: Thumb and Index page using Variables

    something like this...
    Code:
    <a href=&Q(Join(RelFile(prevPage, thmPage), "?some text"))>
    Join appends the second string ("?some text") to the first.
    Chris Losinger
    Smaller Animals Software, Inc

  3. #3
    Join Date
    Apr 2006
    Location
    Paris, FRANCE
    Posts
    35

    Default Adding a thumbnail variable

    Quote Originally Posted by Chris
    something like this...
    Code:
    <a href=&Q(Join(RelFile(prevPage, thmPage), "?some text"))>
    Join appends the second string ("?some text") to the first.

    Along the same lines Mike, could you replace the *some text* with the thumbnail variable so clicking on the source image would take me back to a named anchor on a thumbnail page? <a href=thumbpage.html?thumbimage1.jpg>

    Also, I'm trying to do about the same thing with an email address. What I have is <a href="mailto:questions@mydomain.com?subject=Questi on about article Ref : "> and I'd like to have TN add the source variable after *Ref : *, &Name(NoExt(SrcFile)). Is this possible?
    Thanks Mike

  4. #4
    Join Date
    Mar 2006
    Location
    Raleigh, NC
    Posts
    1,356

    Default sure

    this will do somthing like href="thumb2.htm#source5"
    Code:
    <a href=&Q(JoinX(3, RelFile(thmPage, srcPage), "#", NoExt(srcFile)))
    JoinX is like Join, but lets you join any number of strings together (3, in this case).

    and this will do something like href="mailto:who@where?subject=Q about: source5"
    Code:
    <a href=&Q(Join("mailto:who@where?subject=Q about: ", NoExt(SrcFile)))>
    Chris Losinger
    Smaller Animals Software, Inc

  5. #5
    Join Date
    Apr 2006
    Location
    Paris, FRANCE
    Posts
    35

    Default That's it !!

    Quote Originally Posted by Chris
    this will do somthing like href="thumb2.htm#source5"
    Code:
    <a href=&Q(JoinX(3, RelFile(thmPage, srcPage), "#", NoExt(srcFile)))
    JoinX is like Join, but lets you join any number of strings together (3, in this case).

    and this will do something like href="mailto:who@where?subject=Q about: source5"
    Code:
    <a href=&Q(Join("mailto:who@where?subject=Q about: ", NoExt(SrcFile)))>

    Thanks Mike, that worked out great. Makes my life a whole lot easier now.
    Kenem

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •