Skip to content

Show absolute path to WSC installation in path selection overlay on DevtoolsProjectListPage#6515

Closed
Fighter456 wants to merge 3 commits intoWoltLab:6.2from
Fighter456:6.2-devtools-quicksetup-qol
Closed

Show absolute path to WSC installation in path selection overlay on DevtoolsProjectListPage#6515
Fighter456 wants to merge 3 commits intoWoltLab:6.2from
Fighter456:6.2-devtools-quicksetup-qol

Conversation

@Fighter456
Copy link
Copy Markdown
Contributor

During the test of Suite 6.2 I've discovered, that the path selection overlay does not provide the absolute path to the Suite Core installation on the DevtoolsProjectListPage.

Because the path is shown on the DevtoolsProjectAddForm it makes sense to unify this behavior.

Note: The usage of \WCF_DIR directly in the template is disallowed. Therefore the page-class needs to assign this information through the template engine.

@dtdesign
Copy link
Copy Markdown
Member

I’m not sure what the point of adding the placeholder is, because a placeholder is merely a hint and not available for text completion?

<dt>{lang}wcf.acp.devtools.project.quickSetup.path{/lang}</dt>
<dd>
<input type="text" name="projectQuickSetupPath" id="projectQuickSetupPath" class="long" />
<input type="text" name="projectQuickSetupPath" id="projectQuickSetupPath" class="long" placeholder="{unsafe:$wcfDir}" />
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Why would you use unsafe: here?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

IIRC I've copied it from another template. Not necessary at this point?

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

As a general guideline: Never use unsafe: unless you actually need it. The performance gains are negligible but you risk malformed HTML or XSS. This also makes it much easier to test for security issues because in HTML any variable that is escaped before outputting is safe by definition.

@Fighter456
Copy link
Copy Markdown
Contributor Author

I’m not sure what the point of adding the placeholder is, because a placeholder is merely a hint and not available for text completion?

As stated in the PR description, the DevtoolsProjectAddForm shows the path as placeholder, too. In the past I've copied the value from the placeholder (using the browser developer tools).

What about show the path in a kdb element within a field description in both places to make it easier to copy?

@dtdesign
Copy link
Copy Markdown
Member

Thanks. I’ve opted to make the changes myself since there I made some small changes at didn’t want to bother you with them, the result is effectively the same.

@dtdesign dtdesign closed this Nov 25, 2025
@Fighter456 Fighter456 deleted the 6.2-devtools-quicksetup-qol branch February 14, 2026 13:24
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