Loading ...
Sorry, an error occurred while loading the content.

[Clip] File

Expand Messages
  • Erno Mijland
    Hi, This clip: results in this tag:
    Message 1 of 4 , Mar 24, 1999
    View Source
    • 0 Attachment
      Hi,

      This clip:
      <IMG ^?[(T=T;F="|*.gif;*.jpg;*.jpeg")Filename] BORDER="0" ALT="^?[Korte
      beschrijving=^&]">

      results in this tag:

      <IMG SRC="file:///c|/foto's/muur2.jpg" WIDTH="640" HEIGHT="480" BORDER="0"
      ALT="Muur">

      Is it possible to get 'muur2.jpg' without the 'file:///c|/foto's'?

      My first clip is this one to change textstyle lists to HTML-lists:

      ^!Replace ^P1 ^P<LI> AWS
      ^!Replace ^P2 ^P<LI> AWS
      ^!Replace ^P3 ^P<LI> AWS
      ^!Replace ^P4 ^P<LI> AWS
      ^!Replace ^P5 ^P<LI> AWS
      ^!Replace ^P6 ^P<LI> AWS
      ^!Replace ^P7 ^P<LI> AWS
      ^!Replace ^P8 ^P<LI> AWS
      ^!Replace ^P9 ^P<LI> AWS
      ^!Replace ^P10 ^P<LI> AWS

      For lists like these:
      1 item one
      2 item two
      etc.


      Bye,
      Erno


      ------------------------------------------------------------------------
      eGroup home: http://www.eGroups.com/list/ntb-clips
      Free Web-based e-mail groups by eGroups.com
    • Nicole Simon
      ... yes, there is a way to get this (something like filename without extension + extension). But there is another problem: If you have subfolders, you want
      Message 2 of 4 , Mar 24, 1999
      View Source
      • 0 Attachment
        Erno Mijland wrote:
        > Is it possible to get 'muur2.jpg' without the 'file:///c|/foto's'?

        yes, there is a way to get this (something like filename without extension
        + extension).

        But there is another problem: If you have subfolders, you want
        subfolder/filename. Or, if you are in '/me' and your images are in
        '/images', your imagepath results in '../images'.

        A way could be to have a clip, where you
        - set a basefolder in the 'file:///' format
        - choos a dir
        - replace in the path with comes back the complete
        basefolder with s&r
        - if current folder is not basefolder: set the
        the current folder in relation to basefolder

        Ni<need coffee>cole
        --
        Thousands of years ago the Egyptians worshipped cats
        as gods. Cats have never forgotten this.
        David Wren-Hardin [bdh4 at quads uchicago edu]

        ------------------------------------------------------------------------
        eGroup home: http://www.eGroups.com/list/ntb-clips
        Free Web-based e-mail groups by eGroups.com
      • Jody
        Hi Erno, ... This is not using (T=T). There are only three lines below all starting with ^!. It is from my Note Page Maker, but edited for the list. Just
        Message 3 of 4 , Mar 24, 1999
        View Source
        • 0 Attachment
          Hi Erno,

          >Is it possible to get 'muur2.jpg' without the 'file:///c|/foto's'?

          This is not using (T=T). There are only three lines below all
          starting with ^!. It is from my Note Page Maker, but edited for
          the list. Just take out any of the attributes you don't want.

          ^!SetWizardLabel Outputs the image name and attributes only, no path
          ^!Set %Name%=^?{(T=O;F="Image Files|*.gif;*.jpg")Go get an image=}; %HSpace%=^?{Horizontal distance of text from image=}; %Align%=^?{Align text to the==_left^=left|right^=right}; %Border%=^?{Width of border around image=0}
          ^!InsertText <IMC SRC="^$GetFileName(^%Name%)$" HEIGHT="^$GetImgHeight(^%Name%)$" WIDTH="^$GetImgWidth(^%Name%)$" ALIGN="^%Align%" HSPACE="^%HSpace%" BORDER="^%Border%">

          This one uses (T=T) and will give you the path in html. You will
          have to adit it to fit your needs. I use a directory structure
          on my sites and have a mirrow copy on my drive, so this is what I
          need to get the correct path. <IMG ^?{( is one long line.

          ^!SetWizardLabel Attributes given if searched for. May select alternate:
          <IMG ^?{(T=T;C=U;F="Image Files|*.gif;*.jpg;*.jpeg")Go get an image=^$GetValue("PageMaker-ja:OpenImage")$} ALIGN="^?{Align text to the==_left^=left|right^=right}" HSPACE="^?{The horizontal distance from the button to the link name=5}" VSPACE="^?{Vertical space the text/imagew/vertical space=0}" BORDER="^?{The border size around the image=0}" ALT="^?{Alt name seen with mouseover=^&}">

          ^!Find "|" SB
          ^!IfError Exit
          ^!Jump Select_End
          ^!Set %End%=^$GetRow$:^$GetCol$
          ^!Find "file:///" SB
          ^!IfError Exit
          ^!Jump Select_Start
          ^!SelectTo ^%End%
          ^!InsertText ..

          >My first clip is this one to change textstyle lists to HTML-lists:

          :) You might find later if you start posting clips to the list to
          stay away from the tab format in your clips. There is a good chance
          they will get converted to spaces and a number of folk will have to
          edit them to make them work.

          Instead:
          ^!Replace "text" >> "text" [options]

          Your choice of course though. :-)

          Happy NoteTabbin',
          Jody Adair

          The NoteTabbers Assistant Page
          http://www.sureword.com/notetab/
          NoteTab Home Page - Go Pro......
          http://www.notetab.com

          ------------------------------------------------------------------------
          eGroup home: http://www.eGroups.com/list/ntb-clips
          Free Web-based e-mail groups by eGroups.com
        • Jody
          Hi Nicole and Erno, ... If your site directory structure is not exactly the same, but you do have the images both in a folder called Image then this works
          Message 4 of 4 , Mar 24, 1999
          View Source
          • 0 Attachment
            Hi Nicole and Erno,

            >> Is it possible to get 'muur2.jpg' without the 'file:///c|/foto's'?

            >But there is another problem: If you have subfolders, you want
            >subfolder/filename. Or, if you are in '/me' and your images are in
            >'/images', your imagepath results in '../images'.

            If your site directory structure is not exactly the same, but you
            do have the images both in a folder called "Image" then this works
            with (T=T) You might have to watch out for word wrap, but I never
            ran into the problem. This assumes that the tag was just inserted
            by (T=T) and you have this after it so the cursor is at the end of
            the tag searching backwards.

            ^!Find "/image/" SB
            ^!IfError Exit
            ^!Jump Select_Start
            ^!Set %End%=^$GetRow$:^$GetCol$
            ^!Find "file:///" SB
            ^!IfError Exit
            ^!Jump Select_Start
            ^!SelectTo ^%End%
            ^!InsertText ..

            Goodnight. :)

            Happy NoteTabbin',
            Jody Adair

            The NoteTabbers Assistant Page
            http://www.sureword.com/notetab/
            NoteTab Home Page - Go Pro......
            http://www.notetab.com

            ------------------------------------------------------------------------
            eGroup home: http://www.eGroups.com/list/ntb-clips
            Free Web-based e-mail groups by eGroups.com
          Your message has been successfully submitted and would be delivered to recipients shortly.