Bill,
I've installed Advanced Help, studied the documentation for Arg in Views, and experimented with both Arg and Attachment. I still haven't been able to make any progress.
I think that what you suggest may misconceive what I'm trying to do. It looks like your procedure would produce a list of entries in "Joe's Blog" and another page listing the entries in "Sue's Blog."
What I want is one page that lists all blogs on the site:
Joe's Blog
Sue's Blog,
etc.
I have produced that in Views. What I can't seem to manage is a way to include links to those titles that would take me to the top level of each--the equivalent of
<a href = "/blog/joe">Joe's blog</a>
<a href = "/blog/sue">Sue's blog</a>
I have available the variable $account_blog_url (from Profile) to supply the url, and as a workaround I have managed to replace the normal Drupal link from user-picture to "user/$uid" with a link to "blog/$uid" in template_preprocess_user_picture. That is a clunky sort of workaround, though--requiring that I instruct the user, "Click on the picture to go to the blog." There is no template_preprocess_user_blogname, which is a customized field I introduced into the Profile. If there were, a simple Drupal linking at the preprocess level would seem to be the thing to do. A programmer would probably know how to do such a thing, but I don't. And I simply can't conceive of how to do it in Views.
So, I guess I need more guidance if you have time and energy to provide it.
Thanks in advance,
Steve
On Jul 21, 2008, at 12:40 PM, Bill Fitzgerald wrote:
Hello, Steve,
First, I'd like to echo what Shai said -- ask away, as we have all been
there.
Second, re your specific situation, would it work to filter your blog
based on username?
If so, create a Views argument that filters based on username -- and,
you can specify the title of the page with the argument setting -- and,
you could set a header for the entire view.
Ping back if this is insufficient detail --
Cheers,
Bill
Steve Hays wrote:
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
--
Bill Fitzgerald
http://funnymonkey.comFunnyMonkey -- Tools for Teachers
ph. 503 897 7160
--
[ Drupal support list | http://lists.drupal.org/ ]