by

Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Activity
    ukdavo
    @ukdavo

    Hi all. Just trying out aca for first time. Getting an error on trying "npm install".

    > alfresco-content-app@1.12.0 postinstall D:\code\fbd\aca\alfresco-content-app
    > ./scripts/postinstall.sh
    
    '.' is not recognized as an internal or external command,
    operable program or batch file.

    Version info, etc:

    git clone https://github.com/Alfresco/alfresco-content-app.git
    
    node --version
    v12.18.1
    
    ng --version
    
    Your global Angular CLI version (10.0.0) is greater than your local
    version (7.3.9). The local Angular CLI version is used.
    
    To disable this warning use "ng config -g cli.warnings.versionMismatch false".
    
    Angular CLI: 7.3.9
    Node: 12.18.1
    OS: win32 x64
    Angular: 7.2.15

    I'm running Win10. Any ideas?

    Denys Vuika
    @DenysVuika
    Those are bash scripts, you should be using Git bash command prompt
    All development and testing of the app goes on macOS/linux, so you may come across issues with Windows
    ukdavo
    @ukdavo
    Thanks Denys. I had already tried with the Git Bash shell & got the same error. Looks like I'll either have to get myself a Linux/Mac dev environment or just start with vanilla ADF. :-(
    Denys Vuika
    @DenysVuika
    @ukdavo as a quick workaround, you can remove the "postinstall" command from the "package.json" file. This command updates the e2e testing tools, so probably not needed for you
    ukdavo
    @ukdavo
    Thanks again Denys - that worked. I'll have a play about with ACA now :-)
    Denys Vuika
    @DenysVuika
    Installing Windows 10 VM today to see if that can be unified for the next releases
    oviwon
    @oviwon
    Hi, I just recently started to use ACA and while following the redistribuable library tutorial at docs https://alfresco-content-app.netlify.app/#/extending/redistributable-libraries I have found that routes must use path not ID as it is shown in the tutorial
    imagen.png
    Route Should be "est/my/route"
    is that right ? routes must use path? And if it is so Where should I comment it in order to get tutorial updated?
    Denys Vuika
    @DenysVuika
    Not sure I understand the question. The image shows both path and id properties.
    oviwon
    @oviwon
    on the navBar/item/route the "my.extension.route" have to be changed to "ext/my/route"
    at least is way it worked for me
    Denys Vuika
    @DenysVuika
    might be a regression, should be fetched by id
    oviwon
    @oviwon
    oks thanks
    oviwon
    @oviwon
    Hi. I'm trying to get uploaded file id (I guess it should be the file node id) when I use a upload ADF button to upload a file. However the FileUploadCompleteEvent event.file.id is undefined. Does anybody know how can I get the generated node id value?.
    oviwon
    @oviwon
    I find a solution using upload button (success) event and the event.value.entry.id
    image.png
    digcatcom
    @digcatcom
    great to see some work on this, just wondering if Alfresco/alfresco-content-app#1182 is likely to be addressed soon ?
    BenBrudo
    @BenBrudo
    Hi I tried to use npm link in order to use a custom library in ACA but I have a "public_api.ts is missing from the TypeScript compilation". I can see this file in node_modules/mylib/src/ , VSCode find it and show no error but it seems that ACA build not bring this file during his compilation. I tried many solution and thought this one was the right one :
        "paths": {
          "@alfresco/aca-shared": [
            "projects/aca-shared/src/public-api.ts"
          ],
          "@alfresco/aca-shared/store": [
            "projects/aca-shared/store/src/public-api.ts"
          ],
          "@alfresco/aca-shared/rules": [
            "projects/aca-shared/rules/src/public-api.ts"
          ],
          "@alfresco/adf-office-services-ext": [
            "projects/adf-office-services-ext/src/public-api.ts"
          ],
          "iparapheur-lib": [
            "node_modules/iparapheur-lib/src/public_api.ts"
          ],
          "iparapheur-lib/*": [
            "node_modules/iparapheur-lib/src/*"
          ],
          "@alfresco/aca-testing-shared": ["projects/aca-testing-shared"]
        }
    How can I do ? What is now the good way to include an external library, it seems to have changed since a year ago.
    Denys Vuika
    @DenysVuika
    You don't need path mapping if your library is installed into the node_modules. Typescript automatically probes the modules folder
    There were issues with the compilation of the libraries from what I remember, should be fixed in the upcoming upgrade if they are still present
    BenBrudo
    @BenBrudo
    Ok thanks !
    oviwon
    @oviwon
    image.png
    I afraid, but have a ACA newbe question. I have created my first extension and added some options on navbar. Everything works I can access views associated to each menu item. However when I clik in the second menu item, left side menu where menu items are Left site Nav bar collapse. It does not happen when I click on first menu item. ¿Why is this happening? ¿What did I miss?
    My extension navbar definition is :
    oviwon
    @oviwon
    Already solved, Just a side effect of having "search" as part of my route. My route was "sample/doc/search". anything containg "search" collapssed in ACA.
    Tsigie Kumssa
    @kumssa_tsigie_twitter
    Hello Everyone!
    I am trying to create my first custom project in need help please. Thanks!
    Tsigie Kumssa
    @kumssa_tsigie_twitter
    Hi oviwon! Thanks for sharing those links! By the way, I am a big fan of Ovi and I know him personally.
    Rabah AOUKABA
    @rbkpro
    Hello,
    Is there a way to inspect routing changes in ACA app without changing in the ACA source code
    Like creating a resolver which will inspect all routes and based on that will redirect to another route based on actual route params?
    I don't want to touch ACA source code this way will make upgrade much easier
    Denys Vuika
    @DenysVuika
    In the current release, you can provide child routes for some existing ones from what I know
    Denys Vuika
    @DenysVuika
    We will extend documentation to give more details on that
    Rabah AOUKABA
    @rbkpro
    @DenysVuika thank you for the answer
    But I think it's not what I want to do for me I want to show a custom route (page) when the node visited is a custom type
    From the search view, I want to redirect to another route only if folderIdis a custom type
    Denys Vuika
    @DenysVuika
    @rbkpro ok, just co clarify, you want to do some custom action on the "click" on the search result item, and have some code that decides what to do, like a custom type? can you please raise a github issue with this details, thanks. I think it's possible to have it supported
    Rabah AOUKABA
    @rbkpro
    @DenysVuika
    Yes, that's exactly what I want.
    Sure I will open an issue.
    Thank you!
    oviwon
    @oviwon

    @rbkpro ok, just co clarify, you want to do some custom action on the "click" on the search result item, and have some code that decides what to do, like a custom type? can you please raise a github issue with this details, thanks. I think it's possible to have it supported

    that would be great!

    oviwon
    @oviwon
    I comes with another newbee questions. Supossing I would like to add new actions and its effects and reducers on an extension. What would be the right way to do it? What if I would like to replace some actions effect of an existing aca acction?
    oviwon
    @oviwon

    I comes with another newbee questions. Supossing I would like to add new actions and its effects and reducers on an extension. What would be the right way to do it? What if I would like to replace some actions effect of an existing aca acction?

    not an answer, but something interesting about usgin aca-sahred on an extension library. To make it compile https://hub.alfresco.com/t5/application-development/aca-library-can-t-be-built-with-dependency-to-aca-shared/td-p/299984

    Leonardo Mattioli
    @LeoMattioli_twitter

    I comes with another newbee questions. Supossing I would like to add new actions and its effects and reducers on an extension. What would be the right way to do it? What if I would like to replace some actions effect of an existing aca acction?

    I would suggest to make your separate Angular module and to modify the main module to include your own. Then in your module you can create a feature in the global store and use it for Actions and Effects

    At the beginning I started with this tutorial (for the feature): https://www.intertech.com/ngrx-tutorial-add-state-to-feature-module/
    In that way you modify just one ACA file and future migrations should be easier.
    oviwon
    @oviwon
    Thanks!!!! that a great help :)
    Sanjay Bandhniya
    @SanjayBandhniya
    Hello, Any one is working on alfresco process service?I need help.
    Dylan van den Brink
    @dylanvdbrink

    Hi, since updating to ADW 1.6/ACA 1.12.0 I cannot find the language picker menu and the preferences screen for extensions. For showing the languagePicker I tried to set the following configs in alfresco-content-app/src/app.config.json as well as apps/adw/src/app.config.json:

    "languagePicker": true,
    "languages": [
        {
            "key": "nl",
            "label": "Nederlands"
        },
        {
            "key": "en",
            "label": "English"
        }
    ]

    But the language picker won’t show beneath the profile icon when clicking on it.

    Denys Vuika
    @DenysVuika
    I think it is disabled by default now. You can try going to #/settings and enabling it there
    Dylan van den Brink
    @dylanvdbrink
    Ah okay I see, thanks!