dachcom-digital / pimcore-toolbox Goto Github PK
View Code? Open in Web Editor NEWPimcore - Toolbox
License: Other
Pimcore - Toolbox
License: Other
toolbox:
custom_areas:
myNewBrick:
configElements:
anchorName:
type: input
config:
title: Your Input Title
anchorTitle:
type: input
config:
title: Another Input Title
Hi,
I have just installed your plugin and I get an error:
Fatal error: Class 'MatthiasMullie\Minify\CSS' not found in /home/astilleroslagos/domains/gato.astilleroslagos.es/public_html/plugins/Toolbox/lib/Toolbox/Controller/Minify/Builder.php on line 37
Do I need to install something else?
Many thanks in advance for your help and kind regards from Spain,
Alb
Fatal error: Uncaught Symfony\Component\DependencyInjection\Exception\ParameterNotFoundException: You have requested a non-existent parameter "pimcore_system_config.services.google.browserapikey". You cannot access nested array items, do you want to inject "pimcore_system_config.services" instead? in /var/www/public_html/vendor/symfony/symfony/src/Symfony/Component/DependencyInjection/ParameterBag/ParameterBag.php on line 102
respect JSLint, remove debugging stuff.
All Front-End Files should be transformed into jQuery plugins.
Would you mind adding some nice icons for the bricks provided by Toolbox (in /src/ToolboxBundle/Resources/public/app/[brick]/icon.png)?
Or maybe add a config section to customize the icon paths?
The auto-selected icons are pretty meaningless - it would be nice if they were not just selected randomly. Unfortunately I don't see a proper way to override the icon paths, since Pimcore by default is looking in the Bundle's public path only:
https://github.com/pimcore/pimcore/blob/296d0871ae191e2095256a1fbc9fcbfd32d97a5d/pimcore/lib/Pimcore/Document/Tag/TagHandler.php#L169
Note: allowed
node will ignore all disallowed elements - so only elements defined in this node will show up.
New configuration:
areas_appearance:
accordion:
disallowed:
- image
content:
allowed:
- teaser
snippet_areas_appearance:
accordion:
allowed:
- teaser
- download
when gmaps is set for the first time, it's not possible to add some locations. you need to save it first & reload.
add toolbox-modal-open
class to body as long edit window is open.
lightbox
.Gallery/Type/slickSlider.twig.html
.Hi!
I just tested the toolbox wich provide so many area. I tested most of them. Howww so nice features with many configuration options. You make a hard work on this. Thanks a lot for sharing it.
I got a problem with the paralax one, because it seems to miss the image thumbnaim "parallaxContainerImage" on line 33 ($this->image('parallaxContainerImage')->getThumbnail('parallaxContainerImage')->getWidth();
) of Toolbox\views\scripts\toolbox\parallaxContainer\image.php.
Aside of this, some area seems to have problems:
Google Map doesn't show a map (maybe a Google API Key must be filled in Pimcore?)
After dragging several area i got an error:
Declaration of Pimcore\Model\Document\Tag\Globallink::updatePathFromInternal() should be compatible with Pimcore\Model\Document\Tag\Link::updatePathFromInternal($realPath = false)
…\plugins\Toolbox\lib\Pimcore\Model\Document\Tag\Globallink.php, line 11
And after that i am disconnected from the backend (need to relog with credentials), very strange. Maybe because conflict with other plugins... or Pimcore core bug...
(tested on last Pimcore 4)
Thanks!
If the dachcom-digital/pimcore-members plugin is available, check if asset is restricted: hide or show download-link.
for better naming convention for future additional teaser data (like teaser-grid.php, teaser-foo-bar.php...).
Create Bricks without any custom classes:
services:
app.brick.my_simple_brick:
parent: ToolboxBundle\Document\Areabrick\AbstractAreabrick
tags:
- {
name: toolbox.area.simple_brick,
id: my_simple_brick,
title: 'Simple Brick (Configurable)',
description: 'This is a very simple Brick',
template: 'areas/demo-brick/view.html.twig',
icon: '/bundles/toolbox/areas/content/icon.svg'
}
Add Docs for each Document Editable (How to use / configuration options).
theme: bootstrap-3
)all the i18n stuff should be handled by the i18n bundle.
Because the world is better with gulp, we don't want to add static resources with php by default. :)
toolbox_configuration.php
: enableAssetHandler
(default FALSE
)Hi,
when i create a new custom Bundle and follow your instructions for a new custom brick, my custom Area will not render, becuase i have to put it in /app/Resources/views/Areas/
How is it possible to get it work within /src/Company/testBundle/Resources/views/Areas/?
Any idea would be nice :)
Since we still can't override pimcore5 core document editables, we need to keep this DE in Toolbox2.
toolbox.url.objectFrontendUrl
event gets fired to allow custom routes for objects (Example: path to a news detail page)/en
which contains all the real subpages. A second tree starting with a hardlink en-gb
. Every subpage with "pimcore_globallink" document editables requires a path transformation from en/about-us
to en-gb/about-us
if entering the hardlink context.ToolboxBundle\Tool::parse()
is still a required method. Move document path transformations to a pimcore.frontend.path.document
event listener.pimcore_globallink
DE to something more suitable, likepimcore_powerlink
or pimcore_dynamiclink
? Update readme, if implementation gets approved..pimcore_area_content
, .pimcore_area_columns
, .pimcore_area_image
...action.php
to each element.pimcore_area_content
)in /views/scripts/toolbox/download/list/item.php
rename metaInfos to avoid redundancy (pimcore already adds some metaInfos to images).
instead of name
use title
instead of altText
use alt
"2 Columns (50:50)" in Bootstrap calculator would be:
xs:
sm:
grid
(breakpoints, grid size)Added the require line to composer.json, ran composer update and tried to clear cache. I see the error below:
In AreabrickManager.php line 100:
Areabrick image is already registered as service ToolboxBundle\Document\Areabrick\Image\Image (trying to add service app.area.brick.image)
Pimcore 5.1.1 (kernel: app, env: prod, debug: false)
php 7.1
nginx
Extend accordion element with additional option to switch layout rendering.
also fix remove zend queries.
[ ] Blocker: Migrate Members to pimcore5 first.
According to documentation, this configuration should create two wrappers around my column:
toolbox:
theme:
layout: 'Flex'
wrapper:
columns:
- {tag: 'div', class: 'foundation'}
- {tag: 'div', class: 'row align-stretch'}
But it actually creates 3:
array:2 [▼
"layout" => "Flex"
"wrapper" => array:3 [▼
0 => array:2 [▼
"tag" => "div"
"class" => "row"
]
1 => array:2 [▼
"tag" => "div"
"class" => "foundation"
]
2 => array:2 [▼
"tag" => "div"
"class" => "row align-stretch"
]
]
]
Thats because it merges my array with the default bootstrap3 array.
Hello! I tried the different areas proposed by your toolbox. Some are really great and usefull.
Thanks for sharing it with the community.
I tested them all and get some bugs on the followings. It occurs on the last stable Pimcore.
Google Map
The "Locations" button is not displayed in the editing panel on pimcore. If the googlemap editable is disrectly called from the view it is ok ($this->googlemap(...)), but as area the Location button is not displayed.
Image
There is not drag-and-drop zone for the image... maybe same problem than google, the image tag seems not rendered when called from the area. But strangely I have seen other area you made (like Snippet for instance) and the $this->image work ok.
Slide Columns
They didn't slide. So making 8 of them with 4 visible, only the 4 first are displayed on the backend, and in the frontend, the 4 first are displayed in a row, and the other 4 just below.
It is like the JS isn't triggered, but i checked, i have enabled the layout (as injecting the JS need this) and the static JS file are well just before the closing body tag (and are well loaded with OK 200).
Parallax Container
When adding this area, it try to getWidth() before we have the time to add an image ; ). See here please:
https://github.com/dachcom-digital/pimcore-toolbox/blob/master/views/scripts/toolbox/parallaxContainer/image.php#L33
So actually it could not be used. I forced the width to try it and after this, the image i have added doesn't appear in the frontend (maybe a JS problem too...).
But I have just before the close body tag the required library it seems:
<script type="text/javascript" src="/plugins/Toolbox/static/js/frontend/jquery.parallax-scroll.min.js"></script>
<script type="text/javascript" src="/plugins/Toolbox/static/js/frontend/vimeo-api.min.js"></script>
<script type="text/javascript" src="/plugins/Toolbox/static/js/frontend/toolbox.js"></script>
Documentation
Maybe you could add the following information, this will help next people ; ) :
<script src="https://maps.googleapis.com/maps/api/js?key=YOUR_API_KEY" async defer></script>
)website/var/config/toolbox_configuration.php
Thanks!
Solution:
https://github.com/dachcom-digital/pimcore-toolbox/blob/master/views/areas/teaser/view.php#L4
Use teaserAdditionalClasses
instead of teaserContainerAdditionalClasses
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.