Panels 2 - link title to node or view?
aschiwi - January 22, 2008 - 14:36
| Project: | Panels |
| Version: | 5.x-2.0-beta2 |
| Component: | Panel pages |
| Category: | support request |
| Priority: | normal |
| Assigned: | Unassigned |
| Status: | duplicate |
Jump to:
Description
hey,
first of all, panels 2 looks great and is an awesome module...
one thing i havent had any luck in finding though was how i would link the title of a node or view to the node or view. this is kinda obvious and i really need this. details of my setup: i have a panel page with 8 small boxes which output either a tiny view (e.g. last 3 news titles coming from a view or a welcome text coming from a node).
am i missing something or is this feature really not available?

#1
I'm a little confused. View panes and node content panes both contain a "link title to..." checkbox. It's right there, so if you're asking this question I'm concerned you're doing something unexpected and you aren't doing a good job of precisely describing your setup.
#2
Thank you for your reply. I did see the "link title to..." for views. For some reason the view still didnt get linked, which is solved now (no clue why). There is no "link title to..." for nodes though (i'm sure there is if you say there is but i cant see it :-) I have titles linked to the nodes now but i had to use a workaround - i checked the first checkbox (i think it would be called "overwrite title" in english) and left the text field next to it empty AND i checked the checkbox "leave node title". This gives me nodes with titles linked to them. Is this the way it's supposed to work? If so, then i guess my issue is solved. Thanks again for this awesome awesome module, there are so many cool things to do with it!
#3
Ok, I found a page in the handbook that adds a solution: http://drupal.org/node/207381. Adding a node like that gives me the option "link title to". However, my node was linked to mydomain.com/node. I solved this by overwriting the title and wrapping my title in anchor tags with the correct link.
#4
Ahh, perhaps the legacy node system doesn't quite support the link-to-node title thing that got added later. I can probably fix that. Also it appears to be a known bug that the nodes aren't linking correctly; the nid is getting lost. =(
#5
For me i'ts cool that i'm able to wrap the title in anchor tags, that way i can also overwrite the url (as the node url wasnt event the one i wanted to link to) :-)
Anyway, this is awesome, looking forward to the improvements.
#6
Oh, thank god somebody else saw this. I've been pulling my hair out wondering why my title links were going nowhere while the "Add a comment" links for the same nodes worked fine. Being new to Drupal, I thought it was just that I wasn't "getting" something about context and content in panels.
I queried this in the forums but got no takers. Same on IRC.
Thanks for anything you can do to update the module to fix this.
Charlie
#7
Duplicate
You could go into node_content.inc, and correct it yourself in the meantime:
$block->title_link = "node/$nide->nid";should be
$block->title_link = "node/$node->nid";(edit: changed typo in hyperlink)
This issue has been fixed in HEAD by the way
#8
Excellent. Many thanks for pointing out the error. That works a treat.
#9
That fixed it for me too.
#10
Hi,
I have just downloaded the current beta version, but I am not seeing the
"Link title to node"
option on the Node Content popup. It is a cck content type any ideas?
Here are the options I see:
" Enter the title or NID of a post:
To use a NID from the URL, you may use %0, %1, ..., %N to get URL arguments. Or use @0, @1, @2, ..., @N to use arguments passed into the panel.
Override title
You may use %keywords from contexts, as well as %title to contain the original title.
Teaser
Check here to show only the node teaser
Display links
Check here to display the links with the post.
Leave node title
Advanced: if checked, do not touch the node title; this can cause the node title to appear twice unless your theme is aware of this.
Identifier:
Whatever is placed here will appear in $node->panel_identifier to make it easier to theme a node or part of a node as necessary.
CSS ID:
CSS ID to apply to this content. This may be blank.
CSS class:
CSS class to apply to this content. This may be blank.
Access:
anonymous user
authenticated user
Only the checked roles will be able to see this pane; if no roles are checked, access will not be restricted.
Add Pane"
Cheers,
G
#11
Ah I got it, the context pane was not saved after I set the argument. When I did the Link to node title appeared.