Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
    Giulia Ghisini
    @giuliaghisini
    thank's! it works!
    Zoltan Szabo
    @zotya
    great
    Nicola Zambello
    @nzambello
    thank you @zotya
    Mike Metcalfe
    @mikejmets
    I asked about transifex access on the volto slack channel yesterday but no response so I thought I'd try here. Am I correct in following the International section of the volto dev docs and if so how do I gain access to the transifex project I require when running 'tx init'?
    Asko Soukka
    @datakurre
    Would you know, is it possible to "build" Volto server so that running it would not require node_modules?
    13 replies
    Tiberiu Ichim
    @tiberiuichim
    @datakurre I've tried running Volto without node_modules at one point but I didn't get too far. Would be nice if you could get this to work
    As far as I remember, there's babel stuff that's not bundled , or something like that
    there's also the fact that Volto doesn't have proper devDependencies separation
    Asko Soukka
    @datakurre
    What's the correct way to configure time zones with Plone and Volto to get the right behavior? https://github.com/plone/volto/issues/1923#issuecomment-713392670
    1 reply
    Katja Süss
    @ksuess
    @iflaming Hi Alok, I heard rumors your interested in walking through the training Plone 6, that's great. We write and deploy regularly on https://rohberg.github.io/training-plone/mastering-plone/index.html until available on training.plone.org.
    Your feedback is more than welcome!
    Asko Soukka
    @datakurre
    Should add-ons support localization in some magic way or does it depend on add-ons or is it still missing?
    What is the correct way to customize add-on block -configuration? Is there a public doc / example available? (Could not find yet.)
    Alin Voinea
    @avoinea
    @datakurre The block is registered to the global Volto ~config
    Thus, you can override parts of it within the next add-on or the volto project
    Andrea Cecchi
    @cekk
    Hi, i have some questions about how do you deploy in production Volto: do you use pm2? With a single Volto process or clustered? Any other thing to check? Someone tried to stress a Volto site with “some” concurrent calls?
    Katja Süss
    @ksuess
    Hi, how can I scroll after a history.push()? Or is it maybe better to override the ScrollToTop component?
    the following has no effect:
    useEffect(() => {
    console.log('useEffect [pathname, querystring]', pathname, querystring);
    if (querystring.length > 0) {
    window.scrollTo(0, 300);
    }
    }, [pathname, querystring]);
    Nicola Zambello
    @nzambello
    I think you can use the useHistory hook with a effect as you wrote
    Katja Süss
    @ksuess
    custom icons, custom component, import icon from '~/icons/back.svg', <Icon name ={importedIcon} is fine.
    what about using icons in overridden component like Header? the ~does not seem to resolve to my app package.
    import searchSVG from '~/icons/search.svg';
    should this read @package/ or ?
    Tiberiu Ichim
    @tiberiuichim
    @ksuess import searchSVG from '~/icons/search.svg'; should work fine as long as icons is a folder in src
    Make sure that you use "icons" as folder name for the icons folder, the webpack svg loader looks for that name, so you'll have issues with the imported resource otherwise (I've had a colleague hit this problem two days ago)
    Katja Süss
    @ksuess
    Folder name is in root and named 'icons'. <Icon name ={importedIcon} is ok in custom component, but not in /customizations. Will look in to it next days.
    Katja Süss
    @ksuess
    ages later...
    import Icon component from Volto, not Semantic-UI
    import { Icon } from '@plone/volto/components';
    Katja Süss
    @ksuess
    Hi! For bookmarking I need to enrich the toolbar with an 'add bookmark' and a 'show bookmark' action. Adding a button with
    <Portal
    node={CLIENT && document.querySelector('#toolbar .toolbar-bottom')}
    is easy. But I am struggling how to add a button for opening a menu with bookmarks.
    Current situation is, that the toolbar component holds the menues in its state not via app store.
    So, difficult to attack the state of the component..
    Tiberiu Ichim
    @tiberiuichim
    Hi @ksuess For what is worth, I'm working right now on refactoring the toolbar and make everything pluggable. I hope to have the PR ready tonight, but this week seems like the most plausible time to get that thing landed in some form in Volto
    Katja Süss
    @ksuess
    @tiberiuichim, three hero points from me for that! ;-)
    Tiberiu Ichim
    @tiberiuichim
    @ksuess The PR is ready, give it a look plone/volto#2177 (and a review)
    Katja Süss
    @ksuess
    @tiberiuichim, thanks for the ping.
    I'm aware of your work on this and appreciate. About to at least leave a comment.
    Katja Süss
    @ksuess
    Best practice question: The /contents view does not show the correct bookmarks (component ContentsBookmarks) because I eliminated the Bookmarks component which updates the store with bookmarks data according the path. So what's the best practice: Leave the Bookmarks component and hide via CSS does not feel good.
    Tiberiu Ichim
    @tiberiuichim
    I'd leave the Bookmarks component but "return null" in its render if there's no bookmark data
    Katja Süss
    @ksuess
    that seems to be better, yes. i started with
    const Breadcrumbs = () => null;
    export default Breadcrumbs;
    but it's necessary to leave the lifecycle methods intact to update the store with the breadcrumbs data for /contents
    return_zeroo
    @return_zeroo:matrix.org
    [m]
    Hello!! I'm pretty new to both Plone and Volto, so my question might sound a bit odd, but I'd like to know if there's a way to access Volto's theme files from the Site Setup Configuration area like in Plone's Theme Settings or if the only way to read and edit those files is to access Volto's installation folder directly.
    Tiberiu Ichim
    @tiberiuichim
    @return_zeroo:matrix.org sorry, no other way (right now) except volto installation folder
    2 replies
    Everton Zanella Alvarenga
    @everton137

    Hello, everybody! Here's Everton (or just Tom), who returned to develop in Plone after a couple of years. I'm trying out Volto and I am not being able to connect it with my Plone instance. I receive the message when accessing the frontend http://localhost:8080/OC The backend is responding, but the CORS headers are not configured properly and the browser has denied the access to the backend resources.. I've tried to add this on my buildout:

    zcml-additional =
      <configure xmlns="http://namespaces.zope.org/zope"
                 xmlns:plone="http://namespaces.plone.org/plone">
      <plone:CORSPolicy
        allow_origin="http://localhost:3000,http://127.0.0.1:3000"
        allow_methods="DELETE,GET,OPTIONS,PATCH,POST,PUT"
        allow_credentials="true"
        expose_headers="Content-Length,X-My-Header"
        allow_headers="Accept,Authorization,Content-Type,X-Custom-Header,Origin"
        max_age="3600"
        />
      </configure>

    based on this buildout of the Volto hands on traning. Any idea what it could be? thank you!

    Alin Voinea
    @avoinea
    @everton137 is your Plone instance called OC? If so, you'll have to tell Volto that you're not using the default backend at http://localhost:8080/Plone
    Thus, start volto with RAZZLE_API_PATH=http://localhost:8080/OC RAZZLE_INTERNAL_API_PATH=http://localhost:8080/OC yarn start
    Everton Zanella Alvarenga
    @everton137
    @avoinea thank you for the answer. I managed to make it work, but defining the variable RAZZLE_DEV_PROXY_API_PATH=http://localhost:8080/OC. When I tried the variable you mentioned and that I also found in the documentation, RAZZLE_API_PATH, it didn't work for me.
    By the way, what's the best place to chat about Volto and Plone? I was recommended to use discord, which seems a bit more active them here in the last days. And I could see your answer now when the gitter app opened by mistake.
    Alin Voinea
    @avoinea
    :) The best one is https://community.plone.org/
    Then gitter
    then plone.slack.com #volto
    Everton Zanella Alvarenga
    @everton137
    haha, okay! I am not in the slack channel, I will join it later
    I found the solution that worked for me above on community.plone.org, actually