Skip to content

test editor - #270

Open
ostat wants to merge 14 commits into
mainfrom
cfpages
Open

test editor#270
ostat wants to merge 14 commits into
mainfrom
cfpages

Conversation

@ostat

@ostat ostat commented Feb 19, 2026

Copy link
Copy Markdown
Owner

No description provided.

@github-actions

github-actions Bot commented Feb 19, 2026

Copy link
Copy Markdown
Contributor

🚀 Preview deployed to https://6333e7eb.gridfinity-extended-5yu.pages.dev

@yawkat

yawkat commented Feb 20, 2026

Copy link
Copy Markdown

Not sure why it doesn't work, maybe the config merging has a bug. I will take a look tomorrow.

Comment thread editor.toml Outdated
[model-template.section-model-detail.tab-metadata."Model detail"]
collapsed = true

[model-template.default]

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Default template needs to be at the top

Comment thread editor.toml Outdated
description-extra-html = "<br><br>For detailed documentation, check the <a href='https://github.com/ostat/gridfinity_extended_openscad'>README</a>.<br><br>"

[model-template.bin]
template = "section-general-bin"

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You can't use multiple templates at a time like this. Each model can only use one template. You can chain templates, so a model uses template 1 and template 1 uses template 2, but you can't combine multiple like this.

I could add that feature, but I'm not sure why you have so many templates here?

@ostat ostat Feb 21, 2026

Copy link
Copy Markdown
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I see that makes sense.

My reasoning was, many of the Gridfinity Extend scripts inherit from a common base, so they have shared sections, but also missing and unique sections. The non shared sections are usually because that script is not compatible with the feature.
So my thought was to have a template for each sections and add them as needed.

As an example.

script sections missing sections from basic
Gridfinity-basic-cup general, subdivision, wallcutout
Gridfinity-sliding-lid general, subdivision, sliding-lid no wallcutout (its being removed)
Gridfinity-sive general, sive no floor pattern, no subdivision
Gridfinity-silverware general, utensil no subdivision

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Okay, that makes sense. I hadn't considered that use case. I've added the ability to inherit from multiple templates at once.

Note that the template setting must be an array now, so the single string will not work anymore.

Copy link
Copy Markdown
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

That looks good thanks for the update

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants