PDA

View Full Version : How to add data in extensions



Mirtul
April 26th, 2025, 14:18
Hi

I'm experimenting trying to learn how to create an extension. I'm completely new and clueless to this, so it's a struggle.

I would like my extension to come with some items included. Is that possible, or do I need to use a module for adding data, and an extension for the new functionality separately?

I tried exporting a module with an item, then took the db.xml and renamed it to items.xml and used an includefile that brought it into the extension.
I'm not getting any errors, but I'm also not seeing the items I exported so I assume that either the format is different when an extension or maybe it's not possible to include data at all?

If it is possible, could anyone share a sample of the includecommand for the extension and the format of the xml file containing the items?

Thank you

Trenloe
April 26th, 2025, 18:30
<includefile> is only used for XML GUI/window/control definitions not data. Data is stored in a module. You'll need both an extension and a module.

Mirtul
April 26th, 2025, 21:04
Thank you