by

Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
    frintezadev
    @frintezadev
    How can I get more details please ? :(
    ryanwebdev
    @ryanwebdev
    @nicklassandell @dpfaffenbauer thank you for the reply.
    Khairi Husseini
    @khusseini

    hey everyone. I am doing some custom queries on the tags_assignment table. specifically I want to execute the folllowing query:
    $tagIds = $db->fetchCol('SELECT tagid FROM tags_assignment WHERE cid IN (?) AND ctype = ?', [$ids, 'object']);

    Where $ids = [4239,3049];
    I can view the query in the symfony toolbar and when I execute it in a mysql console I get the correct tagIds, however when I run the query like I do in the line above, I get some, maybe cached value for each call (meaning a set of tags totally unrelated to the two given Ids.

    Khairi Husseini
    @khusseini
    If I replace the query with the IDs already imploded like so $tagIds = $db->fetchCol('SELECT tagid FROM tags_assignment WHERE cid IN (4329,3049) AND ctype = ?', ['object']);
    I always get the correct values. Seems like the caching mechanism doesn't check for the parameters (when they are arrays?).
    MekaKurg
    @MekaKurg
    Hello, I get this error: Call to undefined method getItems in class Pimcore\Model\DataObject\Localizedfield. But the function is listed in the documentation. Is it a bug ?
    rpicheta
    @rpicheta
    @MekaKurg have you checked this class in your vendor dir? I've checked it and there is no method in it
    MekaKurg
    @MekaKurg
    Yes, the function is no more there. In 5.4 at least, it was.
    Lennart Fries
    @Cruiser13
    @kubaplas we implemented 3D product views in some of our projects. Basically we're adding an asset folder as relation to our product object class. The asset folder contains all assets used for the 360 presentation. Sample implementation in frontend can be seen here: https://www.mastertec.eu/en/product/00070450 (animation)
    Kuba Płaskonka
    @kubaplas
    @Cruiser13 thanks for the info! Using folder - makes sense. Did you implement preview in the backend? Do you mark somehow the folder?
    Lennart Fries
    @Cruiser13
    @kubaplas if we have a preview we are using the iframe because we're implementing it in the product class. The folder is not marked in a special way but attached to the product by a 1:1 relation (href)
    If I'd use this in an editable I'd probably implement it similar to https://github.com/pimcore/demo/blob/master/app/Resources/views/Areas/gallery-folder/view.html.twig
    JustMe69
    @JustMe69
    Hi All,
    I have a question about selection-lists and translating. My tries with custom OptionsProvider dont seem to work.
    What I want to achieve:
    In BE, a value is selected for a field from a simple selection-list - or could be object-brick as well.
    In FE, also for coreshop-flter, this value should be translated into currently selected language of page - for content and coreshop-filtering.
    What's the best way to do that? I hope hope it is so easy I just dont see it ;)
    I'm using pimcore 6.6.1 and coreshop 2.1
    Kuba Płaskonka
    @kubaplas
    @Cruiser13 thank you!
    manscrober
    @manscrober
    hello there,
    I have a bit of a tricky question - we created a bundle that allows us to add "calculated fields" which call a php class whenever an object is opened. Now we are using grafana in order to chart the data - but since we added a new field to the database, the values are not yet actually persisted. I can see them in the list view, but not in the mariadb database. This is until I open the object individually and save it (I do not need to enter anything since the values are automatically calculated)
    Is there a way to update an entire folder(i.e. somehow open and save all objects inside the folder at once)?
    JustMe69
    @JustMe69

    Hi there,
    additional to my other post, I try to use: https://github.com/dachcom-digital/pimcore-seo
    After enabling, installing it, I followed description Setup
    my settings in config.yml:

        seo:
            meta_data_configuration:
                meta_data_provider:
                    auto_detect_documents: true
                meta_data_integrator:
                    documents:
                        enabled: true
                        hide_pimcore_default_seo_panel: true
                    objects:
                        enabled: true
                        data_classes:
    #                            - MyObject
                            - CoreShopProduct
                    enabled_integrator:
                        -   integrator_name: title_description
                        -   integrator_name: open_graph
                            integrator_config:
                                facebook_image_thumbnail: 'socialThumb'
                        -   integrator_name: twitter_card
                            integrator_config:
                                twitter_image_thumbnail: 'socialThumb'
                        -   integrator_name: schema
                        -   integrator_name: html_tag
            index_provider_configuration:
                enabled_worker:
                    -   worker_name: google_index
                        worker_config:
                            auth_config: app/config/pimcore/google-api-private-key.json # default pimcore: app/config/pimcore/google-api-private-key.json
                pimcore_element_watcher:
                    enabled: true

    The effect - in my products, or in any other object I dont have the seo-icon in admin-menu.
    My pimcore Version: 6.6.1, CoreSHop 2.1 and dachcom-seo: 1.0.1
    What's missing/wrong?

    Dominik
    @dpfaffenbauer
    @solverat
    Daniel Morgner
    @TheMorgner
    Is it possible that they changed the way to restrict public acces? https://pimcore.com/docs/6.x/Development_Documentation/Assets/Restricting_Public_Asset_Access.html The way mentioned in the documentation seems to be old as the htacces file is no longer supposed to do this.
    Stefan Hagspiel
    @solverat
    @JustMe69 this is my working config for a CS installation:
    seo:
        meta_data_configuration:
            meta_data_provider:
                auto_detect_documents: true
            meta_data_integrator:
                documents:
                    enabled: true
                    hide_pimcore_default_seo_panel: true
                objects:
                    enabled: true
                    data_classes:
                        - CoreShopProduct
                        - CoreShopCategory
                enabled_integrator:
                    -   integrator_name: title_description
                    -   integrator_name: open_graph
                        integrator_config:
                            facebook_image_thumbnail: 'socialThumb'
                    -   integrator_name: twitter_card
                        integrator_config:
                            twitter_image_thumbnail: 'socialThumb'
                    -   integrator_name: schema
    make sure the seo-bundle is not only enabled but installed (check in backend bundle list)
    JustMe69
    @JustMe69
    grafik.png
    I tried your config - same result - no icon. As before the default-seo tab is hidden
    JustMe69
    @JustMe69
    grafik.png
    an edit-view of a CoreShopProduct object
    Stefan Hagspiel
    @solverat
    your config is included? :) (you never know)
    JustMe69
    @JustMe69
    Putting an error in app/config/config.yml immediately shows exception ;)
    otherwise - default seo-tab wouldnt be hidden - but it's better to be sure ;)
    Stefan Hagspiel
    @solverat
    assets are installed? (web/bundles/seo)? there is the seo/js/plugin.js::processElement() => you may check "this.configuration"
    JustMe69
    @JustMe69
    looks fine to me
    grafik.png
    I should try remove/reinstall ?
    of whole plugin?
    Stefan Hagspiel
    @solverat
    you should try a console.log(this.configuration) in plugin.js (locally)
    kowalikus
    @kowalikus
    How Can I get DAM frontend plugin?
    JustMe69
    @JustMe69
    @solverat after reinstall, it's working. console.log also prints out the given config.
    Stefan Hagspiel
    @solverat
    Allright! Have fun! :muscle:
    Axel Tietje
    @xlttj

    Hi! I’m currently struggling on how to add additional pimcore editables to a view template based on the current object assigned to a renderlet. Hard to explain :D

    src/AppBundle/Resources/views/Areas/renderlet/view.html.twig contains:

    <h2>Renderlet</h2>
    
    {% set renderlet = pimcore_renderlet('content', {
        "controller" : "renderlet",
        "action" : "default",
        "height" : 200,
        "reload": true
    }) %}
    
    {% if editmode %}
        {{ renderlet|raw }}
    {% endif %}
    
    {# pseudo code: What do I have to do to determine the assigned objects classname or other properties?  #}
    {% if renderlet's data is instance of Pimcore\Model\DataObject\Something %}
      {{ pimcore_input(’some_string') }}
    {% endif %}
    Axel Tietje
    @xlttj
    Ok, forget It… I just found out: {{ renderlet.getO.className }}
    Eran Matis
    @eranmatis_twitter
    Screen Shot 2020-06-04 at 09.44.44.png
    Hi, I'm having a video preview issue.
    I can see that the Pimcore demo site demo.pimcore.fun has the same problem.
    Is this a known issue?
    ryanwebdev
    @ryanwebdev
    Hi, I have many static routes in the Main site, and I don't want the sub site be able to access those static routes, how can I do it?
    I have tried specifying the site ID in static routes to '0', but it didn't do anything.
    image.png
    ryanwebdev
    @ryanwebdev
    Google keep showing the mainsite's content when people search the subsite.
    Lennart Fries
    @Cruiser13
    @eranmatis_twitter should be fixed in pimcore 6.6.5: pimcore/pimcore#6511
    Adam Peterson
    @apeterson29_gitlab
    When do you plan to update to symfony 5?
    Lennart Fries
    @Cruiser13
    @apeterson29_gitlab I think the plan is to use symfony 5 with pimcore 7: pimcore/pimcore#5950
    Adam Peterson
    @apeterson29_gitlab
    @Cruiser13 excellent, thanks
    i've recently discovered pimcore, and currently working down the developer docs, it's mind blowing what it offers
    Adam Peterson
    @apeterson29_gitlab
    the dev docs mentions "We definitely recommend to use a professional backup solution depending on your infrastructure, but sometimes a poor man's backup can be quite handy :)" - what professional backup solutions are there? whole disk backup?
    Tom Hatzer
    @tomhatzer

    Hello everyone!

    Has anyone of you already experienced the following error message when accessing a controllers default action view?

    Unable to find template "layout.html.twig|Standard" in AppBundle:Upcoming:default.html.twig at line 1.

    File: Resources/views/Upcoming/default.html.twig

    {% extends 'layout.html.twig' %}
    
    {% block content %}
        Upcoming content block
    {% endblock %}

    The file Resources/views/layout.html.twig exists and has example content with a content block inside:

    <!DOCTYPE html>
    <html lang="en">
    <head>
        <meta charset="UTF-8">
        <title>Example</title>
        <link rel="stylesheet" type="text/css" href="/static/css/global.css" />
    </head>
    <body>
    <div id="site">
        {% block content %}
        {% endblock %}
    </div>
    </body>
    </html>

    This happens every time I try to extend the layout.html.twigfile in a controller action view.

    Tom Hatzer
    @tomhatzer
    image.png
    For reference, this is the content of my AppBundle
    Tom Hatzer
    @tomhatzer
    Ok nevermind... The Resources/views folder belongs inside the app folder and not inside the AppBundle folder. Now it works.