[support] Well, then ... taking advantage of Shai's generosity: adding links to user blognames
Steve Hays
hays at ohio.edu
Mon Jul 21 16:03:13 UTC 2008
Shai,
Many thanks both for your help and your kindness.
Since you urge me not to knock my head against the wall too long,
here's a problem I have probably spent 10 hours on and not produced a
reasonable solution to--just a hacked work-around.
I want my students to be able to develop individual blogs. I have
developed (via Views in Drupal 6.3) a page that lists all Member
Blogs. I have added a blog_name field to the Profiles page, and
obviously I would like that name to be linked to the individual blog.
The blog's default url is (of course) blogs/$uid. I have constructed
a blog_url field in Profile so I can pull it along with the blog_name
in Views.
But that makes for an ugly page display: My_Blog http:// etc.
What I would like, of course is to use the $account_blog_url variable
in an a href statement so the url address is invisible to the user,
but I don't know how to get Views or Profiles to produce such a link.
Any ideas?
Thanks again,
Steve
On Jul 21, 2008, at 11:01 AM, Shai Gluskin wrote:
> Steve,
>
> Do NOT feel stupid. We've all been there and continue to be there in
> many ways.
>
> It's way more efficient in use of the world's resources (which
> includes your brain power) for you to ask and get quick help -- it
> took me three minutes to write that email, than for you to bang your
> head, potentially for hours. People have helped me so many times and
> I'm sure you will help others -- or already have. No knowledge in
> Drupal is "comprehensive" -- you don't have to be a "ninja" or
> anything special to answer a question that you know the answer to.
>
> Regarding your situation. Congratulations on figuring it out.
>
> Indeed, no need to use the Drupal l() function.
>
> Regarding the href-- there are different opinions on this, and
> sometimes it depends on whether you have a multi-site or not. But my
> strong preference for any single installation site is for all href's
> to pages inside the site to be "root relative." All references
> should start with a forward slash after the first quotes. In this
> case I would no need to provide any specific page path since it is
> the default home page. Here is how I would do the href:
>
> <a href="/">
>
> best,
>
> Shai
>
More information about the support
mailing list