It would be quite useful to have it built into Panels so that along with being able to override the Title, I can also turn into a link. I've already run into a few use cases where I have a minipanel displayed in a panel page showing different sortings of a more general view and I would like the title of this panel to link to it.

Comments

merlinofchaos’s picture

Status: Active » Closed (won't fix)

Panels 2 is no longer available and is unsupported. Marking all Panels 2 issues won't fix.

drifter’s picture

Just a note - this is possible in Panels 3, just enter the title as HTML

<a href="/url/to/page">Panel Title</a>
noomz’s picture

Status: Closed (won't fix) » Needs work

I think that manually enter <a> tag without using l() function is not good. It should has path field to make title as link in the Drupal way.

esmerel’s picture

Status: Needs work » Closed (won't fix)

And again, all Panels 2 issues are not going to be fixed.

anybody’s picture

Version: 6.x-2.0-alpha2 » 7.x-3.x-dev
Issue summary: View changes
Status: Closed (won't fix) » Active

Switching this over to 7.x.3.x-dev, because this feature is still a very useful requirement and I've had lots of cases where this would have helped a lot to solve things cleanly.

So it would be very nice, if this feature request could be discussed.

I think one possible solution would be to add a new "link title" option, which, if enabled, allows to enter a path and title.

Overflowed’s picture

I agree with Anybody...

I was trying to link the title of a "last entries" content-pane to the "full list" of entries, and I can't see how to do it.

So, after a quick google search, I ended in this feature request issue :)

mimodsg’s picture

Status: Active » Fixed
StatusFileSize
new22.36 KB

I included a new field in the panel administration called "Title URL", it will grab the info on that field to create the link, if empty no link will be generated.

Hope it helps!

Cheers

mimodsg’s picture

Assigned: Unassigned » mimodsg
Status: Fixed » Needs review

Sorry, just to update the issue status to needs review

gmclelland’s picture

Status: Needs review » Needs work

@mimodsg - thanks for the patch. I just quickly looked at it and see that it needs some updates. It looks like there is trailing white space and the tab indentions are 4 spaces instead of 2. See https://www.drupal.org/coding-standards

Also, is there another issue for being able to have a custom content pane's title a link as well?

mimodsg’s picture

Status: Needs work » Needs review
StatusFileSize
new3.59 KB

@gmclelland, thanks for the feedback, uploading updated patch with indent corrections, may you take a look at it please.

I could find any other issues for being able to display the panel title as link.

anybody’s picture

+1 for the patch in #10. It works good for me but not for all types of panel panes. For example I have a an exposed filter block which title I would like to link but no title link field appears. (Sidenote: Sadly also blocktitle_link.module does not work.)

anybody’s picture

Status: Needs review » Reviewed & tested by the community

#10 RTBC!

japerry’s picture

Status: Reviewed & tested by the community » Needs work

While its great that there is this feature request, I think having it displayed on all panel pages is a bit much. We now have three things related to the title there.

Also since I've only seen 15 watches on this, I'm not sure having the field so prominent is great. Marking needs work for some type of UI redo.. but if folks wanna use this patch on their own sites, #10 works as it should.

japerry’s picture

StatusFileSize
new3.76 KB

Here is a reroll against head (hash 1432d0c0505926c563cc29ac0effb5a771d0587c). unfortunately it's probably quickly going to go out of date.

Comments in #14 still hold true.

antonyanimator’s picture

Do not use patch against latest panels dev as it didn't work for me

cparkner01’s picture

I think this is pretty important as I would love to be able to have the panel title a URL with just the click of a button, unfortunately I need this for a drupal 8 version so the patch does not apply for me. Anyone know how to achieve panel title links in Drupal 8?