| ||||||||||
![]() |
Shopping cart software Solutions for online shops and malls | |||||||||
![]() |
![]() |
|
X-Cart Home | ![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
Trying to show the meta description | |||
![]() |
|
|
Thread Tools | Search this Thread |
#1
|
|||||||
|
|||||||
![]() Hi All,
I've got these categories and icons associated at the bottom of my home page (http://mtrhomefurnishings.com/xcart/home.php). I would like to have the field meta_descr print below the headings. The file I'm working in is categories_features.tpl in the cusomer directory. This is what I have now: {* $Id: categories.tpl,v 1.23 2004/06/24 09:53:29 max Exp $ *} {capture name=mycategories} <hr class="content_divider"> <div id="featured_cats"> <ul class="featured_cats"> {foreach name="featuredcats" from=$subcategories item="cat"} <li {strip} {if $smarty.foreach.featuredcats.iteration%4 == 0} style="clear: left;" {/if} > {/strip} <div class="cat_spot"> <a href="home.php?cat={$cat.categoryid}"> [img]{$xcart_web_dir}/icon.php?categoryid={$cat.categoryid}[/img] </a> <h2>{$cat.category}</h2> {$cat.meta_descr} </p> </div> {/foreach}[/list]<hr class="content_divider"> </div> {/capture} {include file="dialog.tpl" title="Categories" content=$smarty.capture.mycategories extra="" class="mycatlist" no_title="1"} It shows the category headings and the images associated, just not the meta description. How can I make it do this? Thanks
__________________
xCart Gold Version 4.0.16 |
|||||||
#2
|
|||||||
|
|||||||
![]() Please put your X-Cart version in your signature, we can't help you without it. Edit profile, enter version, enter help desk password, click the 'Always attach my signature:' box, save. Thanks!
__________________
Padraic Ryan Ryan Design Studio Professional E-Commerce Development |
|||||||
#3
|
|||||||
|
|||||||
![]() updated
__________________
xCart Gold Version 4.0.16 |
|||||||
#4
|
|||||||||
|
|||||||||
![]() meta_descr is not part of the $subcategories array. The only items in that array are:
Code:
So, in order to show that you would need to change the queries in /include/categories.php that build the $subcategories array. |
|||||||||
#5
|
|||||||
|
|||||||
![]() Got it! Thanks!
__________________
xCart Gold Version 4.0.16 |
|||||||
![]() |
|
Thread Tools | Search this Thread |
|
|
|
|||
X-Cart forums © 2001-2020
|