By ludo1960 on
Hi guys and gals,
Just wondering, when you go to "my account" the path is mysite.com/user/somenumber, a very boring page indeed!
If I was to make a view and give it an arguement "uid" and give it the path /user would I get in trouble with the Drupal police?
Moving on from that, assuming the police are ok with it, could I then add attachments to that view, say user/pictures etc
I want to use just core and views without mucking about with other contributed modules.
Any thoughts?
Cheers.
Comments
=-=
investigate the way that advanced profiles module handles the profile pages. I don't know that you can do what you want with "only" views and core, unless you are handcoding tpl.php files.
Do you...
.. ever sleep? Maybe handcoding the tpl's is the way to go, just asking first.
=-=
rarely ;)
Plenty of time to sleep when I'm dead, until then I'll live a little sleepy.
lol...
...lets see what others think!
Question is still open, good monday question I thought!
..
Check out this
http://drupal.org/project/advanced_profile
Haven't used it but not boring.
-Steven Peck
---------
Test site, always start with a test site.
Drupal Best Practices Guide
Thought i'd..
..report my findings:
So, had a look at advanced_profile, way too much overheads. Created a view using user_id as arguement and edited the user-profile.tpl.php and added this:
Works a treat!
At the risk of being a help vampire, I tried exposing the view as a block, sure enough it appears in the admin/block page. It doesn't have an id yet (not designated a region for it yet) so any ideas how to print out that block ?
Any ideas?
Hey, you never know this might help other folk out too!
Well well well...
..many ways to skin a cat in Drupal!
1 Create the view (don't expose it to a block)
2 Create a block only visible to the user/* pages
3 Call the view into the block using the above $views code
4 Put the skin back on the cat!
No need to play with the tpl files! Just Core and Views!
Oh man, just gotta love Drupal!
Cheers folks!