TinyPortal

Development => Support => Topic started by: Ruscon on October 12, 2008, 05:42:07 PM

Title: Custom page with BLOCKS
Post by: Ruscon on October 12, 2008, 05:42:07 PM
I can't figure out what to search, I've tried for about two hours now, I'm sorry this might be somewhere out there but I can't find it. So here comes the question:

The idea of using tiny portal to me was to make the site match with the forum. So basically I lets say I want some simple HTML code or just a text, a special page. Like adding a "About us" page, with some text about us. I'd like to know if it's possible doing this using TP? Because I still want all the TP blocks to show in the "About us" page.

I found a mod that adds links in menu, which makes me able to add a aboutus.html file, but that would remove the possiblity of having the blocks on same page, right? I don't know if I'm confusing you but I hope you understand what I want!  :buck2:
Title: Re: Custom page with BLOCKS
Post by: Ken. on October 12, 2008, 05:55:01 PM
An article page may be what you need because it would be able to display any content (html, bbc or php) and give you the option of displaying your blocks as well.

There are also some mods and code snippets available to give you 'about us' style pages.
Title: Re: Custom page with BLOCKS
Post by: Lesmond on October 12, 2008, 05:57:24 PM
this is something that can be accomplished with using articles, you could have what ever blocks you wanted showing on that page, have a look at TinyPortal Doc's Board (http://docs.tinyportal.co.uk/index.php) to give you more of an incite  

*edit Ken beat me to it*
Title: Re: Custom page with BLOCKS
Post by: Ken. on October 12, 2008, 06:02:28 PM
Quote from: Lesmondâ,,¢ on October 12, 2008, 05:57:24 PM
this is something that can be accomplished with using articles, you could have what ever blocks you wanted showing on that page, have a look at TinyPortal Doc's Board (http://docs.tinyportal.co.uk/index.php) to give you more of an incite 

*edit Ken beat me to it*
:D
Title: Re: Custom page with BLOCKS
Post by: Ruscon on October 12, 2008, 06:11:49 PM
Quote from: Ken. on October 12, 2008, 05:55:01 PM
An article page may be what you need because it would be able to display any content (html, bbc or php) and give you the option of displaying your blocks as well.

There are also some mods and code snippets available to give you 'about us' style pages.

I succeeded in adding an article, but somehow when I preview it it doesn't show. Only if I have the "Toggle show on frontpage" actived, that's the only way I can see it, and on frontpage. I want it not shown there and a possible link to it like ?action=about and then I also would like to add a menu button with this link. Is that what "add menu item" is for?
Title: Re: Custom page with BLOCKS
Post by: Ken. on October 12, 2008, 07:09:02 PM
Not sure that I understand your question but if you are saying that you have no link in your navigation for the new article that would be correct.

It will as you say show on the front page if set to do so, but if you want it to show somewhere else you must add a button to your navigation or add a link to a menu in order for someone to be able to find it.
Title: Re: Custom page with BLOCKS
Post by: Ruscon on October 12, 2008, 08:16:07 PM
Quote from: Ken. on October 12, 2008, 07:09:02 PM
Not sure that I understand your question but if you are saying that you have no link in your navigation for the new article that would be correct.

It will as you say show on the front page if set to do so, but if you want it to show somewhere else you must add a button to your navigation or add a link to a menu in order for someone to be able to find it.

There's a function called "Preview" when I click it my added article is showing blank, nothing. Doesn't work. Although when I tell it to show on the frontpage, then I see it on the frontpage. Any idea what is causing this?
Title: Re: Custom page with BLOCKS
Post by: JPDeni on October 12, 2008, 08:37:14 PM
Do you have your article in a category?

What is the URL in your address bar after you click the "Preview" link?
Title: Re: Custom page with BLOCKS
Post by: Ruscon on October 12, 2008, 09:07:24 PM
Quote from: JPDeni on October 12, 2008, 08:37:14 PM
Do you have your article in a category?

What is the URL in your address bar after you click the "Preview" link?

This is url "index.php?page=4". No I don't have a category, is that nessesary?
Title: Re: Custom page with BLOCKS
Post by: Ken. on October 12, 2008, 09:45:18 PM
Articles must be in a category for them to display correctly.
Title: Re: Custom page with BLOCKS
Post by: Ruscon on October 12, 2008, 11:55:22 PM
Quote from: Ken. on October 12, 2008, 09:45:18 PM
Articles must be in a category for them to display correctly.

Okay with that solved, I'd like to know how to remove these things I've marked with red (http://img523.imageshack.us/my.php?image=removehr3.jpg)?

Thanks alot for your support/help, I thought I'd show my appriciation  :up:
Title: Re: Custom page with BLOCKS
Post by: IchBin on October 13, 2008, 12:59:20 AM
http://www.tinyportal.net/index.php/topic,26493.0.html