diff --git a/vendor/modules/user_profile/app/controllers/user_profile/page_controller.rb b/vendor/modules/user_profile/app/controllers/user_profile/page_controller.rb index 6fe10309..00f26058 100644 --- a/vendor/modules/user_profile/app/controllers/user_profile/page_controller.rb +++ b/vendor/modules/user_profile/app/controllers/user_profile/page_controller.rb @@ -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 diff --git a/vendor/modules/user_profile/app/controllers/user_profile/page_renderer.rb b/vendor/modules/user_profile/app/controllers/user_profile/page_renderer.rb index 25e02a70..367cd964 100644 --- a/vendor/modules/user_profile/app/controllers/user_profile/page_renderer.rb +++ b/vendor/modules/user_profile/app/controllers/user_profile/page_renderer.rb @@ -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