Blockly Developer Tools Workspace Factory won't export starter.html

312 views
Skip to first unread message

Steffen Köhler

unread,
Dec 6, 2017, 6:10:32 AM12/6/17
to Blockly
Hi

Newbie question: I try to use Blockly with own blocks as a kind of property editor for some special data.

To generate my custom blocks, I used the Blockly Developer Tools, which is working fine so far.

But in the end I tried to export all data via the "Workspace Factory Export" button. 

Then the webpage offers me the files
workspace.js
workspace.xml
and
toolbox.xml

but I miss the starter html code which is promised in the documentation and even in the pull down menu of the "Export"- Button.

Unfortunately I'm not familiar with all the blockly details to write my own surrounding start-up HTML page from scratch ;-|

Do you have any idea what I'm doing wrong?

many thanks in advance
Steffen

Andrew n marshall

unread,
Dec 7, 2017, 7:17:21 PM12/7/17
to Blockly

Hi Steffen,

When you say "Developer Tools", are you referring to this one, mentioned in our official documentation?

Steffen Köhler

unread,
Dec 8, 2017, 3:13:15 AM12/8/17
to Blockly
Hi Andrew

Yes, of course :-) 

In the meantime I managed to assemble a working page out of the different samples, but the question itself remains if the "export" button should also provide some starter html or not? That how I've understood the documentation, but maybe I'm just wrong?

regards
Steffen

Andrew n marshall

unread,
Dec 9, 2017, 9:02:49 AM12/9/17
to blo...@googlegroups.com


We are working on a version that outputs starter HTML and many other features, but I've been distracted by another project for a little bit. Unfortunately, the current version doesn't support this.

--
You received this message because you are subscribed to the Google Groups "Blockly" group.
To unsubscribe from this group and stop receiving emails from it, send an email to blockly+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Steffen Köhler

unread,
Dec 10, 2017, 5:28:45 AM12/10/17
to blo...@googlegroups.com
Hi Andrew,

alright :-) No problem, I was only confused as the docs said something about starter code.

But Blockly and the Developer tools are great stuff -  Thank you and the whole team !

regards
Steffen

--
You received this message because you are subscribed to a topic in the Google Groups "Blockly" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/blockly/5CFFUVbUjNs/unsubscribe.
To unsubscribe from this group and all its topics, send an email to blockly+unsubscribe@googlegroups.com.

Anup Chatterjee

unread,
Aug 28, 2018, 9:17:35 PM8/28/18
to Blockly
Any tips or help on how to generate the starter.html? Sorry I am also new to this and the dev tools is of great help. I am trying to get the editor working with custom blocks.

Thanks,
Anup
To unsubscribe from this group and stop receiving emails from it, send an email to blockly+u...@googlegroups.com.

For more options, visit https://groups.google.com/d/optout.

--
You received this message because you are subscribed to a topic in the Google Groups "Blockly" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/blockly/5CFFUVbUjNs/unsubscribe.
To unsubscribe from this group and all its topics, send an email to blockly+u...@googlegroups.com.

Erik Pasternak

unread,
Aug 29, 2018, 1:49:37 PM8/29/18
to Blockly
If you've designed and saved your custom blocks in the dev tools you can use the Workspace Factory tab to create your starting workspace and export the starter code and workspace blocks. If not, you can export something with similar blocks and then modify the xml to use your blocks.

If you want more of an overview you can read through the relevant parts of the getting started docs or go through the code lab to get step by step setup instructions.

Cheers,
Erik

Anup Chatterjee

unread,
Aug 30, 2018, 1:14:17 AM8/30/18
to Blockly
Thanks Erik, this is helpful.

This is helpful. Is it possible to update the page https://developers.google.com/blockly/guides/create-custom-blocks/blockly-developer-tools to change the last text where it says about starter html. 

Thanks!

Erik Pasternak

unread,
Aug 30, 2018, 2:37:38 PM8/30/18
to Blockly
I think I misunderstand something. What are you suggesting we change the text to? Did you just want it clarified that it only works with blocks that are saved in the Tool?

Anup Chatterjee

unread,
Sep 1, 2018, 2:46:22 AM9/1/18
to Blockly
It is a minor change which might help newbies like me. In the doc text it says this 

"
  • Starter Code: Produces starter html and javascript to inject your customized Blockly workspace.
  • Toolbox produces XML to specify your toolbox.
  • Workspace Blocks produces XML which can be loaded into a workspace.
"
Starter Code doesn't produce the starter html, it only produces the javascript.


Thanks!

Erik Pasternak

unread,
Sep 5, 2018, 12:53:11 PM9/5/18
to Blockly
Ah, got it. Looks like that was something we were working on but didn't get finished. Thanks for pointing it out and we'll take a pass at the docs so we don't confuse others.

Martin Clausen

unread,
Feb 20, 2019, 3:30:20 PM2/20/19
to Blockly
Just so you know, I was just bitten by this.

Given that I have workspace.xml, toolbox.xml and workspace.js, what is then the best way to build a simple page using the workspace?

Beka Westberg

unread,
Feb 20, 2019, 5:38:15 PM2/20/19
to Blockly
Hello,

I think the codelab is generally where they point people, it should walk you through the start up :D

Hope that helps!
Beka

Martin Clausen

unread,
Feb 21, 2019, 12:36:49 AM2/21/19
to blo...@googlegroups.com
Thanks.
Reply all
Reply to author
Forward
0 new messages