TinyPortal

Development => Support => Topic started by: GhostRider2110 on November 11, 2009, 05:09:32 PM

Title: Article Block with Catagories and Sub-Catagories
Post by: GhostRider2110 on November 11, 2009, 05:09:32 PM
Hello All.. again I can't seem to get something to work.. If this is possible:
SMF 1.1.10
TP 1.0 B4
Theme Modified BlueSkies
www.usscalemasters.org

On the right I have a block "Championship Archives"  Have a Championship Archive category setup with two child categories currently, 2009 and 2007.  Each of them have several articles.  I also want to add other years to this as well.   The Block is setup as "Articles in Category" and the category "Championship Archives" is chosen.  Nothing shows up... If this can't be done this way, how could I do this?

Thanks
Mitch
"Salute to all Veterans on US Veterans Day!"
Title: Re: Article Block with Catagories and Sub-Catagories
Post by: IchBin on November 11, 2009, 05:53:42 PM
I'm not quite sure what you're trying to do. Are you trying to get the article from the sub-categories? It will only pull from the category that you select, not it's sub-categories from what I understand.
Title: Re: Article Block with Catagories and Sub-Catagories
Post by: GhostRider2110 on November 11, 2009, 08:05:47 PM
If what you say is true then what I want will not work.  I can PM you with an admin account info if you would like to look if this does not explain it right.

Category Tree:

Championship Archives (Category)
   2007  (child of Championship Archives)
       Hemet Scores (article in 2007 child category)
   2009  (child of Championship Archives)
       Qualifier 1 scores
       Another Article      (All article in 2009 child category)
       Another Article

As I said, the block is setup to display articles in a category, set to Championship Archives.  But if what you say is correct, then that will not show the tree, only articles in that category, and since there are non, only child categories nothing will display.  If so, any suggestions on how to do what  this in a block? 

Thanks
--Mitch
Title: Re: Article Block with Catagories and Sub-Catagories
Post by: IchBin on November 11, 2009, 10:03:03 PM
I haven't confirmed it, but I do believe it only grabs articles from the category, not the sub-categories. You'll likely have to get a block code snippet for what you want.
Title: Re: Article Block with Catagories and Sub-Catagories
Post by: GhostRider2110 on November 11, 2009, 10:06:28 PM
Thanks IchBin, I am surprised someone has not come up with that already.  I did see something when I was searching about it with previous version.. but nothing recent.

--Mitch
Title: Re: Article Block with Catagories and Sub-Catagories
Post by: GhostRider2110 on November 13, 2009, 08:38:28 PM
I found a code block I think I can make work... But I guess I am a little confused about how all that works...  If I go to Articles and Categories -> Categories I get the Edit Category page.  Listing my Categories and any child categories within them.  If I choose to edit 2009, the edit page comes up showing the configuration.  "Yes" is checked for "Display any child categories" but if I hit the preview button. I get "No Articles found. Also the errors listed below hit my error log.  Attached screen shots to maybe help. 

--Mitch

   
Apply Filter: Only show the error messages of this member Mitchell Baker    Today at 15:20:43
Apply Filter: Only show the error messages of this IP address 137.112.0.154      Apply Filter: Only show the error messages of this session a1699e72afc81542e88a0838c75cf465
Apply Filter: Only show the error messages of this URL http://usscalemasters.org/forums/index.php
Apply Filter: Only show the errors with the same message
8: Undefined index: rightbar
File: /home/usscalem/public_html/forums/Themes/default/Errors.template.php (main_below sub template - eval?)
Line: 824
   
Apply Filter: Only show the error messages of this member Mitchell Baker    Today at 15:20:43
Apply Filter: Only show the error messages of this IP address 137.112.0.154      Apply Filter: Only show the error messages of this session a1699e72afc81542e88a0838c75cf465
Apply Filter: Only show the error messages of this URL http://usscalemasters.org/forums/index.php
Apply Filter: Only show the errors with the same message
8: Undefined index: centerbar
File: /home/usscalem/public_html/forums/Themes/default/Errors.template.php (main_above sub template - eval?)
Line: 810
   
Apply Filter: Only show the error messages of this member Mitchell Baker    Today at 15:20:43
Apply Filter: Only show the error messages of this IP address 137.112.0.154      Apply Filter: Only show the error messages of this session a1699e72afc81542e88a0838c75cf465
Apply Filter: Only show the error messages of this URL http://usscalemasters.org/forums/index.php
Apply Filter: Only show the errors with the same message
8: Undefined index: leftbar
File: /home/usscalem/public_html/forums/Themes/default/Errors.template.php (main_above sub template - eval?)
Line: 784
Title: Re: Article Block with Catagories and Sub-Catagories
Post by: GhostRider2110 on November 13, 2009, 08:47:29 PM
Could this be related to this bug?  http://www.tinyportal.net/index.php?topic=28813.0  but should be fixed in the version I am running.  Unless something go munged in the install a while back...  --Mitch