Ravens PHP Scripts: Forums
 

 

View next topic
View previous topic
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    Ravens PHP Scripts And Web Hosting Forum Index -> RN v2.10.01 - All Issues
Author Message
psychoses
Regular
Regular



Joined: Jun 19, 2007
Posts: 66

PostPosted: Wed Oct 10, 2007 4:21 pm Reply with quote

I have seen some sites with a Categories Menu. How do I add that? as my site's gonna be a computer shop site ... Plz help
 
View user's profile Send private message
fkelly
Former Moderator in Good Standing



Joined: Aug 30, 2005
Posts: 3312
Location: near Albany NY

PostPosted: Wed Oct 10, 2007 5:42 pm Reply with quote

I'm not sure how the categories menu works or whether it refers to the same thing I am thinking of. I've just been staring at the news module all day so ... news items can have categories. The default category is "article". If you choose this you won't see any category displayed next to the title of the article in news. But, if you go into admin and click on any news item you will get a chance to add categories. You can do so there. This has limited functionality but the main one is that if you click on the category next to the article when it is displayed on the news page you will get a list of all articles that fall under that category. The articles category is always displayed on the home page. For other categories you need to select whether to display it on the home page. But I realize that your question about categories may have been in an entirely different category and if so I apologize in advance.
 
View user's profile Send private message Visit poster's website
PHrEEkie
Subject Matter Expert



Joined: Feb 23, 2004
Posts: 358

PostPosted: Wed Oct 10, 2007 7:02 pm Reply with quote

If it's a computer shop site, are you selling online? Sounds like you need a commerce/cart module...

PHrEEk

_________________
PHP - Breaking your legacy scripts one build at a time. 
View user's profile Send private message
jakec
Site Admin



Joined: Feb 06, 2006
Posts: 3048
Location: United Kingdom

PostPosted: Thu Oct 11, 2007 12:11 am Reply with quote

Are you thinking of the Sommaire menu block, like what is used here?

http://www.montegoscripts.com/
 
View user's profile Send private message
psychoses







PostPosted: Thu Oct 11, 2007 3:42 am Reply with quote

nope ... no shop cart needed ... just the categories menu ....
 
jakec







PostPosted: Thu Oct 11, 2007 5:28 am Reply with quote

Have you seen this elsewhere? Can you post a link, or image so we can understand what you are describing?

Thanks
Jakec
 
psychoses







PostPosted: Thu Oct 11, 2007 8:24 am Reply with quote

This has been seen here :
http://www.scc-tds.com/index.php
 
fkelly







PostPosted: Thu Oct 11, 2007 9:04 am Reply with quote

Okay, so these are news categories like I alluded to in my previous post. As such they are stored in the stories_cat table. There is a catid field and a title field. Almost certainly that category menu is pulling them from that table and displaying them. You can see how the link to find all articles in a category is formed in news/index.php.

Do you have have access to the code that underlies that categories menu? Or can you write to the site and see if they will give it to you? Humm ... it must be a block. It would not be that difficult to do ... like most things it's just a matter of time.
 
psychoses







PostPosted: Thu Oct 11, 2007 9:11 am Reply with quote

Nahh can't contact them ... they never reply back ... anyway if it's a block what would it be called?
 
PHrEEkie







PostPosted: Thu Oct 11, 2007 10:01 am Reply with quote

It is a block, and it appears to be static, ie., it's not a 'top' list of any sort or anything else that would require a SQL fetch to populate. Therefore it's most likely just standard markup in a block file. All you need to do is look at sample_block.php to start a block template, then add your categories and however you want them presented. You should be able to accomplish this with extremely simple HTML.

PHrEEk
 
Gremmie
Former Moderator in Good Standing



Joined: Apr 06, 2006
Posts: 2415
Location: Iowa, USA

PostPosted: Thu Oct 11, 2007 10:44 am Reply with quote

Have you tried the standard Categories block (block-Categories.php)?

_________________
Only registered users can see links on this board! Get registered or login! - An Event Calendar for PHP-Nuke
Only registered users can see links on this board! Get registered or login! - A Google Maps Nuke Module 
View user's profile Send private message
fkelly







PostPosted: Thu Oct 11, 2007 12:05 pm Reply with quote

LOL, you are too good Gremmie. I never even thought of looking in there. Avoid what's obvious at all costs Smile
 
psychoses







PostPosted: Sat Oct 13, 2007 6:45 am Reply with quote

how? I'm no coder or anything I barely know frontpage Razz
 
jakec







PostPosted: Sat Oct 13, 2007 8:05 am Reply with quote

The Catergories Menu block should show in your Blocks Administration, you just need to activate it. Very Happy
 
psychoses







PostPosted: Sat Oct 13, 2007 8:34 am Reply with quote

oki but how to add content to it? .. I tried going to content and adding categories ... nothing plz help Razz
 
Gremmie







PostPosted: Sat Oct 13, 2007 10:19 am Reply with quote

Apparently the block only shows a category if you have content in that category.
 
psychoses







PostPosted: Sat Oct 13, 2007 10:37 am Reply with quote

like how do I add content to that categories plzz save us both time and tell me step by step once and for all
 
Gremmie







PostPosted: Sat Oct 13, 2007 10:46 am Reply with quote

When you "Add a new page" in the Content admin panel, there is a drop down box to assign it to a category.
 
psychoses







PostPosted: Sat Oct 13, 2007 10:56 am Reply with quote

I did but still didn't show anything .. can u try and tell me ?
 
jakec







PostPosted: Sat Oct 13, 2007 11:08 am Reply with quote

The Categories Menu block is for News Article categories, rather than content. So you need to setup your categories under News in the admin menu.
 
psychoses







PostPosted: Sat Oct 13, 2007 11:27 am Reply with quote

still nothing showing up ......
 
jakec







PostPosted: Sat Oct 13, 2007 11:40 am Reply with quote

Have you added any news to that category?
 
Gremmie







PostPosted: Sat Oct 13, 2007 12:09 pm Reply with quote

jakec is correct. That Categories block is for news stories that have been categorized, not content. Sorry about that.
 
Display posts from previous:       
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    Ravens PHP Scripts And Web Hosting Forum Index -> RN v2.10.01 - All Issues

View next topic
View previous topic
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You can attach files in this forum
You can download files in this forum


Powered by phpBB © 2001-2007 phpBB Group
All times are GMT - 6 Hours
 
Forums ©