MiniVend Akopia Services

[Date Prev][Date Next][Thread Prev][Thread Next][Minivend by date ][Minivend by thread ]

Re: [if file [value ...]]



******    message to minivend-users from Thomas Walter <tw@mail.itreff.de>     ******

Fixed this myself :)

Why should I use such a [if]-construct if just inserting 
  [include file="/some/dirs/[value mv_searchspec].html"]
does all I want. If the file does not exist simply nothing is inserted.
This should be mentioned in the docs ;).

But I still have a problem if I want to insert one file if it exists or
another if the first does not. How would I do this using [value
mv_searchspec] in an [if][else]?

Have I told you already that I dream of square brackets at night by now?
;)

     Balu

Me wrote:
> 
> ******    message to minivend-users from Thomas Walter <tw@mail.itreff.de>     ******
> 
> Hello all...
> 
> I am trying to do the following (code says more than words ;):
> 
>   [if file /some/dirs/[value mv_searchspec].html]
>     [then]
>       [include file="/some/dirs/[value mv_searchspec].html"]
>     [/then]
>     [else]
>       <a href="file:///some/dirs/[value mv_searchspec].html">link</a>
>     [/else]
>   [/if]
> 
> on a results-page, but the result of [if file] is always false. The file
> does exist (I&#180;ve inserted the [else] to verify this).
> Does [value ] not work inside an [if ]?
> ([loop-field category] works e.g. if you want to include an image for
> the category)...
> 
>      Balu
-
To unsubscribe from the list, DO NOT REPLY to this message.  Instead, send
email with 'UNSUBSCRIBE minivend-users' in the body to Majordomo@minivend.com.
Archive of past messages: http://www.minivend.com/minivend/minivend-list


Search for: Match: Format: Sort by: