Forums / Cotonti / Extensions / Support / Module main page blocking js?

lukgoh
#36553 2012-12-16 03:59

On what page(s)?

Added 5 minutes later:

nevermind I see it. Thank you for the report. 

Added 14 hours later:

This is strange behaviour I think:

PHP
1
2
3
4
5
6
7
8
9
if ($usr['isadmin'] == true)
            {
                 
                $t->assign(array(
                        'CATEGORY_LINK' => cot_url('shop', 'm=category'),
                        'PRODUCT_LINK' => cot_url('shop', 'm=product')
                    ));
                     
            }

 

and in the tpl file:

XML/XHTML
1
2
3
4
<!-- IF {CATEGORY_LINK} -->
        <li><a href="{CATEGORY_LINK}">Manage Categories</a></li>
        <li><a href="{PRODUCT_LINK}">Manage Products</a></li>
        <!-- ENDIF -->

and yet it not only displays the links when not logged in, but the links are incorrect. 

This post was edited by lukgoh (2012-12-16 20:46, 12 years ago)