Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
    Nicola Zambello
    @nzambello
    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
    Juan Carlos Coruña
    @oggers
    Hi, I'm just starting with volto and React (have used angular) and I'm trying to do a view component with pagination/batching. I use useSelector inside my function component in order to get the children objects with a search, but as I must implement batching I switched to a class component and then all crashed: react hooks can only be used inside function components. I have search through internet and there seems not to be a easy solution. Can anyone point me in the right direction? Should I stay with function component ? If so, how can I implement helper methods for batching? Any examples?
    Westley Argentum Hennigh-Palermo
    @westleyargentum_gitlab

    Hey all, apologies if this isn't the right place to ask but:

    I'm working on an existing Plone 5 site which has been developed over many years and I'm trying to put together a picture of what migrating the frontend from classic to Volto would look like. Has anything been written or have there been any talks on the process?

    Tiberiu Ichim
    @tiberiuichim

    For the switch from Gitter to Discord: the chat support page on plone.org is now updated and the plone.org top navigation bar has been adjusted to include a link to the Plone Discord

    https://discord.gg/zFY3EBbjaj