TinyPortal

Development => Resources => Topic started by: Luigi on November 27, 2007, 07:37:19 PM

Title: How to show a block for every article
Post by: Luigi on November 27, 2007, 07:37:19 PM
Hello guys, sorry if this has been asked before, but I've been searching in the forum for half an hour and I didn't find anything.
Can I show a block only when an article is being read? Doesn't matter which article. I can't find anything on the block settings page... I can set a block to show for a category or for a specified article, but not for each article.
Please help me, It's frustrating to check every page without finding anything! :uglystupid2:
Title: Re: How to show a block for every article
Post by: TimUSA on November 27, 2007, 09:01:04 PM
at the bottom of the block editor you will find what you seek...did you try the Docs?
Title: Re: How to show a block for every article
Post by: Luigi on November 28, 2007, 08:05:03 PM
Of course I tried. But I don't see what I am looking for at the bottom of the block editor.
There I can setup a block to show only in a specific forum section, in a board, in a TP section (not including "articles"), for a specific language or in a single article. I would like to show a block with some technorati links when every article is shown, but from there I must select a single article. Thanks for you answer though. :)
Title: Re: How to show a block for every article
Post by: IchBin on November 29, 2007, 12:15:11 AM
The setting is only for single articles and not "all" articles. You'll have to use some custom code to do it.

if (isset($_GET['page'])){
    echo 'all your content goes in between these to single quotes';
}
Title: Re: How to show a block for every article
Post by: Luigi on November 30, 2007, 05:04:44 PM
Thankyou IchBin, will try your code. :)