by

Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
    Joris Ros
    @jorisros
    @manuakasam was already afraid of that :), you can create a event listener that listen to pimcore.admin.document.get.preSendData that is fired before it send to the interface. There you can build logic 'If field in data is empty' add the default value to data[field]
    3 replies
    Manuel St.
    @manuakasam
    A simple solution. Love it :-* I'll have to dig into those events soon anyways. Also have to figure out how to validate those frontend inputs. Right now its still all "please use it as intended" :joy: Thanks Joris
    Aaron
    @aarongerig
    @manuakasam You should also be able to do:
    {% set my_input = pimcore_input('my_input') %}
    {% if editmode and my_input.isEmpty() %}
      {% do my_input.setDataFromResource('Some default value') %}
    {% endif %}
    Joris Ros
    @jorisros
    @aarongerig didnt know that, looks awesome.
    Manuel St.
    @manuakasam

    Yeah I've tested this, same as setDataFromEditmode(). If I'm not mistaken it sets the data "invisibly" somehow on the object, unknown to the rest of the editor.

    Basically I have an input that acts as some sort of ID. Think <input id="foo"> and <label for="foo"> only that "foo" is the value of pimcore_input(). Using setDataFromResource() the value isn't set (but would probably be set once i hit save())

    If interested, this is how i'm currently handling it: https://gist.github.com/manuakasam/b0b3269d7616db317c181ea6fa4b2e18
    Manuel St.
    @manuakasam
    I'm hooking into pimcore.admin.document.get.preSendData with the intention to set some default values for editables. I access them via $event->getArgument('document')->getEditables(). This works fine as long as the document has been published once. However the editables are an empty array if I create a new page and only SAVE the document. Is there any way to edit the editables without publishing the document once?
    Chris Jung
    @campino2k
    Is there any way to get the the used AreaBrick from an AreaBlock?
    Marcos Lois Bermúdez
    @securez
    Hi, I have some product with variantes, this variants have a unique SKU, but when I try to find them no result where found, products without variants are found without problems. I'm using PimcoreRepository to find the dataobjects: $repo->findOneBy(['sku' => 'TM-C0001-M'])
    Marcos Lois Bermúdez
    @securez
    I can search the variants using the List object and setting ObjetTypes to both object and variante, but can't change the object types that PimcoreRepository is using for this DataObject, :/
    Joris Ros
    @jorisros
    @securez on what table is the PimcoreRepository looking?
    Marcos Lois Bermúdez
    @securez
    I'm using CoreShopProduct as DataObject, I have some products with variants, I see in PimcoreRepository that findBy get a Listing object via $this->getList() this seem to get a fresh new instance that only search objects and folders, Using the Listing object directly i can search tehn after changing ObjectTypes to include variants, but can't find a way to query this variants via repository
    ThaDaVos
    @ThaDaVos
    Is there any way to filter on nested objects using Datahubs GraphQL?
    We want to filter on metadata (as we cannot find tags, we're going to put them into the metadata)
    vineeth
    @vineeth5_twitter
    Hi Guys,
    Shall I can show the children Grid items with different color variants with separate links like shown in the demo site ? For example i have got a dress material which has got different colors, so colors will be given as children grid, Is it possible to show those on different pages ?
    Marcus Haase
    @HaaseIT
    Hello again. May be a noob question, but how can I get an element in a document by the context? eg.:
    {
      "scope": "documentEditor",
      "containerType": "document",
      "documentId": 1,
      "fieldname": "mainContent:2.subLeft:1.image"
    }
    I want to get the element properties in a controller
    Karthik
    @karthikw3cert
    Aaron
    @aarongerig
    @karthikw3cert You can read the URL from the current request.
    $urlPath = $request->getPathInfo(); // without query params or hashes
    $completeUri = $request->getRequestUri(); // with query params and/or hashes
    Karthik
    @karthikw3cert
    @aarongerig I got Call to a member function getRequestUri() Error
    Ole L.
    @lootboy_gitlab
    @HaaseIT Do you askabout client side access, or do you want to access elements of an document on the server side?
    Marcus Haase
    @HaaseIT
    Serverside
    inside of a controller
    I was hoping to find something in Pimcore\Model\Element\Service but there is no method for getting elements by context either
    Ole L.
    @lootboy_gitlab
    @HaaseIT : $this->document->getElement('name-of-the-element')
    Marcus Haase
    @HaaseIT
    Thanks, but not in the template.
    also, I dont have the name of the element. just the context, as posted above
    Ole L.
    @lootboy_gitlab
    @HaaseIT sorry, maybe I misunderstood your statement:
    "I want to get the element properties in a controller"
    Marcus Haase
    @HaaseIT
    The controller, I want this in is: vendor/pimcore/pimcore/bundles/AdminBundle/Controller/Searchadmin/SearchController.php
    which I will override with my own controller, right now, I am fiddling and debugging in the vendor folder :/
    Ole L.
    @lootboy_gitlab
    @HaaseIT Good luck. :-)
    Marcus Haase
    @HaaseIT
    Thanks, I am almost there now.
    tfarmer00
    @tfarmer00
    is there an active directory (Azure AD) plugin for Pimcore?
    Joris Ros
    @jorisros
    @tfarmer00, i know that Youwe has one (I builded it for them) but unfortunately it isnt opensource. But you can contacted them if you want a license.
    Judyta
    @judip
    Does anyone have idea how change filtering text fields in grid view from case sensitive to case insensitive? Is it possible?
    Karthik
    @karthikw3cert
    How to get the Current URL in Pimcore controller (pimcore 5.7 )
    Aaron
    @aarongerig
    @karthikw3cert Like I‘ve shown you above. Make sure you inject the request into your action.
    use Symfony/HttpFoundation/Request;
    
    public function myControllerAction(Request $request) { ... }
    Julie Bodart
    @Kimjuri_gitlab
    Hello ! Does anyone know if it's possible to filter by tag on objects in grid view ? (to export in csv afterwards)
    Marcus Haase
    @HaaseIT
    Another day, another question: How do I override a js file, like this one: vendor/pimcore/pimcore/bundles/AdminBundle/Resources/public/js/pimcore/element/selector/asset.js
    Marcus Haase
    @HaaseIT
    Actually, it's pretty easy, just add the getJsPaths() method to your bundle, add the js file to override to your bundles public folder, clear cache and it works.
    Dennis Pfahlbusch
    @dpfahlbusch_gitlab
    hey @all has someone a good idea to pass pimcore_editables to a vue app?
    Dominik
    @dpfaffenbauer
    data-hub
    brainium
    @brainium
    Is Pimcore PaaS already available? Where can i find the pricing?
    Dominik
    @dpfaffenbauer
    that will be part of the enterprise subscription
    no public pricing available for that.
    not even sure if partners know the pricing already
    brainium
    @brainium
    Thanks @dpfaffenbauer
    Tortoise
    @jstortoise
    Is there any way to compress images in Pimcore?
    Aaron
    @aarongerig
    @jstortoise look for image thumbnails in the docs.