Cloudron makes it easy to run web apps like WordPress, Nextcloud, GitLab on your server. Find out more or install now.


Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Bookmarks
  • Search
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Brand Logo

Cloudron Forum

Apps | Demo | Docs | Install
  1. Cloudron Forum
  2. Ghost
  3. Editing/translating Portal

Editing/translating Portal

Scheduled Pinned Locked Moved Ghost
25 Posts 6 Posters 1.7k Views 6 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • girishG girish

    @abargel Oh, it started working now after removing the version field.

      "portal": {
        "url": "https://ghost.cloudron.site/portal.min.js"
      }
    

    I edited the email label and placeholder (I had to clear browser cache to get it to show the updated page):

    986767ac-25d5-452e-a275-f9d08efffe6e-image.png

    A Offline
    A Offline
    abargel
    wrote on last edited by abargel
    #10

    @girish said in Editing/translating Portal:

    Wow, that is a nice find! Unfortunately, it doesn't work for me... I still have an unresponsibe "subscribe" button after editing config.production.json

    I have some errors in the console, but not related that I can understand...

    [Exception... "Component returned failure code: 0x80040111 (NS_ERROR_NOT_AVAILABLE) [nsIContentSniffer.getMIMETypeFromContent]"  nsresult: "0x80040111 (NS_ERROR_NOT_AVAILABLE)"  location: "JS frame :: resource:///modules/FaviconLoader.jsm :: onStopRequest :: line 312"  data: no] FaviconLoader.jsm:312:24
    FrameData missing for ncpasswords@mdns.eu page moz-extension://36862037-bf3b-4925-9cb1-71c39839c295/html/popup.html ExtensionPageChild.jsm:457
        initExtensionContext resource://gre/modules/ExtensionPageChild.jsm:457
        initExtensionDocument resource://gre/modules/ExtensionProcessScript.jsm:342
    
    V 1 Reply Last reply
    0
    • A abargel

      @girish said in Editing/translating Portal:

      Wow, that is a nice find! Unfortunately, it doesn't work for me... I still have an unresponsibe "subscribe" button after editing config.production.json

      I have some errors in the console, but not related that I can understand...

      [Exception... "Component returned failure code: 0x80040111 (NS_ERROR_NOT_AVAILABLE) [nsIContentSniffer.getMIMETypeFromContent]"  nsresult: "0x80040111 (NS_ERROR_NOT_AVAILABLE)"  location: "JS frame :: resource:///modules/FaviconLoader.jsm :: onStopRequest :: line 312"  data: no] FaviconLoader.jsm:312:24
      FrameData missing for ncpasswords@mdns.eu page moz-extension://36862037-bf3b-4925-9cb1-71c39839c295/html/popup.html ExtensionPageChild.jsm:457
          initExtensionContext resource://gre/modules/ExtensionPageChild.jsm:457
          initExtensionDocument resource://gre/modules/ExtensionProcessScript.jsm:342
      
      V Offline
      V Offline
      vjvanjungg
      wrote on last edited by
      #11

      @abargel you can read more here: https://forum.ghost.org/t/remove-publish-with-ghost-button-on-portal/20817/8

      i followed the steps , tweaked a bit, running ok on Cloudron

      A 2 Replies Last reply
      3
      • V vjvanjungg

        @abargel you can read more here: https://forum.ghost.org/t/remove-publish-with-ghost-button-on-portal/20817/8

        i followed the steps , tweaked a bit, running ok on Cloudron

        A Offline
        A Offline
        abargel
        wrote on last edited by
        #12

        @vjvanjungg Oh, thank you!! I will try it also and report here.

        1 Reply Last reply
        2
        • V vjvanjungg

          @abargel you can read more here: https://forum.ghost.org/t/remove-publish-with-ghost-button-on-portal/20817/8

          i followed the steps , tweaked a bit, running ok on Cloudron

          A Offline
          A Offline
          abargel
          wrote on last edited by
          #13

          @vjvanjungg I tried following the steps too, but could not manage to have portal.js compiled into assets/built. I am using Casper, so modified the gulpfile as indicated in the post.

          Same as with the previous method, I get an unresponsive "Subscribe" button...

          A 1 Reply Last reply
          0
          • A abargel

            @vjvanjungg I tried following the steps too, but could not manage to have portal.js compiled into assets/built. I am using Casper, so modified the gulpfile as indicated in the post.

            Same as with the previous method, I get an unresponsive "Subscribe" button...

            A Offline
            A Offline
            abargel
            wrote on last edited by
            #14

            Well, after a long night, my update on this is : found a theme with own membership flow (no 👿 Portal 👿 !), can easily localize those files, a lot more work than necessary overall, but moving on! 😉

            Quite disappointed with Ghost support too, who gave a completely irrelevant and unhelpful answer.

            Still have to find how to get confirmation emails and other bits and pieces localized. Shouldnt' this all be easier??

            A jdaviescoatesJ 2 Replies Last reply
            1
            • A abargel

              Well, after a long night, my update on this is : found a theme with own membership flow (no 👿 Portal 👿 !), can easily localize those files, a lot more work than necessary overall, but moving on! 😉

              Quite disappointed with Ghost support too, who gave a completely irrelevant and unhelpful answer.

              Still have to find how to get confirmation emails and other bits and pieces localized. Shouldnt' this all be easier??

              A Offline
              A Offline
              abargel
              wrote on last edited by
              #15

              @girish In order to customize the email templates (after giving up on portal), one would have to access files in /var/www/ghost/versions/3.18.1/core/server/services/members/emails/*, according to this.

              Don't know if that's a stupid question, but is there a way to do that from config.production.json, or another file available from our Cloudron file manager?

              1 Reply Last reply
              1
              • A abargel

                Well, after a long night, my update on this is : found a theme with own membership flow (no 👿 Portal 👿 !), can easily localize those files, a lot more work than necessary overall, but moving on! 😉

                Quite disappointed with Ghost support too, who gave a completely irrelevant and unhelpful answer.

                Still have to find how to get confirmation emails and other bits and pieces localized. Shouldnt' this all be easier??

                jdaviescoatesJ Offline
                jdaviescoatesJ Offline
                jdaviescoates
                wrote on last edited by
                #16

                @abargel said in Editing/translating Portal:

                Shouldnt' this all be easier??

                Yeah, I like the idea of Ghost but it's a pain how hard it is to customise if you're not a coder 😕

                I use Cloudron with Gandi & Hetzner

                A 1 Reply Last reply
                0
                • jdaviescoatesJ jdaviescoates

                  @abargel said in Editing/translating Portal:

                  Shouldnt' this all be easier??

                  Yeah, I like the idea of Ghost but it's a pain how hard it is to customise if you're not a coder 😕

                  A Offline
                  A Offline
                  abargel
                  wrote on last edited by
                  #17

                  @jdaviescoates From making a few websites this summer for my (one-person) business, both on Wordpress and on Ghost, I'm left with the impression that these "open source" publishing tools intentionally leave a lot of essential components to be managed by paying services. Like an implicit paywall, really. I'm using a lot of other self-hosted apps on Cloudron, for various types of use, and even the more complex don't have these restrictions: if you learn how it works, you can do things. With Wordpress and Ghost, I keep learning, and keep finding arbitrary limits to what I can do (except, of course, by buying more services). I would be tempted to dump them if I had the time to learn an entirely new system right now (and would need to be sure that I wouldn't run into the same problem down the line!)

                  A 1 Reply Last reply
                  2
                  • A abargel

                    @jdaviescoates From making a few websites this summer for my (one-person) business, both on Wordpress and on Ghost, I'm left with the impression that these "open source" publishing tools intentionally leave a lot of essential components to be managed by paying services. Like an implicit paywall, really. I'm using a lot of other self-hosted apps on Cloudron, for various types of use, and even the more complex don't have these restrictions: if you learn how it works, you can do things. With Wordpress and Ghost, I keep learning, and keep finding arbitrary limits to what I can do (except, of course, by buying more services). I would be tempted to dump them if I had the time to learn an entirely new system right now (and would need to be sure that I wouldn't run into the same problem down the line!)

                    A Offline
                    A Offline
                    abargel
                    wrote on last edited by
                    #18

                    @abargel Well, after doing my best with Ghost, I'm tempted to learn Grav. Seems like one can customize everything freely? Anything I should be weary of?

                    F 1 Reply Last reply
                    0
                    • A abargel

                      @abargel Well, after doing my best with Ghost, I'm tempted to learn Grav. Seems like one can customize everything freely? Anything I should be weary of?

                      F Offline
                      F Offline
                      frei
                      wrote on last edited by
                      #19

                      @abargel

                      Ghost is far more stable than Grav. It's easier to modify the style using Ghost/Handlebars vs. Grav/PHP/Twig (which was a total mess).

                      Also, if you have any authors who are not you (not technically highly proficient), then they can easily crash your Grav instance --I have yet to crash Ghost. 🤠

                      That's my two cents.

                      robiR F A 3 Replies Last reply
                      0
                      • F frei

                        @abargel

                        Ghost is far more stable than Grav. It's easier to modify the style using Ghost/Handlebars vs. Grav/PHP/Twig (which was a total mess).

                        Also, if you have any authors who are not you (not technically highly proficient), then they can easily crash your Grav instance --I have yet to crash Ghost. 🤠

                        That's my two cents.

                        robiR Offline
                        robiR Offline
                        robi
                        wrote on last edited by
                        #20

                        @frei Something like this?
                        https://whitfin.io/safely-creating-custom-handlebars-helpers/

                        Conscious tech

                        1 Reply Last reply
                        0
                        • F frei

                          @abargel

                          Ghost is far more stable than Grav. It's easier to modify the style using Ghost/Handlebars vs. Grav/PHP/Twig (which was a total mess).

                          Also, if you have any authors who are not you (not technically highly proficient), then they can easily crash your Grav instance --I have yet to crash Ghost. 🤠

                          That's my two cents.

                          F Offline
                          F Offline
                          frei
                          wrote on last edited by frei
                          #21

                          @frei I think you just read my mind . .

                          Trying to figure out the best practices for modifying core templates (eg, content-cta.hbs) without overwriting upon update.


                          Correction:

                          The content-cta.hbs is easily editable --as written directly in Ghost documentation.

                          Simply reference the default template, modify, and copy to the partials folder.

                          F 1 Reply Last reply
                          0
                          • F frei

                            @frei I think you just read my mind . .

                            Trying to figure out the best practices for modifying core templates (eg, content-cta.hbs) without overwriting upon update.


                            Correction:

                            The content-cta.hbs is easily editable --as written directly in Ghost documentation.

                            Simply reference the default template, modify, and copy to the partials folder.

                            F Offline
                            F Offline
                            frei
                            wrote on last edited by
                            #22

                            It seems like the only / best way of modifying core files is adapting the Dockerfile and building a new image, as per the instructions here: https://forum.cloudron.io/topic/3102/building-custom-packages

                            Move the files from origin location to /app/data and replace with symlinks.

                            robiR 1 Reply Last reply
                            0
                            • F frei

                              @abargel

                              Ghost is far more stable than Grav. It's easier to modify the style using Ghost/Handlebars vs. Grav/PHP/Twig (which was a total mess).

                              Also, if you have any authors who are not you (not technically highly proficient), then they can easily crash your Grav instance --I have yet to crash Ghost. 🤠

                              That's my two cents.

                              A Offline
                              A Offline
                              abargel
                              wrote on last edited by
                              #23

                              @frei Thanks for the feedback. On my end, I had a nice time setting up a site with Grav. Easy to edit everything. No paywalls or unchangeable parts in English only. I am a single author/user, but I see a nice set of permissions if I have to create other users with limited abilities to destroy things. Best experience so far amongst WordPress/Ghost/Grav (for someone not "technically highly proficient", just basic).

                              1 Reply Last reply
                              1
                              • F frei

                                It seems like the only / best way of modifying core files is adapting the Dockerfile and building a new image, as per the instructions here: https://forum.cloudron.io/topic/3102/building-custom-packages

                                Move the files from origin location to /app/data and replace with symlinks.

                                robiR Offline
                                robiR Offline
                                robi
                                wrote on last edited by
                                #24

                                @frei said in Editing/translating Portal:

                                It seems like the only / best way of modifying core files is adapting the Dockerfile and building a new image

                                If you specify all the files that need to be modified for this, the Cloudron team can update the App with those files symlinked in /app/data

                                Conscious tech

                                F 1 Reply Last reply
                                0
                                • robiR robi

                                  @frei said in Editing/translating Portal:

                                  It seems like the only / best way of modifying core files is adapting the Dockerfile and building a new image

                                  If you specify all the files that need to be modified for this, the Cloudron team can update the App with those files symlinked in /app/data

                                  F Offline
                                  F Offline
                                  frei
                                  wrote on last edited by
                                  #25

                                  @robi, very cool.

                                  Usually, when I spend enough time getting familiar with the applications, I find that the Cloudron team has already dialed it in.

                                  Will keep this in mind

                                  1 Reply Last reply
                                  0
                                  • A abargel deleted this topic on
                                  • girishG girish restored this topic on
                                  Reply
                                  • Reply as topic
                                  Log in to reply
                                  • Oldest to Newest
                                  • Newest to Oldest
                                  • Most Votes


                                  • Login

                                  • Don't have an account? Register

                                  • Login or register to search.
                                  • First post
                                    Last post
                                  0
                                  • Categories
                                  • Recent
                                  • Tags
                                  • Popular
                                  • Bookmarks
                                  • Search