Jump to content

Categories title not showing


Guest Baj
 Share

Recommended Posts

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&amp;catId={DATA.cat_id}">{DATA.cat_name}</a></li>

<!-- END: li -->

<!-- BEGIN: sale -->

<li><a href="index.php?act=viewCat&amp;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&amp;catId=1">Test Category</a></li>

<li><a href="index.php?act=viewCat&amp;catId=saleItems">Sale Items</a></li>

</ul>

...

Can anyone see why? Its driving me crazy.

Cheers

Link to comment
Share on other sites

how about your url?

Its local WIP atm.

jw_wip.jpg

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&amp;docId=1">About Us</a></li>

<li><a href="index.php?act=viewDoc&amp;docId=2">Contact Us</a></li>

<li><a href="index.php?act=viewDoc&amp;docId=4">Privacy Policy</a></li>

<li><a href="index.php?act=viewDoc&amp;docId=3">Terms &amp; Conditions</a></li>

</ul>

<h3></h3>

<ul class="cats">

<li><a href="index.php?act=viewCat&amp;catId=1">Test Category</a>	</li>

<li><a href="index.php?act=viewCat&amp;catId=2">Germany</a>

  <ul> <li><a href="index.php?act=viewCat&amp;catId=5"  >Red</a>		</li>

  <li><a href="index.php?act=viewCat&amp;catId=6"  >White</a>		</li>

  </ul>

</li>



<li><a href="index.php?act=viewCat&amp;catId=3">Portugal</a>

  <ul> <li><a href="index.php?act=viewCat&amp;catId=7"  >Red</a>		</li>

  <li><a href="index.php?act=viewCat&amp;catId=8"  >White</a>		</li>

  </ul>

</li>



<li><a href="index.php?act=viewCat&amp;catId=4">England &amp; Wales</a>	</li>

<li><a href="index.php?act=viewCat&amp;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>

Link to comment
Share on other sites

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.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

 Share

×
×
  • Create New...