I have created a panel page. In a pane i have added an existing node.

Once the node is placed in a pane, i would look like to have the node title as a link.

Is there a setting like in views, where one could choose to have the node title in the pane,
working as a link to the node itself?

Thanks

Comments

Thomasr976’s picture

Have similar need for a list of node titles by category in http://drupal.org/node/571620

esmerel’s picture

Status: Active » Fixed

You can use "Leave node title" (when adding a node, it's in the configuration modal), which will pull the title from the node, and use that as a link. That may bring the node's title in twice though, so you may need to modify your theme to compensate.

Thomasr976’s picture

StatusFileSize
new21.75 KB

That seems to be what is happening (see attachment). How is it that in a block this does not happen, but in a pane i can't get that list. Is there any way around modifying the theme?

mrbangkok25’s picture

Hi,

I am trying to receive the same result but i trying to do it with a new function in template.php:

in the function fourseasons_panels_pane:

i changed :

if (!empty($content->title)) {
      $output .= "<h2 class=\"title\">$content->title</h2>\n";
    }

into

if (!empty($content->title)) {
   $output .= "<h2 class=\"pane-title\">" . l($content->title, "node/$node->nid") . "</h2>\n";

But i cannot get the $node->nid to get the right value, it looks like it is completely ignored
the link i get displayed is www.example.com/node/

i also tried but with the same results

if (!empty($content->title)) {
   $output .= "<h2 class=\"pane-title\">" . l($content->title, "node/$nid") . "</h2>\n";

Can i use the $node->nid from a function in template.php??

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.

ionmedia’s picture

Version: 6.x-3.0-rc1 » 6.x-3.2

please explain how can i CHANGE node tittle in a pane and save link function for it ?

Taz’s picture

Version: 6.x-3.2 » 6.x-3.x-dev
Category: support » task
Status: Closed (fixed) » Active

I too do not see an easy way to do this. Feature request please?

thepocketgeek’s picture

StatusFileSize
new306.64 KB
new255.36 KB

I am having a similar problem. I created a view to pull up a specific page title. I then added that view to a mini-panel. When I do a live preview of the view (see the attached image - safety_view.jpg) the link works just fine. It links to the page correctly. But when I tried to add it to the mini panel (see the other attached image - safety_panel.jpg) the link does not work. I tried using the "add more link" option in addition to "link title to node" and neither work.

Is there more information I can provide to help figure out why this isn't working properly? I get the feeling I missed something simple.

merlinofchaos’s picture

Category: task » feature

#8 is unrelated to this issue. Please file a separate issue.

#6: You want to change a title as well as link to it? That seems a little heavy for a panel pane.

It seems like a checkbox for "Link title to node" makes sense for the existing node content pane. Though setting 'override title' to true and leaving the title blank, then choosing 'leave node title' will have the same effect.

geek-merlin’s picture

merlins workaround works for me:
* set "override title", leave title blank
* set "leave node title"
and one and only one title will be displayed that links to a node

So a minimal fix might be to add explanation to the "leave node title" entry

merlinofchaos’s picture

Status: Active » Fixed

There's already an explanation of 'leave node title', or at least as much of one as we can put in.

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.