Hi
I don t understand what happens.
In category.html, i use <%ifnot%> tag and it works fine with the variables 'img' or 'banner' :
**********
<%ifnot banner%>testBANNER1<%endif%>
or
<%if banner eq ''%>testBANNER2<%endif%>
Idem with 'img'
<%ifnot img%>testIMG1<%endif%>
or
<%if img eq ''%>testIMG2<%endif%>
All that works very fine. If there is not a variable 'banner', then 'testBANNER1' appears and if there is a variable 'banner', then the <%banner%> appears.
**********
BUT the problem is that it does NOT work with the variable 'bannervert' :
<%ifnot bannervert%>testBANNERVERT1<%endif%>
or
<%if bannervert% eq ''%>testBANNERVERT2<%endif%>
There is no data in 'bannervert' field but still nothing appears. But if there is a data in 'bannervert' field, then the <%bannervert%> appears in my pages. I cannot find why it does not work when there is no variable 'bannervert'. It does not seem to be a problem of <%ifnot%> because it works with 'img' and 'banner' variables.
I thought it could be a problem in 'nph_build.cgi' but testing different ways, no result :
# ********************** nonenglish modification - begin ****************
# ($description, $related, $meta_name, $meta_keywords, $header, $footer) = @{$category{$cat}}[2..7];
($id,$category_name,$description, $related, $meta_name, $meta_keywords, $header, $footer, $nonenglish,$catsort,$subcat,$type,$img,$banner,$bannervert) = @{$category{$cat}}[0..15];
# *********************** nonenglish modification - end ******************
NB : i use the 'nonenglish mod too'
Here are the files 'category.def', 'site_html_template' and 'nph_build.cgi'.
Has anyone got any idea ???
Thanx a lot.
J
I don t understand what happens.
In category.html, i use <%ifnot%> tag and it works fine with the variables 'img' or 'banner' :
**********
<%ifnot banner%>testBANNER1<%endif%>
or
<%if banner eq ''%>testBANNER2<%endif%>
Idem with 'img'
<%ifnot img%>testIMG1<%endif%>
or
<%if img eq ''%>testIMG2<%endif%>
All that works very fine. If there is not a variable 'banner', then 'testBANNER1' appears and if there is a variable 'banner', then the <%banner%> appears.
**********
BUT the problem is that it does NOT work with the variable 'bannervert' :
<%ifnot bannervert%>testBANNERVERT1<%endif%>
or
<%if bannervert% eq ''%>testBANNERVERT2<%endif%>
There is no data in 'bannervert' field but still nothing appears. But if there is a data in 'bannervert' field, then the <%bannervert%> appears in my pages. I cannot find why it does not work when there is no variable 'bannervert'. It does not seem to be a problem of <%ifnot%> because it works with 'img' and 'banner' variables.
I thought it could be a problem in 'nph_build.cgi' but testing different ways, no result :
# ********************** nonenglish modification - begin ****************
# ($description, $related, $meta_name, $meta_keywords, $header, $footer) = @{$category{$cat}}[2..7];
($id,$category_name,$description, $related, $meta_name, $meta_keywords, $header, $footer, $nonenglish,$catsort,$subcat,$type,$img,$banner,$bannervert) = @{$category{$cat}}[0..15];
# *********************** nonenglish modification - end ******************
NB : i use the 'nonenglish mod too'
Here are the files 'category.def', 'site_html_template' and 'nph_build.cgi'.
Has anyone got any idea ???
Thanx a lot.
J