I'm trying to find a way to make a block of user-specific links to go with the profile, such as the old 4.7 customization method in http://drupal.org/node/45627

It'd be to add links to a user's gallery, blog, and other content types, consolidated in a small block of links. I'm sure it's fairly straightforward, at least for somebody who knows what they're doing.

Comments

Bencoon’s picture

Wow, that was remarkably easy. At least, if you use user views based on the uid. Mini panel, one column, custom content, php.

<?php 
print '<a href="'. (arg(1)). '/gallery">Gallery</a><br>'; 
?>

One print line per view.

michelle’s picture

Status: Active » Fixed

Guess you figured it out. :)

Michelle

Anonymous’s picture

Status: Fixed » Closed (fixed)

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

dmetzcher’s picture

This was EXACTLY what I was looking for. I'm using this in a view (in the footer text field). I was looking for a way to create a Content Pane display WITHOUT a page display to go with it (I didn't want to create a second page view of a user's blog posts because there's already a page for that in Drupal)... so...

print '<a href="/blog/'. (arg(1)). '">All blog entries</a><br />';

Thanks for posting the code when you figured it out. It took me a while to find this post, but I had it working two minutes later. :-)