View Full Version : category list
sheltonjb
12-07-2008, 10:38 PM
hello!
there's two category lists, one on the left which shows some, are these the most popular ones? then one in the middle which displays a number saying how many are inside it and the sub categories...
what i'm trying to do is move the categories that display in the middle to the header of my site. problem is, they disappear when on a different page, how can i make them display constantly? i'm good in xhtml and css but dont know any php...
thanks for your help,
Shelton
bruleo
12-07-2008, 11:01 PM
If you want to move the main category list to the header, you would need to identify and isolate all the code in the index.php related to the categories and the category / link counts etc and move it all to the init.php, as well as moving the associated code from the main.tpl to the header.tpl. Probably a process not worth doing and even if you did manage to do it, I'm not sure it would work correctly.
Someone else may be able to offer more detail advice as to whether it's possible, but you would be far better asking this kind of question inside the supporters forum (or even as a mod request) as it goes way beyond regular support and is outside the scope of design alone. It would more than likely need some paid assistance.
In my opinion, it would be much better to move and format the side code, as that is already effectively issolated and is a separate DB query in the init.php.
Bruce.
sheltonjb
12-07-2008, 11:43 PM
ahh, sounds confusing!
is anyone able to help me out on this? maybe give me a step by step guide about what code to paste where etc?
thanks
Shelton
James
12-07-2008, 11:59 PM
It's possible but my question will be what exactly are you trying to achieve show all categories and the count on ALL category pages or on ALL pages period detail included?
sheltonjb
12-08-2008, 12:04 AM
better user exp. do you have an email i could send my screenshot design to? i seem to be going round in circles, just wondering if seeing it would paint a clearer picture?
cheers james
Shelton
sheltonjb
12-08-2008, 09:49 PM
hi james, i emailed your address in your signature, do you think you could give me some guidance with this?
thanks,
Shelton
sheltonjb
12-12-2008, 08:05 PM
would anyone else mind helping me witht this? i'm just looking to get the main category list (as seen on the front and middle of demo) active constantly, as i'm totally re-doing the layout and want it placed within the header, but if it's there i need it to be visable at all times.
thanks folks
James
12-12-2008, 10:46 PM
Content visible to registered users only.
Yeah no I didnt get anything
sheltonjb
12-12-2008, 10:47 PM
ok dude, dont worry
cheers
James
12-13-2008, 01:44 AM
IF you dont care about the count you can do this
{foreach item=cat from=$mainCategs}
<li>
<a href="{$smarty.const.DOC_ROOT}/{$cat.CACHE_URL|escape}" title="{$cat.TITLE|escape}">{$cat.TITLE|escape}</a>
</li>
{/foreach}
just replace the <li> with however you want to display them
sheltonjb
12-29-2008, 02:27 PM
james this would be ok but the sub categories disappear too, is there a way to keep the sub categories showing aswell? not toio bothered about category count so long as i can keep them showing at all times...
thanks
vBulletin® v3.8.0, Copyright ©2000-2012, Jelsoft Enterprises Ltd.