TinyPortal

Development => Resources => Topic started by: Bloodlvst on October 30, 2007, 01:46:37 AM

Title: Question about blocks
Post by: Bloodlvst on October 30, 2007, 01:46:37 AM
I know there are "dynamic" viewing options. Is there any way to make a block show only when you're viewing articles in a certain category? I know there's a "category listing" option, but I don't think that does what I'm looking for.

Anyone know any way to do this, either by modding TP / SMF directly or some hidden option I'm unaware of?

Thanks!
Title: Re: Question about blocks
Post by: thelastzodiac on October 30, 2007, 03:09:10 AM
Well like you said there is "Category Listing", and as long as you have made categorys to put your Articles in and select them there then it should work!!   :D

There is no need to mod TP or SMF for this as it has this feature allready!! Unless I didnt fully understand the question!!


But I hope this was helpfull!!   :)
Title: Re: Question about blocks
Post by: IchBin on October 30, 2007, 03:12:33 PM
Thats what the category listing option is for. To only show a block when viewing an article when in a certain category.
Title: Re: Question about blocks
Post by: Bloodlvst on November 01, 2007, 04:43:45 AM
Quote from: IchBinâ,,¢ on October 30, 2007, 03:12:33 PM
Thats what the category listing option is for. To only show a block when viewing an article when in a certain category.

Ah okay thanks. The language is just a bit confusing! I figured when you're only in an actual listing of a category. Perhaps removing "Listing" from that item will be less confusing. :D

EDIT - That info is incorrect. :( The block only shows if I view the category itself.

For example, I view the category listing "Portal Features" and the block shows, but if I view an individual article in the category then the block will not show. :(

Any ideas folks? I know this would help a lot of people to have a fully featured site :D
Title: Re: Question about blocks
Post by: Bloodlvst on November 06, 2007, 07:46:38 PM
No one? :(
Title: Re: Question about blocks
Post by: IchBin on November 06, 2007, 08:07:47 PM
For now the option doesn't exist. You'll need to wait until TP 1.0 comes out. If not, you'll have to do a php block to customize the display options.
Title: Re: Question about blocks
Post by: Bloodlvst on November 06, 2007, 10:07:56 PM
Any advice on where I should look in the TP files to edit the code to maybe create a mod?
Title: Re: Question about blocks
Post by: IchBin on November 07, 2007, 12:17:54 AM
I would start in the TPortalAdmin. and template file.