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 
.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