Please login or register.

Login with username, password and session length
Advanced search  
Pages: 1 [2] 3 4 ... 8

Author Topic: [PACKAGE] Subcategories  (Read 37033 times)

Rui Mendes

  • Development,Testing, Support
  • Hero Member
  • *****
  • Karma: 195
  • Posts: 1009
  • sNews1.7
    • Comunidade Portuguesa
Re: [PACKAGE] Subcategories
« Reply #15 on: February 23, 2008, 10:28:53 AM »

I create downloads webspace for us
You can download here
« Last Edit: February 23, 2008, 10:34:33 AM by Rui Mendes »
Logged
Need a Job on Europe. Linkdin - Facebook / Group

centered

  • Guest
Re: [PACKAGE] Subcategories
« Reply #16 on: February 23, 2008, 12:04:15 PM »

Thanks Rui!!
Logged

Ken Dahlin

  • Full Member
  • ***
  • Karma: 30
  • Posts: 139
    • http://www.kendahlin.com/
Re: [PACKAGE] Subcategories
« Reply #17 on: February 23, 2008, 04:58:31 PM »

I've started testing this and I thank you for your hard work on this. Those interested please feel free to try it out at http://snews.kendahlin.com/subCat/. Admin - pass is test - test as usual, and nothing has been changed except the file function has been disabled for security purposes.

One thing I'd like to see is that if a visitor clicks on a parent category, all subcategory articles display on that page too... I also think the parent category count should represent both itself and subcategories.

One last thing, I'm really grateful for all the smart people here.  :D
Logged

henrich

  • Sr. Member
  • ****
  • Karma: 23
  • Posts: 381
  • Passion for quality and excellence!
    • My personal blog and portofolio
Re: [PACKAGE] Subcategories
« Reply #18 on: February 23, 2008, 06:27:57 PM »

Notes in the code as usual?
Logged
By(e) Henrich :)
------------------------------
IT related blog

centered

  • Guest
Re: [PACKAGE] Subcategories
« Reply #19 on: February 23, 2008, 06:31:18 PM »

I've started testing this and I thank you for your hard work on this. Those interested please feel free to try it out at http://snews.kendahlin.com/subCat/. Admin - pass is test - test as usual, and nothing has been changed except the file function has been disabled for security purposes.

One thing I'd like to see is that if a visitor clicks on a parent category, all subcategory articles display on that page too... I also think the parent category count should represent both itself and subcategories.

One last thing, I'm really grateful for all the smart people here.  :D
try here:

http://snewscms.com/forum/index.php?topic=6936.msg47989#msg47989
Logged

centered

  • Guest
Re: [PACKAGE] Subcategories
« Reply #20 on: February 23, 2008, 06:31:41 PM »

Notes in the code as usual?

of course
Logged

alfaso

  • Newbie
  • *
  • Karma: 0
  • Posts: 4
Re: [PACKAGE] Subcategories
« Reply #21 on: February 23, 2008, 09:51:33 PM »

plz
can you tel me what you add to master files
index.php
news.php
Logged

centered

  • Guest
Re: [PACKAGE] Subcategories
« Reply #22 on: February 23, 2008, 11:11:48 PM »

This should help you get started:
http://snewscms.com/help/installing-snews/

Only the db information is being added to snews.php only
Logged

Ken Dahlin

  • Full Member
  • ***
  • Karma: 30
  • Posts: 139
    • http://www.kendahlin.com/
Re: [PACKAGE] Subcategories
« Reply #23 on: February 24, 2008, 07:30:01 AM »


try here:

http://snewscms.com/forum/index.php?topic=6936.msg47989#msg47989

I haven't tried that yet, but I imagine the code will help steer me in the right direction for what I want to do. What I'm really looking for is that the function articles() would display all articles under a parent category including it's child categories (up to the configurable limit per page). So when you go to a parent category URL like http://snews.kendahlin.com/subCat/web-design/ it would also display articles from http://snews.kendahlin.com/subCat/web-design/templates/ and http://snews.kendahlin.com/subCat/web-design/themes/ on that page, but if one were to navigate to the URL of the child categories, the listing would be more focused and show only child category articles displayed. This is more of a standard navigational practice for sites with subcategories rather than just my personal preference I think.
Logged

centered

  • Guest
Re: [PACKAGE] Subcategories
« Reply #24 on: February 24, 2008, 08:01:07 AM »

It works sort of like that.

The categories in the enhanced menu are clickable showing all articles beneath it and any child categories.  The child categories are clickable as well showing articles beneath it as well.

Adding a limit clause should be easy
Logged

sibas

  • Sr. Member
  • ****
  • Karma: 23
  • Posts: 451
    • www.simply4all.net
Re: [PACKAGE] Subcategories
« Reply #25 on: February 24, 2008, 01:58:14 PM »

Hi equilni
Is it possibly to post the complete code for this mod?
I have in my site one heavy snews and like this I must to add all the modís that have installed from beginning  :'(
Logged

centered

  • Guest
Re: [PACKAGE] Subcategories
« Reply #26 on: February 24, 2008, 03:26:28 PM »

follow the commented code...
Logged

henrich

  • Sr. Member
  • ****
  • Karma: 23
  • Posts: 381
  • Passion for quality and excellence!
    • My personal blog and portofolio
Re: [PACKAGE] Subcategories
« Reply #27 on: February 24, 2008, 07:35:19 PM »

+sibas, as equilni has said follow the commented code and where you need to update (not only to add) code, you will verify old code and also new code and you will realise if a copy paste is enough or if you need to add also parts of the code from old code. For example some fields in the queries. Depending on mod's you already use. I have not tested thid mod yet, i'm just trying to give you a good suggestion. Good luck :)
Logged
By(e) Henrich :)
------------------------------
IT related blog

Armen

  • Sr. Member
  • ****
  • Karma: 41
  • Posts: 338
    • http://www.funnydays.ru
Re: [PACKAGE] Subcategories
« Reply #28 on: February 24, 2008, 07:47:43 PM »

Thank you.

BUG: First try removing (disabling) all categories,
then try to add an article. No category to chose, Makes it unclear: what happens to the article if a user posts it? (Well, this way it gets "home" category, but is it supposed to? I think there must be a message in this case, something like "Please, add a category first"... Needs some work, I think).

Another BUG: From admin panel if you try to "view" a PAGE, you won't get it - engine doesn't add "home" into the link - so the link remains "localhost/subs//page/" instead of "localhost/subs/home/gerberrerebe/"
« Last Edit: February 24, 2008, 08:46:25 PM by Armen »
Logged
Now ogres, oh, they're much worse. They'll make a suit from your freshly peeled skin. They'll shave your liver, squeeze the jelly from your eyes... Actually, it's quite good on toast.

sibas

  • Sr. Member
  • ****
  • Karma: 23
  • Posts: 451
    • www.simply4all.net
Re: [PACKAGE] Subcategories
« Reply #29 on: February 24, 2008, 11:55:27 PM »

I give a try to package to see how is going  :)
Logged
Pages: 1 [2] 3 4 ... 8