Author Topic: Main Category  (Read 5227 times)

0 Members and 1 Guest are viewing this topic.

Offline uksoreeyes

  • Full Member
  • ***
  • Posts: 117
    • View Profile
    • http://www.myleeneklass.com
Main Category
« on: April 06, 2003, 05:06:08 PM »
I was wondering if there is a way to access the main category?

To access my first category listed under the main category I type this:

Quote
http://www.mydomain.com/4images/categories.php?cat_id=1


Can I access the main category by typing something similar? like this:

Quote
http://www.mydomain.com/4images/categories.php?cat_id=0


help would be great

Thanks Carl

Offline V@no

  • If you don't tell me what to do, I won't tell you where you should go :)
  • Global Moderator
  • 4images Guru
  • *****
  • Posts: 17.849
  • mmm PHP...
    • View Profile
    • 4images MODs Demo
Main Category
« Reply #1 on: April 06, 2003, 05:22:41 PM »
There is no "main" category.
atleast, witch ever category is "first" is become "main"
so, what u see at index.php are "first" ("main") categories.
it's all up to u how u build your categories tree.
for example at index.php u have this categories tree:
    cat1
    --sub_cat1.2
    -----sub_cat1.2.2
    --sub_cat1.3
    --sub_cat1.4
    cat2
    --sub_cat2.2
    --sub_cat2.3
    cat3[/list:u]
    in this example "main" categores are cat1, cat2, cat3
Your first three "must do" before you ask a question:
Please do not PM me asking for help unless you've been specifically asked to do so. Such PMs will be deleted without answer. (forum rule #6)
Extension for Firefox/Thunderbird: Master Password+    Back/Forward History Tweaks (restartless)    Cookies Manager+    Fit Images (restartless for Thunderbird)

Offline uksoreeyes

  • Full Member
  • ***
  • Posts: 117
    • View Profile
    • http://www.myleeneklass.com
Main Category
« Reply #2 on: April 06, 2003, 06:10:48 PM »
is there anyway of seeing these categories on another page apart from the index.php. i.e. if I was to create a page called gallery.html then access it via: www.mydomain.com/4images/index.php?template=gallery

Offline V@no

  • If you don't tell me what to do, I won't tell you where you should go :)
  • Global Moderator
  • 4images Guru
  • *****
  • Posts: 17.849
  • mmm PHP...
    • View Profile
    • 4images MODs Demo
Main Category
« Reply #3 on: April 06, 2003, 06:16:46 PM »
sry, I'm not quet sure what is the purpose of doing so?
but, yes, if put in your gallery.html template part from home.html, where the categories showed, then it should work.
Your first three "must do" before you ask a question:
Please do not PM me asking for help unless you've been specifically asked to do so. Such PMs will be deleted without answer. (forum rule #6)
Extension for Firefox/Thunderbird: Master Password+    Back/Forward History Tweaks (restartless)    Cookies Manager+    Fit Images (restartless for Thunderbird)

Offline uksoreeyes

  • Full Member
  • ***
  • Posts: 117
    • View Profile
    • http://www.myleeneklass.com
Main Category
« Reply #4 on: April 06, 2003, 10:04:05 PM »
sorted it thanks