Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Give a developer the ability to create and select subfolders when creating new templates #5947

Open
1 task done
russdanner opened this issue Feb 21, 2023 · 5 comments
Open
1 task done

Comments

@russdanner
Copy link
Member

russdanner commented Feb 21, 2023

Duplicates

  • I have searched the existing issues

Is your feature request related to a problem? Please describe.

Today several locations in the Studio UI assume that all templates live directly under /templates/web but developers want to organize their templates into sub-folders.

Both XB and the Form Builder force the location to /templates/web but offer no mechanism to define further/refine the path of the template. The only way a developer can create sub-folders for templates is via IDE/Git directly or via the sidebar.

Describe the solution you'd like

Update the UI to allow developers to create and select sub-paths for their templates in all Studio UI experiences that allow them to create a template.

@sumerjabri
Copy link
Member

@rart, we can try to pursue this in the next release, provided we don't need any backend changes.

@sumerjabri sumerjabri changed the title [studio-ui] Give a developer the ability to create and select subfolders when creating new templates Give a developer the ability to create and select subfolders when creating new templates Feb 29, 2024
@russdanner
Copy link
Member Author

image

This dialog effectively blocks other paths in the UI that automatically assume that the template should be created in /tempaltes/web outside of the form builder.

Given this, we can confirm this ticket to updates in the form builder which includes the properties sheet and this dialog, both of which seem to make the same assumption.

@rart rart assigned jvega190 and unassigned rart Mar 15, 2024
@rart
Copy link
Member

rart commented Mar 15, 2024

@jvega190

  • On the create template, script and folder dialog add the ability to create structure on the single input. For example, if one would click the menu for for templates/web and select "New Template", on the input one should be able to type components/feature.ftl and the new template would be created at templates/web/components/feature.ftl. Same thing for new script or new folder. leading slash should be handled appropriately.
  • When a page doesn't have a template and on the item options menu one select's "Edit Template", the system creates a template. Instead, pop open the create template dialog and allow for specifying name and destination.
  • On the Type Editor, when creating a new type, the New Template dialog is shown, the ability to specify destination should be provided by the updates above.

Ping me to review and go through finishing details once you have a working demo of it all.

@jvega190
Copy link
Member

jvega190 commented Apr 3, 2024

There are some issues in the backend that need to be addressed for this enhancement to fully work.
#6663
#6664

@jvega190
Copy link
Member

jvega190 commented May 8, 2024

Per conversation, we'll hold the PR on this ticket since there's some backend work needed for it to fully work.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Status: Todo
Development

No branches or pull requests

4 participants