|
List Info
Thread: Re: Creating a View inside each UserNode showing that user's content
|
|
| Re: Creating a View inside each
UserNode showing that user's content |
  United States |
2007-04-07 20:53:55 |
I got it working, but I only have a couple minutes so I'll
do a quick
explain and more detail tomorrow if you need it.
Make sure the tracker view is enabled. Create a file
node-usernode.tpl.php
and copy the normal node.tpl.php into it. Then add this
bit:
<?php
$usernodeuser = usernode_get_user($node);
$view = views_get_view('tracker');
print views_build_view('embed', $view,
array($usernodeuser->uid), false,
false);
?>
If that doesn't make sense, I'll write up more specifically
tomorrow. Gotta
take care of my son now.
Michelle
On 4/7/2007 4:32:03 PM, Neil: esl-lounge.com (neil esl-lounge.com) wrote:
> I am using CCK and UserNode and would like to insert a
View showing all
> blog posts and forum posts by that user.
>
> I got Insert View module which allows me to insert
views inside CCK fields
> but it's just passing the default values and I don't
know how to show
> "current user's content"
--
[ Drupal support list | http://lists.drupal.org/
]
|
|
| User privileges and site admin |
  United States |
2007-04-08 19:14:50 |
On some Drupal 4.7 sites, I have a user role called
"site admin."
This user role has several privileges, including
"administer users"
and "administer nodes."
A test user with the "site admin" role can edit
some pages created by
user 1, but not others. I am going to stop creating pages
when
logged in as user 1, but I am trying to understand how
privileges are
assigned, and can't figure out why some pages are editable
and others
are not.
Andrew
--
[ Drupal support list | http://lists.drupal.org/
]
|
|
| Re: User privileges and site admin |

|
2007-04-08 19:44:56 |
Does that role have permission to use all input filters? If
you have access
to edit a given node type but not to use the input filter
type that node
uses, you can't edit the page.
On Sunday 08 April 2007 7:14 pm, Andrew Cohill wrote:
> On some Drupal 4.7 sites, I have a user role called
"site admin."
> This user role has several privileges, including
"administer users"
> and "administer nodes."
>
> A test user with the "site admin" role can
edit some pages created by
> user 1, but not others. I am going to stop creating
pages when
> logged in as user 1, but I am trying to understand how
privileges are
> assigned, and can't figure out why some pages are
editable and others
> are not.
>
> Andrew
--
Larry Garfield AIM: LOLG42
larry garfieldtech.com ICQ: 6817012
"If nature has made any one thing less susceptible than
all others of
exclusive property, it is the action of the thinking power
called an idea,
which an individual may exclusively possess as long as he
keeps it to
himself; but the moment it is divulged, it forces itself
into the possession
of every one, and the receiver cannot dispossess himself of
it." -- Thomas
Jefferson
--
[ Drupal support list | http://lists.drupal.org/
]
|
|
| Re: User privileges and site admin |
  United States |
2007-04-09 14:37:56 |
On Apr 8, 2007, at 8:44 PM, Larry Garfield wrote:
> Does that role have permission to use all input
filters? If you
> have access
> to edit a given node type but not to use the input
filter type that
> node
> uses, you can't edit the page.
That was it. Thank you very much; I could not figure out
what was
going on.
Andrew
>
> On Sunday 08 April 2007 7:14 pm, Andrew Cohill wrote:
>> On some Drupal 4.7 sites, I have a user role called
"site admin."
>> This user role has several privileges, including
"administer users"
>> and "administer nodes."
>>
>> A test user with the "site admin" role
can edit some pages created by
>> user 1, but not others. I am going to stop
creating pages when
>> logged in as user 1, but I am trying to understand
how privileges are
>> assigned, and can't figure out why some pages are
editable and others
>> are not.
>>
>> Andrew
-------------------------------------------------
Andrew Michael Cohill, Ph.D.
President
Design Nine, Inc.
Design Nine provides visionary broadband architecture and
engineering
services, telecommunications and broadband master planning,
and
broadband project management.
Visit the Technology Futures blog for frequently updated
news and
commentary on technology issues.
http://www.designnine
.com/news/
http://www.designnine.com/
Blacksburg, Virginia
Voice: 540.951.4400
--
[ Drupal support list | http://lists.drupal.org/
]
|
|
[1-4]
|
|
|
about | contact Other archives ( Real Estate discussion Medical topics )
|