metamodels / attribute_longtext Goto Github PK
View Code? Open in Web Editor NEWThe longtext attribute
License: GNU Lesser General Public License v3.0
The longtext attribute
License: GNU Lesser General Public License v3.0
Hello,
I got the following error when trying to get from list view to detail view of an item:
Fatal error: Uncaught exception Exception with message Could not find template file "mm_attr_longtext.text" thrown in /Applications/MAMP/htdocs/contao2117/system/modules/metamodels/MetaModelTemplate.php on line 238
So, I checked within the module "metamodelsattribute_longtext" if there is a directory "templates". Nope. So, I checked with you source files and there is none as well.
Since the other modules have all their templates I copied the files from there, renamed the files accordingly and modified the only code line within mm_attr_longtext.html5 as follows:
value; ?>
Since this small modification everything works again.
.check-author.yml
or check this.github/
templates - see example but ensure to update the links in the files!.gittattributes
file (see MetaModels/core#846)minimum-stability
from composer.json
and add "metamodels/core": "~2.0@alpha"
and "contao-community-alliance/dc-general": "~2.0@beta"
LICENSE
file is present! (see https://github.com/MetaModels/core/blob/master/LICENSE)README.md
! (look at first rows https://raw.githubusercontent.com/MetaModels/core/master/README.md)Hallo,
bei den Templates ist kein xhtml-Template vorhanden.
Vielleicht könnte das noch zugefügt werden. Es reicht wohl aus, ein html5-Template zu kopieren und in .xhtml umzubenennen.
VG und danke
André
Definiert man in den Eingabemasken für das Langtext-Feld eine individuelle Zeilenanzahl, dann wird diese durch das Contao-CSS "überschrieben":
.tl_textarea {
width: 680px;
height: 240px;
}
Vielleicht wäre es sinnvoller statt die Höhe in Zeilen, in Pixeln/CSS zu definieren.
Prepare a simple MetaModel with multi language support, but only one language defined:
title [text]
alias [alias]
type [text]
abc [longtext]
info [translatedlongtext]
Create a palette entry and go there to enter data.
The generated form contains all attributes but the longtext.
Im Backend wird der Tiny-Editor nicht geladen.
Versionsinfo: Contao 3.3.5
Name Version Last modification
==================================================================================================
http://bit3.de
bit3/contao-meta-palettes 1.8.1 2014-09-02 11:21:15
--------------------------------------------------------------------------------------------------
http://c-c-a.org/
contao-community-alliance/backports-initialize-system dev-develop @ 0d0515 2014-06-05 11:58:46
contao-community-alliance/composer-plugin dev-master @ 0bc66a 2014-07-22 21:27:29
contao-community-alliance/dc-general dev-develop @ 6312da 2014-09-24 22:53:54
contao-community-alliance/dependency-container dev-develop @ 7fa301 2014-06-05 08:30:58
contao-community-alliance/event-dispatcher dev-develop @ 61fabc 2014-06-05 08:36:18
contao-community-alliance/events-contao-bindings dev-contao-2.11 @ db3c0e 2014-08-25 12:53:38
contao-community-alliance/translator dev-develop @ 02feca 2014-06-05 08:57:37
--------------------------------------------------------------------------------------------------
https://www.cyberspectrum.de
discordier/justtextwidgets 0.5.4 2014-02-05 22:52:54
--------------------------------------------------------------------------------------------------
http://www.leo-unglaub.net
leounglaub/contao-simple-ajax 1.0.2 2014-02-07 22:35:55
--------------------------------------------------------------------------------------------------
http://www.men-at-work.de
menatwork/contao-multicolumnwizard dev-dev @ 5c5b45 2014-07-08 12:15:01
--------------------------------------------------------------------------------------------------
http://now.metamodel.me/
metamodels/attribute_alias dev-tng @ 87f434 2014-09-02 04:14:25
metamodels/attribute_checkbox dev-tng @ 57a327 2014-09-02 05:46:18
metamodels/attribute_combinedvalues dev-tng @ f91d7f 2014-08-27 19:01:55
metamodels/attribute_country dev-tng @ 19d6a0 2014-08-27 18:55:58
metamodels/attribute_decimal dev-tng @ eb93c8 2014-08-27 18:56:31
metamodels/attribute_file dev-tng @ e8e894 2014-09-15 22:59:44
metamodels/attribute_langcode dev-tng @ ed132d 2014-08-27 19:03:27
metamodels/attribute_longtext dev-tng @ 14dd23 2014-08-27 18:55:33
metamodels/attribute_numeric dev-tng @ c7b4ad 2014-08-27 18:55:47
metamodels/attribute_rating dev-tng @ f4fb46 2014-08-27 19:01:41
metamodels/attribute_select dev-tng @ 4f46fc 2014-09-03 21:11:58
metamodels/attribute_tabletext dev-tng @ 17b438 2014-08-27 18:56:07
metamodels/attribute_tags dev-tng @ 5dcdb7 2014-09-25 12:59:46
metamodels/attribute_text dev-tng @ 61386e 2014-08-29 10:03:14
metamodels/attribute_timestamp dev-tng @ ffa96f 2014-08-27 18:56:44
metamodels/attribute_translatedalias dev-tng @ e90002 2014-08-27 19:01:06
metamodels/attribute_translatedcheckbox dev-tng @ f0d25c 2014-08-27 19:01:34
metamodels/attribute_translatedcombinedvalues dev-tng @ 1ff312 2014-08-27 19:02:53
metamodels/attribute_translatedfile dev-tng @ d176bd 2014-08-19 10:59:05
metamodels/attribute_translatedlongtext dev-tng @ aa9951 2014-08-27 19:02:35
metamodels/attribute_translatedselect dev-tng @ b7c341 2014-08-14 02:16:24
metamodels/attribute_translatedtabletext dev-tng @ 5645df 2014-08-28 14:58:37
metamodels/attribute_translatedtags dev-tng @ 4adf60 2014-09-09 18:46:13
metamodels/attribute_translatedtext dev-tng @ e5fbc0 2014-08-27 19:02:14
metamodels/attribute_url dev-tng @ 1c4aa7 2014-08-27 18:56:39
metamodels/bundle_all dev-master @ f58927 2013-10-01 20:03:31
metamodels/bundle_attributes dev-master @ 058e26 2014-02-03 14:19:34
metamodels/bundle_filter dev-master @ 45d9cf 2013-05-03 07:16:44
metamodels/bundle_nontranslated dev-master @ 5f2b3f 2014-02-17 14:37:26
metamodels/bundle_translated dev-master @ 4bc0c1 2014-02-17 14:34:39
metamodels/core dev-tng @ 8b9f9d 2014-09-24 22:49:14
metamodels/filter_checkbox dev-tng @ 508564 2014-08-22 15:10:01
metamodels/filter_fromto dev-tng @ 999404 2014-08-14 12:02:45
metamodels/filter_range dev-tng @ bf0103 2014-08-14 02:16:24
metamodels/filter_select dev-tng @ 6c6d63 2014-08-14 02:16:24
metamodels/filter_tags dev-tng @ 01aa6d 2014-08-14 02:16:26
metamodels/filter_text dev-tng @ 8458a3 2014-08-14 02:16:25
--------------------------------------------------------------------------------------------------
http://pimple.sensiolabs.org
pimple/pimple 1.1.x-dev @ bc2fc1 2014-04-20 07:24:09
--------------------------------------------------------------------------------------------------
http://symfony.com
symfony/event-dispatcher dev-master @ bf5369 2014-09-22 11:59:59
--------------------------------------------------------------------------------------------------
other
contao-community-alliance/url-builder dev-develop @ 5f8997 2014-09-20 03:38:06
Fehlermeldung im Firebug:
ReferenceError: tinyMCE is not defined
main.ph...e6bffa7 (Zeile 194)
Error: Syntax error, unrecognized expression: #
tinymce...ages=de (Zeile 2, Spalte 19667)
I confirm that:
(Please fill in the actual values from your environment)
Key | Value | Comments |
---|---|---|
PHP version: | 5.x - 7.0.x | |
Contao version: | 3.5x.x | |
MetaModels version: | Current | |
Installation via composer | (yes/no) | Yes |
Installed MetaModels packages | all |
PHP Deprecated notice: Attribute type longtext should implement method unserializeData() and serializeData(). in composer/vendor/metamodels/core/src/MetaModels/MetaModel.php on line 461
#0 [internal function]: __error(16384, 'Attribute type ...', '/var/www/kunden...', 461, Array)
#1 composer/vendor/metamodels/core/src/MetaModels/MetaModel.php(461): trigger_error('Attribute type ...', 16384)
#2 composer/vendor/metamodels/core/src/MetaModels/MetaModel.php(690): MetaModels\MetaModel->getItemsWithId(Array, Array)
#3 system/modules/dms/src/DMS/Contao/Cron/MailListSend.php(101): MetaModels\MetaModel->findByFilter(Object(MetaModels\Filter\Filter))
#4 system/modules/dms/src/DMS/Contao/Cron/MailListSend.php(73): DMS\Contao\Cron\MailListSend->loadData()
#5 mail.php(42): DMS\Contao\Cron\MailListSend->sendMail()
#6 {main}
Create a longtext attribute in a MetaModels and open the Edit-Mask.
Writes a warning into the log.
No Error :)
Copied the templates from attribute_langcode and renamed them (also class in .html5) to avoid crash when attrbute should be displayed.
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.