search not working..

Hi
I have upgraded my spip from 1.8.2d to 1.9

Everything works fine except the search.

I have removed the formulaire directory in the root and placed all the files directly in the squelettes directory.

When I perform the search, I end up with a blank page. (The url I get :slight_smile: If I view the source code of the blank page, I can see the following

<!-- Erreur INCLURE(rubrique.php3) -->

What could be the reason?

Thanks again
Iswaria.

Hi,

since 1.9, <INCLURE> must use this form :
<INCLURE{fond=rubrique}{id_rubrique=123}>
or
#INCLURE{fond=rubrique,id_rubrique=123}

(this tag has been introduced in 1.9.1 : see

The advantage is that it's REALLY faster than <INCLURE> and that you
can apply filters like models :
Using models - SPIP)

.Gilles
---
2007/7/17, Iswaria <iswaria.k@ifpindia.org>:

Hi
I have upgraded my spip from 1.8.2d to 1.9

Everything works fine except the search.

I have removed the formulaire directory in the root and placed all the
files directly in the squelettes directory.

When I perform the search, I end up with a blank page. (The url I get
:http://localhost/spip/spip.php?recherche=research&lang=en&validation_recherche=valid)

If I view the source code of the blank page, I can see the following

<!-- Erreur INCLURE(rubrique.php3) -->

What could be the reason?

Thanks again
Iswaria.
_______________________________________________
spip-en@rezo.net -
http://listes.rezo.net/mailman/listinfo/spip-en

Hi

In the search form, the action is

action= and method ="get"

and if I type "oscar" in the text box and submit, the url I get is
 

and the expected url is

?**recherche**&recherche=oscar&lang=en&validation_recherche=valid

Moreover, I don't have INCLURE statement in my formulaire_recherche.php

But I don't understand why I get error in INCLURE statement.

Thanks
Iswaria

Gilles Vincent wrote:

http://www.spip.net/en_article3471.html however says [(#INCLURE{fond=…})], not just #INCLURE{fond=…}. Well, I did not understand what’s about all these parantheses, brackets, curlies anyway. I am always guessing when applying a couple of these.

Practically: I transformed <INCLURE{fond=inc-articles_rubrique}{id_article}{id_rubrique}> into #INCLURE{fond=inc-articles_rubrique,id_article,id_rubrique}. Looking at the results (none) I guess that is not quite correct.

Thanks for your comment.

On 2007 Jul 17, at 12:37, Gilles Vincent wrote:

Hi,

since 1.9, must use this form :
<INCLURE{fond=rubrique}{id_rubrique=123}>
or
#INCLURE{fond=rubrique,id_rubrique=123}

(this tag has been introduced in 1.9.1 : see
http://www.spip.net/en_article3471.html
The advantage is that it’s REALLY faster than and that you
can apply filters like models :
http://www.spip.net/en_article3512.html)

.Gilles

2007/7/17, Iswaria <iswaria.k@ifpindia.org>:

Hi
I have upgraded my spip from 1.8.2d to 1.9

Everything works fine except the search.

I have removed the formulaire directory in the root and placed all the
files directly in the squelettes directory.

When I perform the search, I end up with a blank page. (The url I get
:http://localhost/spip/spip.php?recherche=research&lang=en&validation_recherche=valid)

If I view the source code of the blank page, I can see the following

What could be the reason?

Thanks again
Iswaria.


spip-en@rezo.net -
http://listes.rezo.net/mailman/listinfo/spip-en


spip-en@rezo.net - http://listes.rezo.net/mailman/listinfo/spip-en

Can you copy the main part of your search form ? Maybe there is
something missing. You can look at the default page in dist/

2007/7/17, Iswaria <iswaria.k@ifpindia.org>:

Hi

In the search form, the action is
action="http://localhost/spip/spip.php?page=recherche&quot; and
method ="get"

and if I type "oscar" in the text box and submit, the url I get is

http://localhost/spip/spip.php?recherche=oscar&lang=en&validation_recherche=valid

and the expected url is

http://localhost/spip/spip.php?page=recherche&recherche=oscar&lang=en&validation_recherche=valid

Moreover, I don't have INCLURE statement in my formulaire_recherche.php

But I don't understand why I get error in INCLURE statement.

Thanks
Iswaria

Gilles Vincent wrote:
Hi,

since 1.9, <INCLURE> must use this form :
<INCLURE{fond=rubrique}{id_rubrique=123}>
or
#INCLURE{fond=rubrique,id_rubrique=123}

(this tag has been introduced in 1.9.1 : see
SPIP 1.9.1 - SPIP
The advantage is that it's REALLY faster than <INCLURE> and that you
can apply filters like models :
Using models - SPIP)

.Gilles
---
2007/7/17, Iswaria <iswaria.k@ifpindia.org>:

  Hi
  I have upgraded my spip from 1.8.2d to 1.9

  Everything works fine except the search.

  I have removed the formulaire directory in the root and placed all the
files directly in the squelettes directory.

  When I perform the search, I end up with a blank page. (The url I get
:http://localhost/spip/spip.php?recherche=research&lang=en&validation_recherche=valid)

  If I view the source code of the blank page, I can see the following

  <!-- Erreur INCLURE(rubrique.php3) -->

  What could be the reason?

  Thanks again
  Iswaria.
_______________________________________________
spip-en@rezo.net -
http://listes.rezo.net/mailman/listinfo/spip-en

normally, to include a search form we use #FORMULAIRE_RECHERCHE
This is a shortcut for the model dist/formulaires/recherche.html

<form action="[(#ENV{lien})]" method="get"><div>
  [(#ENV{lien}|form_hidden)]
  [<input type="hidden" name="lang" value="(#ENV{lang})" />]
  <label for="recherche"><:info_rechercher:></label>
  <input type="text" class="forml" name="recherche" id="recherche"
value="[(#ENV{recherche}|sinon{<:info_rechercher:>"
onfocus="this.value='';})]" />
</div>
</form>

You can custom it in squelettes/formulaires/recherche.html to include
your id / class :

The missing part imho is [(#ENV{lien}|form_hidden)]

.Gilles
---
2007/7/17, Iswaria <iswaria.k@ifpindia.org>:

----
<form action="[(#ENV{lien})]" method="get" class="formrecherche">
     <a name="formulaire_recherche" id="formulaire_recherche"></a>
     <div>
         <input type="text" id="recherche" name="recherche"
value="<:recherche_text:>" onclick="searchInit();" accesskey="4" />
         <input type="hidden" id="curlang" name="lang" value="#LANG" />
         <input type="submit" id="validation_recherche"
name="validation_recherche" class="submitbutton" value="<:valider:>" />
     </div>
</form>
-----

Gilles Vincent wrote:
Can you copy the main part of your search form ? Maybe there is
something missing. You can look at the default page in dist/

2007/7/17, Iswaria <iswaria.k@ifpindia.org>:

  Hi

  In the search form, the action is
  action="http://localhost/spip/spip.php?page=recherche&quot;
and
method ="get"

and if I type "oscar" in the text box and submit, the url I get is

http://localhost/spip/spip.php?recherche=oscar&lang=en&validation_recherche=valid

and the expected url is

http://localhost/spip/spip.php?page=recherche&recherche=oscar&lang=en&validation_recherche=valid

Moreover, I don't have INCLURE statement in my formulaire_recherche.php

But I don't understand why I get error in INCLURE statement.

Thanks
Iswaria

  Gilles Vincent wrote:
Hi,

  since 1.9, <INCLURE> must use this form :
  <INCLURE{fond=rubrique}{id_rubrique=123}>
  or
  #INCLURE{fond=rubrique,id_rubrique=123}

  (this tag has been introduced in 1.9.1 : see
  SPIP 1.9.1 - SPIP
  The advantage is that it's REALLY faster than <INCLURE> and that you
  can apply filters like models :
  Using models - SPIP)

  .Gilles
  ---
  2007/7/17, Iswaria <iswaria.k@ifpindia.org>:

   Hi
   I have upgraded my spip from 1.8.2d to 1.9

   Everything works fine except the search.

   I have removed the formulaire directory in the root and placed all the
  files directly in the squelettes directory.

   When I perform the search, I end up with a blank page. (The url I get
:http://localhost/spip/spip.php?recherche=research&lang=en&validation_recherche=valid)

   If I view the source code of the blank page, I can see the following

   <!-- Erreur INCLURE(rubrique.php3) -->

   What could be the reason?

   Thanks again
   Iswaria.
  _______________________________________________
  spip-en@rezo.net -
  http://listes.rezo.net/mailman/listinfo/spip-en

Hi

After including " [(#ENV{lien}|form_hidden)] ", result page is displayed. I have used the shortcut "#FORMULAIRE_RECHERCHE" for calling the search template form.

Thanks.

If I type a part of a word in search text, the result is not showing the article.

For example, if i type "iswaria" in the word "iswarialakshmi", I am not able to see any articles. If i type the whole word, the result page is showing the articles.

I have to do any modification "formulaire_recherche.php" in ecrire/balise directory or any other file?

Iswaria.

Gilles Vincent wrote:

normally, to include a search form we use #FORMULAIRE_RECHERCHE
This is a shortcut for the model dist/formulaires/recherche.html

<form action="[(#ENV{lien})]" method="get"><div>
    [(#ENV{lien}|form_hidden)]
    [<input type="hidden" name="lang" value="(#ENV{lang})" />]
    <label for="recherche"><:info_rechercher:></label>
    <input type="text" class="forml" name="recherche" id="recherche"
value="[(#ENV{recherche}|sinon{<:info_rechercher:>"
onfocus="this.value='';})]" />
</div>
</form>

You can custom it in squelettes/formulaires/recherche.html to include
your id / class :

The missing part imho is [(#ENV{lien}|form_hidden)]

.Gilles
---
2007/7/17, Iswaria <iswaria.k@ifpindia.org>:

----
<form action="[(#ENV{lien})]" method="get" class="formrecherche">
     <a name="formulaire_recherche" id="formulaire_recherche"></a>
     <div>
         <input type="text" id="recherche" name="recherche"
value="<:recherche_text:>" onclick="searchInit();" accesskey="4" />
         <input type="hidden" id="curlang" name="lang" value="#LANG" />
         <input type="submit" id="validation_recherche"
name="validation_recherche" class="submitbutton" value="<:valider:>" />
     </div>
</form>
-----

Gilles Vincent wrote:
Can you copy the main part of your search form ? Maybe there is
something missing. You can look at the default page in dist/

2007/7/17, Iswaria <iswaria.k@ifpindia.org>:

  Hi

  In the search form, the action is
  action="http://localhost/spip/spip.php?page=recherche&quot;
and
method ="get"

and if I type "oscar" in the text box and submit, the url I get is

http://localhost/spip/spip.php?recherche=oscar&lang=en&validation_recherche=valid

and the expected url is

http://localhost/spip/spip.php?page=recherche&recherche=oscar&lang=en&validation_recherche=valid

Moreover, I don't have INCLURE statement in my formulaire_recherche.php

But I don't understand why I get error in INCLURE statement.

Thanks
Iswaria

  Gilles Vincent wrote:
Hi,

  since 1.9, <INCLURE> must use this form :
  <INCLURE{fond=rubrique}{id_rubrique=123}>
  or
  #INCLURE{fond=rubrique,id_rubrique=123}

  (this tag has been introduced in 1.9.1 : see
  SPIP 1.9.1 - SPIP
  The advantage is that it's REALLY faster than <INCLURE> and that you
  can apply filters like models :
  Using models - SPIP)

  .Gilles
  ---
  2007/7/17, Iswaria <iswaria.k@ifpindia.org>:

   Hi
   I have upgraded my spip from 1.8.2d to 1.9

   Everything works fine except the search.

   I have removed the formulaire directory in the root and placed all the
  files directly in the squelettes directory.

   When I perform the search, I end up with a blank page. (The url I get
:http://localhost/spip/spip.php?recherche=research&lang=en&validation_recherche=valid)

   If I view the source code of the blank page, I can see the following

   <!-- Erreur INCLURE(rubrique.php3) -->

   What could be the reason?

   Thanks again
   Iswaria.
  _______________________________________________
  spip-en@rezo.net -
  http://listes.rezo.net/mailman/listinfo/spip-en

2007/7/17, Iswaria <iswaria.k@ifpindia.org>:

If I type a part of a word in search text, the result is not showing the
article.

For example, if i type "iswaria" in the word "iswarialakshmi", I am not
able to see any articles. If i type the whole word, the result page is
showing the articles.

I have to do any modification "formulaire_recherche.php" in
ecrire/balise directory or any other file?

No, the results returned depend on the indexation of your content,
which is based on words.
look at How does the SPIP search engine work? - SPIP to see how it works.

For strong keywords (well indexed), an approximative search will work,
and will "correct" your keywords : for ex. on spip.net, if you seacrh
for "searc" to can see that in the results it's "search" that has been
used in the indexation database.

.Gilles

Iswaria.

Gilles Vincent wrote:
> normally, to include a search form we use #FORMULAIRE_RECHERCHE
> This is a shortcut for the model dist/formulaires/recherche.html
>
> <form action="[(#ENV{lien})]" method="get"><div>
> [(#ENV{lien}|form_hidden)]
> [<input type="hidden" name="lang" value="(#ENV{lang})" />]
> <label for="recherche"><:info_rechercher:></label>
> <input type="text" class="forml" name="recherche" id="recherche"
> value="[(#ENV{recherche}|sinon{<:info_rechercher:>"
> onfocus="this.value='';})]" />
> </div>
> </form>
>
> You can custom it in squelettes/formulaires/recherche.html to include
> your id / class :
>
> The missing part imho is [(#ENV{lien}|form_hidden)]
>
> .Gilles
> ---
> 2007/7/17, Iswaria <iswaria.k@ifpindia.org>:
>>
>> ----
>> <form action="[(#ENV{lien})]" method="get" class="formrecherche">
>> <a name="formulaire_recherche" id="formulaire_recherche"></a>
>> <div>
>> <input type="text" id="recherche" name="recherche"
>> value="<:recherche_text:>" onclick="searchInit();" accesskey="4" />
>> <input type="hidden" id="curlang" name="lang" value="#LANG" />
>> <input type="submit" id="validation_recherche"
>> name="validation_recherche" class="submitbutton" value="<:valider:>" />
>> </div>
>> </form>
>> -----
>>
>> Gilles Vincent wrote:
>> Can you copy the main part of your search form ? Maybe there is
>> something missing. You can look at the default page in dist/
>>
>> 2007/7/17, Iswaria <iswaria.k@ifpindia.org>:
>>
>> Hi
>>
>> In the search form, the action is
>> action="http://localhost/spip/spip.php?page=recherche&quot;
>> and
>> method ="get"
>>
>> and if I type "oscar" in the text box and submit, the url I get is
>>
>> http://localhost/spip/spip.php?recherche=oscar&lang=en&validation_recherche=valid
>>
>> and the expected url is
>>
>> http://localhost/spip/spip.php?page=recherche&recherche=oscar&lang=en&validation_recherche=valid
>>
>> Moreover, I don't have INCLURE statement in my formulaire_recherche.php
>>
>> But I don't understand why I get error in INCLURE statement.
>>
>> Thanks
>> Iswaria
>>
>> Gilles Vincent wrote:
>> Hi,
>>
>> since 1.9, <INCLURE> must use this form :
>> <INCLURE{fond=rubrique}{id_rubrique=123}>
>> or
>> #INCLURE{fond=rubrique,id_rubrique=123}
>>
>> (this tag has been introduced in 1.9.1 : see
>> SPIP 1.9.1 - SPIP
>> The advantage is that it's REALLY faster than <INCLURE> and that you
>> can apply filters like models :
>> Using models - SPIP)
>>
>> .Gilles
>> ---
>> 2007/7/17, Iswaria <iswaria.k@ifpindia.org>:
>>
>> Hi
>> I have upgraded my spip from 1.8.2d to 1.9
>>
>> Everything works fine except the search.
>>
>> I have removed the formulaire directory in the root and placed all
>> the
>> files directly in the squelettes directory.
>>
>> When I perform the search, I end up with a blank page. (The url I get
>> :http://localhost/spip/spip.php?recherche=research&lang=en&validation_recherche=valid)
>>
>> If I view the source code of the blank page, I can see the following
>>
>> <!-- Erreur INCLURE(rubrique.php3) -->
>>
>> What could be the reason?
>>
>> Thanks again
>> Iswaria.
>> _______________________________________________
>> spip-en@rezo.net -
>> http://listes.rezo.net/mailman/listinfo/spip-en
>>
>

2007/7/17, Barnie <spip@ourself.eu>:

SPIP 1.9.1 - SPIP however says
[(#INCLURE{fond=...})], not just #INCLURE{fond=...}. Well, I did not
understand what's about all these parantheses, brackets, curlies anyway. I
am always guessing when applying a couple of these.

General rules :
brackets and parenthesis must be used around a tag when we have a
filter, or differents criteria

so we have something like this :
[what is before(#MYTAG{criteria1}{criteria2}|filter1|filter2)what is after]

like <B_loopName>, and </B_loopName> this enables to display elements
only is the evaluation of the elements between parenthesis is not
null (but we don't have directly the equivalent of <//B_loopName>, we
must use {doubllons} for that)

A simplified form can be used when we have only one curly parenthesis
after a tag (it's only replaced by the evaluation of it), and recently
(1.9.1 I guess) several criteria should be compacted inside two
curlies.

exception : #SET{xxx,yyy}

like #MODELE, #INCLURE returns html, not php. This can explains your problem.
(a quite good article on #INCLURE is
http://www.monsitespip.com/spip.php?article29 : the difference is
1/4000 between dynamic and static inclusion !!)

But can you try
#INCLURE{fond=inc-articles_rubrique}{id_article,id_rubrique} or
[(#INCLURE{fond=inc-articles_rubrique}{id_article,id_rubrique})] ?
Maybe the first param must be taken alone..

Whatever you actually find #INCLUDE in dist here :
dist/jquery.js.html : [(#INCLURE{javascript/jquery.js}|compacte_js)]
and in dist/modeles/pagination.html :
[(#INCLURE{fond=modeles/paginationitem}{num=#GET{i}}{texte=#GET{item}}{separateur=#GET*{separateur}}{url=#ENV{url}|parametre_url{#ENV{debut},#GET{item}}|ancre_url{#ENV{ancre}}}{page_courante=#ENV{page_courante}}{derniere=#GET{derniere}})]

(Spip padawan must completly understand this include to become a Jedi :wink:

.Gilles

Practically: I transformed
<INCLURE{fond=inc-articles_rubrique}{id_article}{id_rubrique}>
into
#INCLURE{fond=inc-articles_rubrique,id_article,id_rubrique}.
Looking at the results (none) I guess that is not quite correct.

Thanks for your comment.

On 2007 Jul 17, at 12:37, Gilles Vincent wrote:

Hi,

since 1.9, <INCLURE> must use this form :
<INCLURE{fond=rubrique}{id_rubrique=123}>
or
#INCLURE{fond=rubrique,id_rubrique=123}

(this tag has been introduced in 1.9.1 : see
SPIP 1.9.1 - SPIP
The advantage is that it's REALLY faster than <INCLURE> and that you
can apply filters like models :
Using models - SPIP)

.Gilles
---
2007/7/17, Iswaria <iswaria.k@ifpindia.org>:

Hi
I have upgraded my spip from 1.8.2d to 1.9

Everything works fine except the search.

I have removed the formulaire directory in the root and placed all the
files directly in the squelettes directory.

When I perform the search, I end up with a blank page. (The url I get
:http://localhost/spip/spip.php?recherche=research&lang=en&validation_recherche=valid)

If I view the source code of the blank page, I can see the following

<!-- Erreur INCLURE(rubrique.php3) -->

What could be the reason?

Thanks again
Iswaria.
_______________________________________________
spip-en@rezo.net -
http://listes.rezo.net/mailman/listinfo/spip-en

_______________________________________________
spip-en@rezo.net -
http://listes.rezo.net/mailman/listinfo/spip-en

_______________________________________________
spip-en@rezo.net -
http://listes.rezo.net/mailman/listinfo/spip-en

2007/7/17, Barnie <spip@ourself.eu>:

Practically: I transformed
<INCLURE{fond=inc-articles_rubrique}{id_article}{id_rubrique}>
into
#INCLURE{fond=inc-articles_rubrique,id_article,id_rubrique}.
Looking at the results (none) I guess that is not quite correct.

OKay, forget the simplified form, it doesn't work very well.

I've found the "problem" : #INCLUDE doesn't take into account the
environnement of execution in the included template

Main template :
<INCLURE{fond=tests/inclure}{id_rubrique=3}{debut=a}>
<br>
#INCLURE{fond=tests/inclure, id_rubrique=3, debut=a}
<br>
[(#INCLURE{fond=tests/inclure}{id_rubrique=3, debut=a})]
<br>
#INCLURE{fond=test_inclure_doublons.inc}{id_rubrique=3}{debut=a}
<br>
[(#INCLURE{fond=tests/inclure}{id_rubrique=3}{debut=a})]

included template :
[(#ENV{debut,c})] / #ID_RUBRIQUE

Result :
a / 3
c /
c / 3
c / {id_rubrique=3}{debut=a}
a / 3

So only the last form is valid for #INCLURE
(Maybe always)

.Gilles
actually not a Jedy ^^

--

Thanks for your comment.

On 2007 Jul 17, at 12:37, Gilles Vincent wrote:

Hi,

since 1.9, <INCLURE> must use this form :
<INCLURE{fond=rubrique}{id_rubrique=123}>
or
#INCLURE{fond=rubrique,id_rubrique=123}

(this tag has been introduced in 1.9.1 : see
SPIP 1.9.1 - SPIP
The advantage is that it's REALLY faster than <INCLURE> and that you
can apply filters like models :
Using models - SPIP)

.Gilles
---
2007/7/17, Iswaria <iswaria.k@ifpindia.org>:

Hi
I have upgraded my spip from 1.8.2d to 1.9

Everything works fine except the search.

I have removed the formulaire directory in the root and placed all the
files directly in the squelettes directory.

When I perform the search, I end up with a blank page. (The url I get
:http://localhost/spip/spip.php?recherche=research&lang=en&validation_recherche=valid)

If I view the source code of the blank page, I can see the following

<!-- Erreur INCLURE(rubrique.php3) -->

What could be the reason?

Thanks again
Iswaria.
_______________________________________________
spip-en@rezo.net -
http://listes.rezo.net/mailman/listinfo/spip-en

_______________________________________________
spip-en@rezo.net -
http://listes.rezo.net/mailman/listinfo/spip-en

_______________________________________________
spip-en@rezo.net -
http://listes.rezo.net/mailman/listinfo/spip-en

Hi,

2007/7/17, Barnie <spip@ourself.eu>:

Well, for my simple pages it works. I have all lines such as

>> <INCLURE{fond=inc-articles_rubrique}{id_article}{id_rubrique}>
>> <INCLURE{fond=inc-articles_rubrique}{id_article}>

transformed into

[(#INCLURE{fond=inc-articles_rubrique}{id_article}{id_rubrique})]
[(#INCLURE{fond=inc-articles_rubrique}{id_article})]

without problems. I did this only to get rid of the error messages
about the unknown tag <INCLURE>.

I'm not certain that your error was here because you only have a pb
with rubrique.php3. Didn't you have a <INCLURE(rubrique.php3)> ?

Be aware o the difference between static and dynamic inclusion
(#INCLURE and <INCLURE>) : the first one only inludes html data, and
no dynamic code php. So you can't have inside elements that depends on
dynamic context (like #SESSION) because the cache of the included
template is calculated for the first visitor and will remain the same
until its end.

But #INCLURE is far more speed than <INCLURE> (because you don't
interpret any php data) ^^

Maybe lines such as

[(#INCLURE{fond=inc-petition}{id_article}{self=#SELF})]
will create problems one day. (I don't yet understand that #SELF.)

This has been changed in the version 8825 of SPIP :

(original announce : Discuter chez rezo.net )

hope it helps,

.Gilles

PS.: please reply also to the mailing list : your question may
interest someone else :slight_smile:

---

On 2007 Jul 17, at 16:54, Gilles Vincent wrote:

> 2007/7/17, Barnie <spip@ourself.eu>:
>> Practically: I transformed
>> <INCLURE{fond=inc-articles_rubrique}{id_article}{id_rubrique}>
>> into
>> #INCLURE{fond=inc-articles_rubrique,id_article,id_rubrique}.
>> Looking at the results (none) I guess that is not quite correct.
>>
>
> OKay, forget the simplified form, it doesn't work very well.
>
> I've found the "problem" : #INCLUDE doesn't take into account the
> environnement of execution in the included template
>
> Main template :
> <INCLURE{fond=tests/inclure}{id_rubrique=3}{debut=a}>
> <br>
> #INCLURE{fond=tests/inclure, id_rubrique=3, debut=a}
> <br>
> [(#INCLURE{fond=tests/inclure}{id_rubrique=3, debut=a})]
> <br>
> #INCLURE{fond=test_inclure_doublons.inc}{id_rubrique=3}{debut=a}
> <br>
> [(#INCLURE{fond=tests/inclure}{id_rubrique=3}{debut=a})]
>
> included template :
> [(#ENV{debut,c})] / #ID_RUBRIQUE
>
> Result :
> a / 3
> c /
> c / 3
> c / {id_rubrique=3}{debut=a}
> a / 3
>
> So only the last form is valid for #INCLURE
> (Maybe always)
>
> .Gilles
> actually not a Jedy ^^
>
> --
>
>> Thanks for your comment.
>>
>> On 2007 Jul 17, at 12:37, Gilles Vincent wrote:
>>
>> Hi,
>>
>> since 1.9, <INCLURE> must use this form :
>> <INCLURE{fond=rubrique}{id_rubrique=123}>
>> or
>> #INCLURE{fond=rubrique,id_rubrique=123}
>>
>> (this tag has been introduced in 1.9.1 : see
>> SPIP 1.9.1 - SPIP
>> The advantage is that it's REALLY faster than <INCLURE> and that you
>> can apply filters like models :
>> Using models - SPIP)
>>
>> .Gilles
>> ---
>> 2007/7/17, Iswaria <iswaria.k@ifpindia.org>:
>>
>> Hi
>> I have upgraded my spip from 1.8.2d to 1.9
>>
>> Everything works fine except the search.
>>
>> I have removed the formulaire directory in the root and placed
>> all the
>> files directly in the squelettes directory.
>>
>> When I perform the search, I end up with a blank page. (The url I
>> get
>> :http://localhost/spip/spip.php?
>> recherche=research&lang=en&validation_recherche=valid)
>>
>> If I view the source code of the blank page, I can see the following
>>
>> <!-- Erreur INCLURE(rubrique.php3) -->
>>
>> What could be the reason?
>>
>> Thanks again
>> Iswaria.
>> _______________________________________________
>> spip-en@rezo.net -
>> http://listes.rezo.net/mailman/listinfo/spip-en
>>
>> _______________________________________________
>> spip-en@rezo.net -
>> http://listes.rezo.net/mailman/listinfo/spip-en
>>
>> _______________________________________________
>> spip-en@rezo.net -
>> http://listes.rezo.net/mailman/listinfo/spip-en
>>