Guest Baj Posted January 2, 2009 Share Posted January 2, 2009 Hi guys I have been fiddling with CC for the last couple of days creating a skin to suit my needs. CC is relatively easy for skinning which is great but I am having a bit of an issue. My categories menu refuses to show the title. ~skin/styleTemplates/boxes/categories.tpl <!-- BEGIN: categories --> <h3>{LANG_CAT_TITLE}</h3> <ul class="cats"> <!-- BEGIN: li --> <li><a href="index.php?act=viewCat&catId={DATA.cat_id}">{DATA.cat_name}</a></li> <!-- END: li --> <!-- BEGIN: sale --> <li><a href="index.php?act=viewCat&catId=saleItems">{LANG_SALE_ITEMS}</a></li> <!-- END: sale --> </ul> <!-- END: categories --> includes/boxes/categories.inc.php ... $box_content->assign("LANG_CAT_TITLE",$lang['front']['boxes']['shop_by_country']); ... en/lang.inc.php ... 'shop_by_country' => "List by country", ... It looks fine to me. The cats list fine. The H3 tag is there with all the css styling but the title is blank. generated source code: ... <h3></h3> <ul class="cats"> <li><a href="index.php?act=viewCat&catId=1">Test Category</a></li> <li><a href="index.php?act=viewCat&catId=saleItems">Sale Items</a></li> </ul> ... Can anyone see why? Its driving me crazy. Cheers Quote Link to comment Share on other sites More sharing options...
Guest Posted January 4, 2009 Share Posted January 4, 2009 how about your url? Quote Link to comment Share on other sites More sharing options...
Guest Baj Posted January 4, 2009 Share Posted January 4, 2009 how about your url? Its local WIP atm. All generated code for leftmost sidebar <h3>Quick links</h3> <ul class="cats"> <li><a href="index.php">Homepage</a></li> <li><a href="index.php?act=viewDoc&docId=1">About Us</a></li> <li><a href="index.php?act=viewDoc&docId=2">Contact Us</a></li> <li><a href="index.php?act=viewDoc&docId=4">Privacy Policy</a></li> <li><a href="index.php?act=viewDoc&docId=3">Terms & Conditions</a></li> </ul> <h3></h3> <ul class="cats"> <li><a href="index.php?act=viewCat&catId=1">Test Category</a> </li> <li><a href="index.php?act=viewCat&catId=2">Germany</a> <ul> <li><a href="index.php?act=viewCat&catId=5" >Red</a> </li> <li><a href="index.php?act=viewCat&catId=6" >White</a> </li> </ul> </li> <li><a href="index.php?act=viewCat&catId=3">Portugal</a> <ul> <li><a href="index.php?act=viewCat&catId=7" >Red</a> </li> <li><a href="index.php?act=viewCat&catId=8" >White</a> </li> </ul> </li> <li><a href="index.php?act=viewCat&catId=4">England & Wales</a> </li> <li><a href="index.php?act=viewCat&catId=saleItems">Sale Items</a></li> </ul> <h3>Mailing List</h3> <p>Subscribe to our mailing list below:</p> <form action="/shop/index.php" method="post"> <input name="email" type="text" maxlength="255" value="Email:" class="textbox" style="width:90px;" /> <input type="hidden" name="act" value="mailList" /> <input name="submit" type="submit" value="Go" class="go" /> </form> Quote Link to comment Share on other sites More sharing options...
burgensteen Posted January 5, 2009 Share Posted January 5, 2009 In categories.inc.php: Try changing $box_content->assign("LANG_CAT_TITLE",$lang['front']['boxes']['shop_by_country']); To $box_content->assign("LANG_CAT_TITLE","List by country"); Not the most conventional way of doing it but it will allow you to which file it may or may not be that is causing the problem. Quote Link to comment Share on other sites More sharing options...
Guest Baj Posted January 5, 2009 Share Posted January 5, 2009 Cheers chap That did the job. No idea why it wasn't working before though. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.