View Full Version : Products: Writing them
Lionel
11-20-2006, 04:39 PM
Are there any scripts to assist in the making of the xml or you guys painfully do them manually line by line?
Adrian Schneider
11-20-2006, 04:44 PM
You export the product from the product manager - then it downloads it as XML.
Lionel
11-20-2006, 04:47 PM
Yes, I did that, but that does not take care of the queries, the database tables creation
Adrian Schneider
11-20-2006, 04:48 PM
You can be lazy and export them from something like phpMyAdmin.
Lionel
11-20-2006, 04:54 PM
yeah, you still need to manually do the <code version="1.0.0">
- <installcode>
- <![CDATA[ $db->reporterror = 0;
echo "Adding Tables<br /><br />";
$db->query_write("
CREATE TABLE IF NOT EXISTS " . TABLE_PREFIX . "
same for templates
Adrian Schneider
11-20-2006, 05:22 PM
You mean the XML itself, or the PHP? The XML should be 100% generated.
Lionel
11-20-2006, 05:57 PM
the xml is not 100% generated. Queries and templates were not in products export
Adrian Schneider
11-20-2006, 06:01 PM
Create templates in the MASTER STYLE and set the product to your template if you want them to export. If by query, you mean install code, then yes, it is. You can add/edit install/uninstall code in the Edit Product page.
Guest190829
11-20-2006, 06:02 PM
the xml is not 100% generated. Queries and templates were not in products export
Everything is exported into the XML, technically no one should be directly editing the xml file unless they know what you are doing. (Too make quick edits)
Customs templates need to be added in the MASTER style and the product field needs to be selected with the specific product you want the custom template to be associated with.
I'm not sure what you mean by queries?
You add install code via:
Admin CP -> Plugins & Products -> Manage Products -> Edit ->
There are text fields for Install and Uninstall code.
Lionel
11-20-2006, 06:11 PM
Ah, master style. I have been doing them in the main default style.
OK that takes care of that.
All that's left now, are the database table creation.
in Admin CP -> Plugins & Products -> Manage Products -> Add/Import New Project -> is no where to be found in my 3.60. I do have an Add/Import Product that asks me for prduct ID, Title, Version, Description, Product URL and Version check.
I don't see where to add the install code.
Adrian Schneider
11-20-2006, 06:13 PM
It's only under the edit product page (not add).
Lionel
11-20-2006, 06:18 PM
ok, got it, thanks a lot.
vBulletin® v3.8.12 by vBS, Copyright ©2000-2025, vBulletin Solutions Inc.