contao-person's Introduction
contao-person's People
contao-person's Issues
Fatal Error in Contao 4: add image to template if none is selected
Hello,
if you do not select an image for a person, you get an fatal error, caused by the following line:
https://github.com/mindbird/contao-person/blob/master/src/Content/Person.php#L61
You simply have to check, if an image is set:
if ($objPerson->image) {
\Controller::addImageToTemplate($this->Template, $arrData);
}
Cheers
Merge image sizes, custom templates, description field from our fork
Hi @Wusch
as you know we maintain a fork of your extension. Over time we added some features we need in every project. We would like to merge them into your extension to only have on repository to work with.
We would propose the following features:
- Image sizes Let editors decide which image size to use in person elements and modules and use this image size in the default templates
- Templates Add a dropown for a custom element or module template, like it is the default for core elements and modules since 3.3. There actually is PR #2 for that since 2016, which is now outdated obviously ;-) We would rebase our changes onto the new code structure and would resend a PR.
- Add a description field In every project we use this extension, we need a textarea for additional information, e.g. a short CV, personal statement. Adding this field to the core version, would help us enormously.
We think, these features come with no downside, because the default behaviour stays like it is atm.
Love to hear what you think :-)
Best
Benedict
Content Element anlegen
Ein Content Element, welches eine Person ausgibt, anlegen.
Default template in person list module is not selected
If the user does not select a custom person template in person list module, there won't be any output. This is because the fallback or default value is not correctly used.
Will provide a fix with all the other commits in #6
Make person select field in Person content element a Chosen field
Hello,
if you have a large number of persons, the select field in the Person content element can become quite unhandy. It helps a lot if you make it a Chosen field (https://github.com/mindbird/contao-person/blob/master/src/Resources/contao/dca/tl_content.php#L11-L13)
However, it helps even more if you group them by PersonArchive. We did all this here and we would like to refactor this and could then prepare a PR:
https://github.com/presprog/contao-person/blob/develop/contao/dca/tl_content.php#L9-L13
https://github.com/presprog/contao-person/blob/develop/contao/dca/tl_content.php#L34-L59
Tell us what you think :)
Cheers
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. ๐๐๐
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google โค๏ธ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.