Hello,
I overrided the process_page as you advised me, and tried to recover the
current_user by tag.locals.page.
Finally I get the follwing error :
Error : 'tag : wrong number of arguments (0 to 1)'
Here :
module MembersTags
include Radiant::Taggable
current_user = tag.locals.page.current_front_user
tag "current_user", :for => current_user
tag "if_current_user" do |tag|
if current_user
tag.expand
end
end
tag "unless_current_user" do |tag|
unless current_user
tag.expand
end
end
end
Can you explain me what is missing?
Thank you very much !
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