Vincent,
You have to get SiteController to pass the info into your model,
that's the only way to get the data into a tag AFAIK. So you have to
write an extension for SiteController that adds the function of
passing the current_user's info into your model (e.g. pass in the
user_id). Then you have to either add the ability to receive the
current_user info into Page or into another type of Page like a
UserAuthPage...
Basically I mean something like this... (this code is just for
illustrative purposes and not necessarily the best way to accomplish
this... )
http://pastie.org/261093
-C
On 27-Aug-08, at 3:30 AM, Vincent Pérès wrote:
Hello,
The javascript way was my last solution. It could be interessant...
Christopher Dwan, I don't follow what you mean by create ovveriding a
method to add the current_user?
Is there an other way to access to the current_user var when I'm
creating radius tags?
Thanks a lot !
Vincent
--
Posted via http://www.ruby-forum.com/.
_______________________________________________
Radiant mailing list
Post: [email protected]
Search: http://radiantcms.org/mailing-list/search/
Site: http://lists.radiantcms.org/mailman/listinfo/radiant
_______________________________________________
Radiant mailing list
Post: [email protected]
Search: http://radiantcms.org/mailing-list/search/
Site: http://lists.radiantcms.org/mailman/listinfo/radiant