TinyPortal

Development => Feedback => Topic started by: Chodhry on May 23, 2006, 12:11:20 PM

Title: Link in Block Titels
Post by: Chodhry on May 23, 2006, 12:11:20 PM
Is it possible to add a link for the block title like we have it for "user" Block. And is there any way to have a block "shrinked" by default?

Thanks!
Chodhry
Title: Re: Link in Block Titels
Post by: Chodhry on May 30, 2006, 07:20:12 AM
So no one knows how to do this?
Title: Re: Link in Block Titels
Post by: Chodhry on May 31, 2006, 07:18:12 AM
anyone? Please.
Title: Re: Link in Block Titels
Post by: G6Cad on May 31, 2006, 07:26:24 AM
If you can be a bit more specific about what you mean, and what you want to accomplish with it, perhaps you will get some more feed on your question ;)
Title: Re: Link in Block Titels
Post by: Chodhry on May 31, 2006, 07:39:27 AM
Well to be very specific. I want to know if I can make the "title" of a block a "link". For example you have the title of "User" block a link to the user profile. Simmilarly we have link titles for "shoutbox" and "some stats" here in this site. But we dont have them for rest of the blocks. I wanted to know if there is a way to add a link to the title itself.

My second question is can we make these blocks collapsed by default?

End result will be a dynamic menu taking less space, where a user will only see the titles of the blocks by defualt which are linked to /page and he will have the choice to go to that page/section directly by clicking on the title or click on the "+" sign to expand the block and use quick navigation for that particular section/page.

I hope it's not that complicated to understand.
Title: Re: Link in Block Titels
Post by: IchBin on May 31, 2006, 07:42:00 AM
For "built in" blocks like user block yes you can. I'm sure you can the others but I don't know how. :)

If you open up TPortalBlocks.template.php you will see all the predefined blocks there. You should be able to change each title to a link if you want. I'll have to look deeper to see exactly how, but I think that is how you would do it.
Title: Re: Link in Block Titels
Post by: Chodhry on May 31, 2006, 07:43:31 AM
Oh I see,

one more question.

Do we have a seperate file for each block even custom block or may be piece of code added to a file for each custom block we make?