'bx_if' construct not working

Hi All,

plz help its urgent!

My code contains

"........

'bx_if:req_status' => array(
'condition' => 1,
'content' => array('req_status' => $aEntry['mtr_status']),       // [$aEntry['mtr_status'] is value fetched from DB which is not blank either]
),

"

...and corresponding html....

".........

<bx_if:req_status>
__req_status__                        
</bx_if:req_status>

"

but the result show  __req_status__ as it is and not the parsed value.

Same page contains bx_if used and are showing parsed values. Whats the reason any idea?

Its D7

Thanks in Advance!

Quote · 27 Jan 2010

Hello!

By quick view everything is fine. Have some suggestions:

1) try to use in 'condition' true instead '1'.

2) May be in parseHtmlByContent calling u change keys prefix from default '__' before and '__' after on '{' and '}'. But it's not so probably.


Regards

Quote · 28 Jan 2010

Thanks LeionidS!

No I haven't changed anything related to 'parseHtmlByContent'. And using 1 and true both are working elsewhere

But I fill like there is kind of limitation on 'bx_if' in a html pag

any way I have solved it by using different html page, but this should not be the proper solution though it has solved my purpose, we must figure out the reason

Quote · 29 Jan 2010

Well, then need to check it directly. Also plz specify - $aEntry['mtr_status'] - has some code always? Or it can be empty?

Regard

Quote · 29 Jan 2010
 
 
Below is the legacy version of the Boonex site, maintained for Dolphin.Pro 7.x support.
The new Dolphin solution is powered by UNA Community Management System.