TP-Docs
HTML5 Icon HTML5 Icon HTML5 Icon
TP on Social Media

Recent

Welcome to TinyPortal. Please login or sign up.

Members
Stats
  • Total Posts: 196,020
  • Total Topics: 21,332
  • Online today: 1,358
  • Online ever: 8,223 (February 19, 2025, 04:35:35 AM)
Users Online
  • Users: 0
  • Guests: 922
  • Total: 922

Link in Block Titels

Started by Chodhry, May 23, 2006, 12:11:20 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

Chodhry

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

Chodhry

So no one knows how to do this?

Chodhry


G6Cad

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 ;)

Chodhry

#4
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.

IchBin

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.

Chodhry

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?

This website is proudly hosted on Crocweb Cloud Website Hosting.