[ic] if file in 5.0 working ?

Jon prtyof5 at attglobal.net
Wed Mar 3 23:38:25 EST 2004


> Jon wrote:
> >>On Mon, 01 Mar 2004 15:25:55 -0500
> >>Jon <prtyof5 at attglobal.net> wrote:
> >>
> >>
> >>>>I pulled this from the archives which used to work in 4.9.x but doesn't
> >>>>seem to since 5.0
> >>>>
> >>>>With interchange markup it might look something like this
> >>>>
> >>>>[if type=file term="some_dir/some_dir/[item-code].jpg"]
> >>>> Yep it's here
> >>>>[else]
> >>>> Nope it aint
> >>>>[/else]
> >>>>[/if]
> >>>>
> >>>
> >>>   Is it just me that is having a problem with the above example ?
> >>
> >>Works for me. Did you check the permissions for the file ?
> >>
> >>        Racke
> >>
> >
> >
> > It did huh...  Yea the dir is 755 and the files are 644
> > Do I need to add 'x' to the file permissions ??
> >
> > Appreciate you checking.
>
> It seems to me, the path is wrong. Did you test your code with
>
> [if type=file term="pages/mytest.txt"]
> Yep it's here
> [else]
> Nope it aint
> [/else]
> [/if]
>
> and your file is in the directory path-to-your-catalog/pages/ ?
>
> Or have you a symlink images in your catalogs directory and did you test
> it with term="images/items/myimage,jpg" ?

Appreciate the information.

That's my problem.  I can access the file via ls but NoAbsolute is set to Yes
and of course my images are via a symbolic link from /
Looks like I would need to set NoAbsolute No

Jon





More information about the interchange-users mailing list