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

Elementgenerator-Elemente sind nicht als Inhaltselement oder Modul auswählbar #10

Closed
tobaco opened this issue Dec 13, 2012 · 7 comments

Comments

@tobaco
Copy link

tobaco commented Dec 13, 2012

Hallo,

ich habe die aktuelle Version hier von GitHub in einem Contao 3.0.1 installiert, im Elementgenerator ein neues Element erstellt und darin 2 Felder angelegt. Die Checkboxen für Inhaltelement und Modul sind gesetzt.

Ich kann dieses Element jedoch leider nicht bei der Artikelbefüllung als Inhaltselement auswählen.

@JanoschSkuplik
Copy link
Contributor

Das Problem kann ich leider nicht nachstellen. Ich bekomme die neuen Elemente auch in 3.0.1 nach dem Anlegen als Inhaltselement angezeigt. Wurde evtl. die localconfig.php anschließend noch einmal komplett modifiziert?

@tobaco
Copy link
Author

tobaco commented Dec 13, 2012

Nein, da habe ich nichts verändert.
Ich habe auch schon sämtliche Erweiterungen, außer den Elementgenerator, deaktiviert, aber das brachte auch keine Besserung.
An welcher Stelle kann ich denn am besten mit der Nachforschung anfangen?

@JanoschSkuplik
Copy link
Contributor

Am besten folgende Reihenfolge:

  1. Error-Log von Contao ansehen.
  2. localgonfig.php von Contao öffnen. In dieser sollten Einträge in der Art $GLOBALS['TL_CONFIG']['dma_eg_content'] und/oder $GLOBALS['TL_CONFIG']['dma_eg_modules'] vorhanden sein.
  3. noch mal antworten...

@tobaco
Copy link
Author

tobaco commented Dec 13, 2012

  1. Im Error-Log steht leider nichts.
  2. Die localconfig.php hat diese neuen Einträge
$GLOBALS['TL_CONFIG']['dma_eg_content'] = 'a:1:{s:17:"Spezielle Inhalte";a:1:{i:0;s:1:"1";}}';
$GLOBALS['TL_CONFIG']['dma_eg_modules'] = 'a:0:{}';

Wenn ich den Debug-Modus anschalte, dann sehe ich auch, dass die entsprechenden Datenbanktabellen abgefragt werden, wenn ich eine neues Inhaltselement erstellen will:

[5] => Array
            (
                [query] => SELECT id,title FROM tl_dma_eg WHERE `content` = '1'
                [explain] => Array
                    (
                        [id] => 1
                        [select_type] => SIMPLE
                        [table] => tl_dma_eg
                        [type] => system
                        [possible_keys] => 
                        [key] => 
                        [key_len] => 
                        [ref] => 
                        [rows] => 1
                        [Extra] => 
                    )

                [returned] => 1 row(s) returned
            )

        [6] => Array
            (
                [query] => SELECT * FROM tl_dma_eg_fields WHERE pid='1' ORDER BY sorting
                [explain] => Array
                    (
                        [id] => 1
                        [select_type] => SIMPLE
                        [table] => tl_dma_eg_fields
                        [type] => ref
                        [possible_keys] => pid
                        [key] => pid
                        [key_len] => 4
                        [ref] => const
                        [rows] => 1
                        [Extra] => Using where; Using filesort
                    )

                [returned] => 2 row(s) returned
            )

@JanoschSkuplik
Copy link
Contributor

Ok, Problem gefunden. Es scheint noch nicht zu funktionieren eigene Kategorien anzulegen. Funktioniert es beispielsweise mit der Kategorie „texts“?

@tobaco
Copy link
Author

tobaco commented Dec 13, 2012

nein, leider auch nicht …

@tobaco
Copy link
Author

tobaco commented Jan 7, 2013

Irgendwie funktioniert es jetzt. Auch mit eigenen Kategorien.
Ich kann aber nicht genau sagen, warum. Ich hatte versucht etwas zu debuggen und auf ein mal war das Element als Content-Element auswählbar …

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants