Giter Club home page Giter Club logo

Comments (7)

IchHabRecht avatar IchHabRecht commented on May 26, 2024

Hi @MySpace17.

Sorry, but I don't understand your report completely. Can you please describe your steps more detailed? You add a new content element, do you use mask_export again or do you want to use mask itself. Have you cleared caches after editing mask configuration again (see notice in the mask backend)?

from mask_export.

MySpace17 avatar MySpace17 commented on May 26, 2024

Hello @IchHabRecht,

Sure. I have created a few elements with ext:mask - After testing them i did export them to an own extension by ext:mask_export

I have disabled my ext:mask elements, cleared all caches, installed my exported extension and the elements are visible if i click on "add new content element" (typo3 standard page view)

image

But if i click on my element (in this case employee) i got the error above.

from mask_export.

IchHabRecht avatar IchHabRecht commented on May 26, 2024

Hi @MySpace17,

can you have a look if your Configuration/TCA/Overrides/tt_content.php includes the CType registration? Could you provide your mask.json as well as the export?

from mask_export.

MySpace17 avatar MySpace17 commented on May 26, 2024

Hi @IchHabRecht ,

2 of 5 elements aren't listed in the CType registration (also not in the "preview" of mask_export).

{ "tt_content": { "elements": { "testingevent": { "label": "Event", "key": "testingevent", "shortLabel": "", "description": "", "icon": "fa-calendar-o", "color": "#f20033", "columns": [ "tx_mask_testingeventeventtitle", "tx_mask_testingeventlocation", "tx_mask_testingeventstartdate", "tx_mask_testingeventenddate", "tx_mask_testingeventorganisator" ], "labels": [ "Titel der Veranstlatung", "Ort der Veranstaltung", "Start der Veranstaltung", "Ende der Veranstaltung", "Organisator" ] }, "testingportfolio": { "label": "Portfolio", "key": "testingportfolio", "shortLabel": "", "description": "", "icon": "fa-th-list", "color": "#f20033", "columns": [ "tx_mask_testingportfoliorepeater" ], "labels": [ "Repeater" ] }, "testingreference": { "label": "Reference", "key": "testingreference", "shortLabel": "", "description": "", "icon": "fa-th", "color": "#f20033", "columns": [ "tx_mask_testingreferenceimage", "tx_mask_testingreferencehoverimage", "tx_mask_testingreferencehyperlink" ], "labels": [ "Bild", "Bild (Hover)", "Hyperlink" ] }, "testingemployee": { "label": "Employee", "key": "testingemployee", "shortLabel": "", "description": "", "icon": "fa-user", "color": "#f20033", "labels": [ "Vorname", "Nachname", "E-Mail-Adresse", "Unternehmen", "Position", "Bild" ], "columns": [ "tx_mask_testingemployeefirstname", "tx_mask_testingemployeelastname", "tx_mask_testingemployeeemailaddress", "tx_mask_testingemployeecompany", "tx_mask_testingemployeeposition", "tx_mask_testingemployeeimage" ], "hidden": 1 }, "testingtagcloud": { "label": "Tagcloud", "key": "testingtagcloud", "shortLabel": "", "description": "", "icon": "fa-cloud", "color": "#f20033", "labels": [ "Repeater" ], "columns": [ "tx_mask_testingtagcloudrepeater" ], "hidden": 1 } }, "sql": { "tx_mask_testingtagcloudrepeater": { "tt_content": { "tx_mask_testingtagcloudrepeater": "int(11) unsigned DEFAULT '0' NOT NULL" } }, "tx_mask_testingemployeefirstname": { "tt_content": { "tx_mask_testingemployeefirstname": "tinytext" } }, "tx_mask_testingemployeelastname": { "tt_content": { "tx_mask_testingemployeelastname": "tinytext" } }, "tx_mask_testingemployeeemailaddress": { "tt_content": { "tx_mask_testingemployeeemailaddress": "tinytext" } }, "tx_mask_testingemployeecompany": { "tt_content": { "tx_mask_testingemployeecompany": "tinytext" } }, "tx_mask_testingemployeeposition": { "tt_content": { "tx_mask_testingemployeeposition": "tinytext" } }, "tx_mask_testingemployeeimage": { "tt_content": { "tx_mask_testingemployeeimage": "int(11) unsigned DEFAULT '0' NOT NULL" } }, "tx_mask_testingreferenceimage": { "tt_content": { "tx_mask_testingreferenceimage": "int(11) unsigned DEFAULT '0' NOT NULL" } }, "tx_mask_testingreferencehoverimage": { "tt_content": { "tx_mask_testingreferencehoverimage": "int(11) unsigned DEFAULT '0' NOT NULL" } }, "tx_mask_testingreferencehyperlink": { "tt_content": { "tx_mask_testingreferencehyperlink": "tinytext" } }, "tx_mask_testingportfoliorepeater": { "tt_content": { "tx_mask_testingportfoliorepeater": "int(11) unsigned DEFAULT '0' NOT NULL" } }, "tx_mask_testingeventeventtitle": { "tt_content": { "tx_mask_testingeventeventtitle": "tinytext" } }, "tx_mask_testingeventlocation": { "tt_content": { "tx_mask_testingeventlocation": "tinytext" } }, "tx_mask_testingeventstartdate": { "tt_content": { "tx_mask_testingeventstartdate": "date DEFAULT '0000-00-00'" } }, "tx_mask_testingeventenddate": { "tt_content": { "tx_mask_testingeventenddate": "date DEFAULT '0000-00-00'" } }, "tx_mask_testingeventorganisator": { "tt_content": { "tx_mask_testingeventorganisator": "tinytext" } } }, "tca": { "tx_mask_testingtagcloudrepeater": { "config": { "type": "inline", "foreign_table": "--inlinetable--", "foreign_field": "parentid", "foreign_table_field": "parenttable", "foreign_sortby": "sorting", "appearance": { "enabledControls": { "dragdrop": "1" }, "newRecordLinkTitle": "", "levelLinksPosition": "top" }, "minitems": "", "maxitems": "" }, "exclude": "1", "inlineLabel": "", "inlineIcon": "", "l10n_mode": "copy", "key": "testingtagcloudrepeater" }, "tx_mask_testingemployeefirstname": { "config": { "type": "input", "eval": "", "default": "", "placeholder": "", "size": "", "max": "", "is_in": "" }, "exclude": "1", "key": "testingemployeefirstname" }, "tx_mask_testingemployeelastname": { "config": { "type": "input", "eval": "", "default": "", "placeholder": "", "size": "", "max": "", "is_in": "" }, "exclude": "1", "key": "testingemployeelastname" }, "tx_mask_testingemployeeemailaddress": { "config": { "type": "input", "eval": "email", "default": "", "placeholder": "", "size": "", "max": "", "is_in": "" }, "exclude": "1", "key": "testingemployeeemailaddress" }, "tx_mask_testingemployeecompany": { "config": { "type": "input", "eval": "", "default": "", "placeholder": "", "size": "", "max": "", "is_in": "" }, "exclude": "1", "key": "testingemployeecompany" }, "tx_mask_testingemployeeposition": { "config": { "type": "input", "eval": "", "default": "", "placeholder": "", "size": "", "max": "", "is_in": "" }, "exclude": "1", "key": "testingemployeeposition" }, "tx_mask_testingemployeeimage": { "exclude": "1", "options": "file", "l10n_mode": "copy", "config": { "minitems": "", "maxitems": "", "filter": [ { "parameters": { "allowedFileExtensions": "" } } ] }, "key": "testingemployeeimage" }, "tx_mask_testingreferenceimage": { "exclude": "1", "options": "file", "l10n_mode": "copy", "config": { "minitems": "", "maxitems": "", "filter": [ { "parameters": { "allowedFileExtensions": "" } } ] }, "key": "testingreferenceimage" }, "tx_mask_testingreferencehoverimage": { "exclude": "1", "options": "file", "l10n_mode": "copy", "config": { "minitems": "", "maxitems": "", "filter": [ { "parameters": { "allowedFileExtensions": "" } } ] }, "key": "testingreferencehoverimage" }, "tx_mask_testingreferencehyperlink": { "config": { "type": "input", "renderType": "inputLink", "softref": "typolink", "fieldControl": { "linkPopup": { "options": { "title": "Link", "windowOpenParameters": "height=300,width=500,status=0,menubar=0,scrollbars=1", "blindLinkOptions": "" } } }, "wizards": { "link": { "icon": "actions-wizard-link", "params": { "allowedExtensions": "" } } }, "eval": "", "default": "", "placeholder": "", "size": "" }, "exclude": "1", "key": "testingreferencehyperlink" }, "tx_mask_testingportfoliorepeater": { "config": { "type": "inline", "foreign_table": "--inlinetable--", "foreign_field": "parentid", "foreign_table_field": "parenttable", "foreign_sortby": "sorting", "appearance": { "enabledControls": { "dragdrop": "1" }, "newRecordLinkTitle": "", "levelLinksPosition": "top" }, "minitems": "", "maxitems": "" }, "exclude": "1", "inlineLabel": "", "inlineIcon": "", "l10n_mode": "copy", "key": "testingportfoliorepeater" }, "tx_mask_testingeventeventtitle": { "config": { "type": "input", "eval": "", "default": "", "placeholder": "", "size": "", "max": "", "is_in": "" }, "exclude": "1", "key": "testingeventeventtitle" }, "tx_mask_testingeventlocation": { "config": { "type": "input", "eval": "", "default": "", "placeholder": "", "size": "", "max": "", "is_in": "" }, "exclude": "1", "key": "testingeventlocation" }, "tx_mask_testingeventstartdate": { "config": { "type": "input", "dbType": "date", "size": "8", "max": "20", "eval": "date", "default": "", "placeholder": "", "range": { "lower": "", "upper": "" } }, "exclude": "1", "key": "testingeventstartdate" }, "tx_mask_testingeventenddate": { "config": { "type": "input", "dbType": "date", "size": "8", "max": "20", "eval": "date", "default": "", "placeholder": "", "range": { "lower": "", "upper": "" } }, "exclude": "1", "key": "testingeventenddate" }, "tx_mask_testingeventorganisator": { "config": { "type": "select", "renderType": "selectSingle", "size": "", "items": [ [ "[email protected]", "1" ], [ "[email protected]" ], [ "[email protected]" ], [ "[email protected]" ] ], "foreign_table": "fe_users", "foreign_table_where": "AND (usergroup LIKE '1' OR usergroup LIKE '1,%' OR usergroup LIKE '%,1')", "fileFolder": "", "fileFolder_extList": "", "fileFolder_recursions": "", "maxitems": "", "autoSizeMax": "" }, "exclude": "1", "key": "testingeventorganisator" } } }, "tx_mask_testingtagcloudrepeater": { "sql": { "tx_mask_testingtagcloudtag": { "tx_mask_testingtagcloudrepeater": { "tx_mask_testingtagcloudtag": "tinytext" } }, "tx_mask_testingtagcloudhyperlink": { "tx_mask_testingtagcloudrepeater": { "tx_mask_testingtagcloudhyperlink": "tinytext" } } }, "tca": { "tx_mask_testingtagcloudtag": { "config": { "type": "input", "eval": "required", "default": "", "placeholder": "", "size": "", "max": "", "is_in": "" }, "exclude": "1", "inlineParent": "tx_mask_testingtagcloudrepeater", "label": "Tag", "key": "testingtagcloudtag" }, "tx_mask_testingtagcloudhyperlink": { "config": { "type": "input", "renderType": "inputLink", "softref": "typolink", "fieldControl": { "linkPopup": { "options": { "title": "Link", "windowOpenParameters": "height=300,width=500,status=0,menubar=0,scrollbars=1", "blindLinkOptions": "" } } }, "wizards": { "link": { "icon": "actions-wizard-link", "params": { "allowedExtensions": "" } } }, "eval": "", "default": "", "placeholder": "", "size": "" }, "exclude": "1", "inlineParent": "tx_mask_testingtagcloudrepeater", "label": "Hyperlink", "key": "testingtagcloudhyperlink" } } }, "sys_file_reference": { "sql": { "tx_mask_testingemployeeimage": { "sys_file_reference": { "tx_mask_testingemployeeimage": "int(11) unsigned DEFAULT '0' NOT NULL" } }, "tx_mask_testingreferenceimage": { "sys_file_reference": { "tx_mask_testingreferenceimage": "int(11) unsigned DEFAULT '0' NOT NULL" } }, "tx_mask_testingreferencehoverimage": { "sys_file_reference": { "tx_mask_testingreferencehoverimage": "int(11) unsigned DEFAULT '0' NOT NULL" } } } }, "tx_mask_testingportfoliorepeater": { "sql": { "tx_mask_testingportfolioitem": { "tx_mask_testingportfoliorepeater": { "tx_mask_testingportfolioitem": "tinytext" } } }, "tca": { "tx_mask_testingportfolioitem": { "config": { "type": "input", "eval": "", "default": "", "placeholder": "", "size": "", "max": "", "is_in": "" }, "exclude": "1", "inlineParent": "tx_mask_testingportfoliorepeater", "label": "Element", "key": "testingportfolioitem" } } } }

from mask_export.

MySpace17 avatar MySpace17 commented on May 26, 2024

Hi @IchHabRecht
I think i got the problem: If i am disable an element on mask_export

image

the element is (after clearing all caches)also exported but without the CType registration

Is there a way to do a CType registration for this element or exclude the full element (issue #67)

from mask_export.

IchHabRecht avatar IchHabRecht commented on May 26, 2024

Hi @MySpace17,

I think I never noticed there is a possibility to disable an element within mask ;-)

from mask_export.

IchHabRecht avatar IchHabRecht commented on May 26, 2024

Hi @MySpace17,

I finally had the time to exclude hidden content elements from the export. Thanks again for reporting this issue!

from mask_export.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.