Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bug: Standardwerte (default) für Attribute lassen sich über die dcaconfig nicht vorbelegen #954

Closed
zonky2 opened this issue Jan 12, 2016 · 14 comments
Assignees
Labels
backend This seems to be a bug in the backend bug A bug! A bug! Fast, squish it! DC_General This ticket originated from or is directly related to DCG question We have a question, please elaborate on the ticket.
Milestone

Comments

@zonky2
Copy link
Contributor

zonky2 commented Jan 12, 2016

Standardwerte für die Dateneingabe im BE können aktuell nicht über die /system/config/dcaconfig.php per
$GLOBALS['TL_DCA']['mm_mein-mm']['fields']['mein-attributname']['default'] = "Meine Vorgabe";
nicht vorgegeben werden - sollte aber so funktionieren...

Offensichtlich wird die Datei nicht korrekt ausgewertet oder zu spät.

siehe auch
#224
https://community.contao.org/de/showthread.php?42326-Standardwert-setzen&p=332326&viewfull=1#post332326
https://community.contao.org/de/showthread.php?52330-attribute_timestamp-automatisch-belegen-gel%F6st&p=338363#post338363

@zonky2 zonky2 added bug A bug! A bug! Fast, squish it! backend This seems to be a bug in the backend labels Jan 12, 2016
@zonky2 zonky2 added this to the 2.0.0 milestone Jan 12, 2016
@asaage
Copy link

asaage commented Jan 27, 2016

Ich frag mich gerade, ob es überhaupt möglich ist, mittels dcaconfig.php irgendwas metamodelliges zu beinflussen und verknüpfe das mal mit #967

@stefanheimes
Copy link
Member

Should be solved with contao-community-alliance/dc-general@3be9c7e.

Should be available with the new version of the DCG 2.0.0-beta34.

@stefanheimes stefanheimes added the DC_General This ticket originated from or is directly related to DCG label Feb 9, 2016
@stefanheimes stefanheimes removed this from the 2.0.0 milestone Feb 9, 2016
@zonky2
Copy link
Contributor Author

zonky2 commented Feb 10, 2016

@asaage kannst Du das mal testen?

@asaage
Copy link

asaage commented Feb 10, 2016

Frühestens zum Monatsende - sorry.

@discordier discordier added the testing This ticket is reported to be fixed by a developer and should be tested. label Feb 10, 2016
@discordier discordier added this to the 2.0.0 milestone Feb 10, 2016
@zonky2
Copy link
Contributor Author

zonky2 commented Feb 10, 2016

Test:
dcaconfig.php:

<?php

// Put your custom configuration here

$GLOBALS['TL_DCA']['mm_mitarbeiterliste']['fields']['email']['default'] = "hier@home.de";
$GLOBALS['TL_DCA']['mm_mitarbeiterliste']['fields']['abteilung']['default'] = "einkauf";

=>

shot95

Attribute Text und Select getestet - spanend wäre noch Tags und die übersetzten Attribute

@stefanheimes stefanheimes self-assigned this Feb 10, 2016
@stefanheimes
Copy link
Member

Für das neue Select muss die ID als String angegeben werden dann geht das auch.

@zonky2
Copy link
Contributor Author

zonky2 commented Feb 11, 2016

  • bei Tags mit IDs im Array => Fehlermeldung:
Fatal error: Uncaught exception ContaoCommunityAlliance\DcGeneral\Exception\DcGeneralInvalidPropertyValueException with message Property abteilung_tags (tags) did not accept the value (The values differ. Array element count mismatch. Found 0, expected 2.). thrown in C:\Contao2Go\htdocs\vhosts\contao-3.5.x\composer\vendor\metamodels\core\src\MetaModels\DcGeneral\Data\Model.php on line 177
  • wie mache ich bei übersetzten Attributen eine Unterscheidung der Sprache in der Eingabemaske (nicht "Contao-Global-BE")?

@MiniModel
Copy link
Member

This issue has been labeled with "testing" but got no feedback.

We are reliant on feedback to prove a ticket fixed as we can not tell if the ticket has been
resolved if we receive no feedback.
I will close this ticket now, as I assume it has been resolved.
If the ticket should still be valid, please feel free to reopen it.

@xantippe could you please have a final look at this and tell if your issue has been resolved?

@zonky2
Copy link
Contributor Author

zonky2 commented Feb 14, 2016

kann man @Teetrinker nicht mal "raus werfen" - mit den ständigen Auto-Antworten ist das nervig!

@zonky2 zonky2 reopened this Feb 14, 2016
@zonky2 zonky2 added question We have a question, please elaborate on the ticket. and removed testing This ticket is reported to be fixed by a developer and should be tested. labels Feb 14, 2016
@discordier
Copy link
Member

Koennen wir nicht. Zumindest nicht ohne ihn komplett von allen unseren repos auszuschliessen

@Teetrinker
Copy link

Sorry Leute, bin in den Ferien...
on a sidenote: Gibt es denn keinen Weg Auto-Antworten und Git-Hub-Abos zu vereinen? (Ich werde wohl kaum der einzige Github-User sein, der mal in die Ferien geht?) Bin dankbar für Tips...

@discordier
Copy link
Member

Das musst du deinen autoresponder fragen. Normalerweise sollte man da eine Blacklist eintragen koennen.
Der Sinn der autoresponder erschliesst sich mir jedoch allgemein nicht, oder schicken deine Kollegen bei Briefpost auch eine Antwort raus, dass du gerade nicht da bist und daher der Brief aktuell nicht bearbeitet wird? ;)

@Teetrinker
Copy link

Mein Anbieter bietet leider keine Möglichkeit zum Nicht-Versand des Autoresponders an bestimmte Adressen.

Sinn und Zweck? Kunden erwarten Antwort auf eine E-Mai innert 1-2 Tagen, man möchte aber mal für 1-2 Wochen offline sein können - diese Lücke füllt der Autoresponder.

Ich werde mal schauen ob ich meine Github-Mails auf eine andere Adresse leiten kann.

@zonky2
Copy link
Contributor Author

zonky2 commented May 19, 2016

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backend This seems to be a bug in the backend bug A bug! A bug! Fast, squish it! DC_General This ticket originated from or is directly related to DCG question We have a question, please elaborate on the ticket.
Projects
None yet
Development

No branches or pull requests

6 participants