You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@roller.apache.org by benjamin servant <be...@hotmail.com> on 2007/04/27 16:33:32 UTC

Data object, template guide

Hi,does anyone knows how to use the data object $user.username described in the roller template guide???I always got the error invalid reference.Thx for your help.
_________________________________________________________________
Essayez Live.com et créez l'Internet qui vous ressemble : infos, sports, météo et bien plus encore !
http://www.live.com/getstarted

Re: Data object, template guide

Posted by mohamed felfel <mo...@gmail.com>.
"So the short answer is, you aren't supposed to use $user.userName"
Nice, :)

On 4/27/07, Allen Gilliland <al...@sun.com> wrote:
>
> The $user object is a legacy variable from earlier versions of Roller
> where the code was much different than it is now and you really should
> not need to use it.
>
> I believe the only current way to get access to a user profile is via a
> weblog entry object which gives you access to it's creators profile,
> like $entry.creater.fullName.
>
> So the short answer is, you aren't supposed to use $user.userName, it's
> old and unsupported in recent versions of Roller.
>
> -- Allen
>
>
> mohamed felfel wrote:
> > i find that a bit confusing too. What are we reffering to? the user
> doing
> > the installation?, and the enviroment variables that we set in the
> > biggining, do we do that at our ~/.bash_profile if we're using bash on
> > unix?
> >
> > On 4/27/07, benjamin servant <be...@hotmail.com> wrote:
> >>
> >> Hi,does anyone knows how to use the data object $user.username
> described
> >> in the roller template guide???I always got the error invalid
> >> reference.Thx for your help.
> >> _________________________________________________________________
> >> Essayez Live.com et créez l'Internet qui vous ressemble : infos,
> sports,
> >> météo et bien plus encore !
> >> http://www.live.com/getstarted
> >
> >
> >
> >
>



-- 
MoZey

Re: Data object, template guide

Posted by Allen Gilliland <al...@sun.com>.
The $user object is a legacy variable from earlier versions of Roller 
where the code was much different than it is now and you really should 
not need to use it.

I believe the only current way to get access to a user profile is via a 
weblog entry object which gives you access to it's creators profile, 
like $entry.creater.fullName.

So the short answer is, you aren't supposed to use $user.userName, it's 
old and unsupported in recent versions of Roller.

-- Allen


mohamed felfel wrote:
> i find that a bit confusing too. What are we reffering to? the user doing
> the installation?, and the enviroment variables that we set in the
> biggining, do we do that at our ~/.bash_profile if we're using bash on 
> unix?
> 
> On 4/27/07, benjamin servant <be...@hotmail.com> wrote:
>>
>> Hi,does anyone knows how to use the data object $user.username described
>> in the roller template guide???I always got the error invalid
>> reference.Thx for your help.
>> _________________________________________________________________
>> Essayez Live.com et créez l'Internet qui vous ressemble : infos, sports,
>> météo et bien plus encore !
>> http://www.live.com/getstarted
> 
> 
> 
> 

Re: Data object, template guide

Posted by mohamed felfel <mo...@gmail.com>.
i find that a bit confusing too. What are we reffering to? the user doing
the installation?, and the enviroment variables that we set in the
biggining, do we do that at our ~/.bash_profile if we're using bash on unix?

On 4/27/07, benjamin servant <be...@hotmail.com> wrote:
>
> Hi,does anyone knows how to use the data object $user.username described
> in the roller template guide???I always got the error invalid
> reference.Thx for your help.
> _________________________________________________________________
> Essayez Live.com et créez l'Internet qui vous ressemble : infos, sports,
> météo et bien plus encore !
> http://www.live.com/getstarted




-- 
MoZey