Skip to content

Commit

Permalink
Added outputs for the user (not just profile)
Browse files Browse the repository at this point in the history
  • Loading branch information
cykod committed Oct 8, 2010
1 parent 2d4884d commit 223ec97
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ class UserProfile::PageController < ParagraphController

editor_header 'User Profile Paragraphs'

editor_for :display_profile, :name => "Display Profile", :feature => :user_profile_page_display_profile, :inputs => { :user_profile => [ [:url, 'User URL', :path]] }, :outputs => [ [ :profile_content, "Profile Entry",:target], [ :profile_myself, "Viewing Own Profile", :target] ]
editor_for :display_profile, :name => "Display Profile", :feature => :user_profile_page_display_profile, :inputs => { :user_profile => [ [:url, 'User URL', :path]] }, :outputs => [ [ :profile_content, "Profile Entry",:target], [ :profile_myself, "Viewing Own Profile", :target], [ :user, 'User Target',:target ], [:user_content, 'User Content', :content ]]

editor_for :list_profiles, :name => 'List Profiles', :feature => :user_profile_page_list_profiles

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,8 @@ def display_profile
set_title(result.full_name,"profile")
set_page_connection(:profile_content, @user_profile)
set_page_connection(:profile_myself, is_myself ? @user_profile : nil)
set_page_connection(:user_target, @user_profile.end_user )
set_page_connection(:user_content, [ "EndUser", @user_profile.end_user_id ])
set_content_node(@user_profile)
end

Expand Down

0 comments on commit 223ec97

Please sign in to comment.