Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • Alessandro 31 posts 152 karma points
    Aug 27, 2020 @ 18:02
    Alessandro
    1

    Can't display content app in Members tab

    I'm trying to develop a content app to download a csv with the info of registered members of my website. I created a simple manifest with these properties:

    {
    // define the content apps you want to create
    "contentApps": [
      {
        "name": "Log Users", // required - the name that appears under the icon
        "alias": "logUsers", // required - unique alias for your app
        "weight": 0, // optional, default is 0, use values between -99 and +99 to appear between the existing Content (-100) and Info (100) apps
        "icon": "icon-calculator", // required - the icon to use
        "view": "~/App_Plugins/logUsers/logUsers.html", // required - the location of the view file
        "show": [
          "-content/*", // hide for all contents
          "-media/*", // hide for all media
          "+member/*" // show for all members
        ]
      }
    ],
    // array of files we want to inject into the application on app_start
    "javascript": [
        "~/App_Plugins/WordCounter/logUsers.controller.js"
    ]}
    

    However, the new tab does not display anywhere nor in the members page, neither in the member detail page. If I change the -content to +content the app display correctly in content pages.

    What am I doing wrong?

  • Petras Surna 90 posts 144 karma points
    Jan 21, 2021 @ 09:31
    Petras Surna
    0

    I would love to know too, I have the exact same issue. You will see the content app when you click on a Member, but not when you view all Members.

    I use this code and it appears on an individual Member:

    {
        // define the content apps you want to create
        "contentApps": [
        {
            "name": "Export Members", // required - the name that appears under the icon
            "alias": "exportMembers", // required - unique alias for your app
            "weight": 0, // optional, default is 0, use values between -99 and +99 to appear between the existing Content (-100) and Info (100) apps
            "icon": "icon-paper-plane", // required - the icon to use
            "view": "~/App_Plugins/ExportMembers/exportmembers.html", // required - the location of the view file
    
            "show": [
                "-content/*", // hide for content type 'homePage'
                "+member/*", // show for all other Member types
                "+members/*", // show for all other Member types
            ]
        }
        ],
    
        // array of files we want to inject into the application on app_start
        "javascript": [
            "~/App_Plugins/ExportMembers/exportmembers.controller.js"
        ]
    }
    

    Warning: be sure to hard refresh to see it. If unsure, close down Visual Studio and and hard reload on startup.

  • Petras Surna 90 posts 144 karma points
    Jan 21, 2021 @ 23:34
    Petras Surna
    0

    I have just implemented this with a Custom Dashboard. See https://our.umbraco.com/documentation/extending/dashboards/

    This is the way to go, a content app is not appropriate for a Members Export

  • Alessandro 31 posts 152 karma points
    Apr 28, 2021 @ 16:38
    Alessandro
    0

    Thanks for your answer, In the end I used a content app, but created a custom content to display it. Your solution is better though, thanks

Please Sign in or register to post replies

Write your reply to:

Draft