Skip to content

Commit 59b8955

Browse files
committed
Merged in feature/BKL-69-LimitTitleInputsTo90Characters (pull request #56)
Feature/BKL-69 LimitTitleInputsTo90Characters Approved-by: Andreas Engelmark
2 parents cb67b3b + e475cdc commit 59b8955

File tree

2 files changed

+8
-3
lines changed

2 files changed

+8
-3
lines changed

local_install_guide.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
3. Type `git checkout development` to switch to development.
2020
3. Run `docker ps` to confirm everything is running.
2121
1. Note the port for `os2loop_ngingx_1`. This is where your site will spin up (ex. `0.0.0.0:53960` => `http://localhost:53960`).
22-
4. Run `docker exec -it os2loop_phpfpm_1 bash` to open terminal on `phpfpm`.
22+
4. Run `docker exec -it os2loop_phpfpm_1 bash` to open terminal on `phpfpm`. If this command doesn't work, check the name of your os2loop-phpfpm container. It might use dash \- instead of underscore \_
2323
1. Run `composer install`.
2424
2. Run `mkdir web/sites/default/files/`.
2525
3. Run `chmod 777 web/sites/default/files/` to allow access to folder (workaround for install issue).
@@ -45,7 +45,7 @@ Pre-commit hooks didn't work out of the box. For whatever reason, it didn't copy
4545

4646
### Install
4747
- [XAMPP](https://www.apachefriends.org/download.html)
48-
- [Composer](https://getcomposer.org/download/)
48+
- [Composer](https://getcomposer.org/download/)
4949

5050
for the pre-commit hook to work, install them in the written order. Remember to add PHP to your [windows environment path](https://dinocajic.medium.com/add-xampp-php-to-environment-variables-in-windows-10-af20a765b0ce).
5151

@@ -72,4 +72,4 @@ Make sure you don't have the latest version of `node` (v17). This causes issues
7272
7373
I also had issues with `prettier` not installing, despite it being in the `devDependencies`. I got around it by installing it globally (`npm install -g prettier`).
7474
75-
To access a normal login, append your localhost path with `/user/login#drupal-login`.
75+
To access a normal login, append your localhost path with `/user/login#drupal-login`.

web/profiles/custom/os2loop/themes/os2loop_theme/templates/form/input--textfield.html.twig

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,11 @@
1717
{% set show_search_button = TRUE %}
1818
{% endif %}
1919

20+
{% if 'edit-title-0-value' == element['#id'] %}
21+
{% set maxlength = '90' %}
22+
{% set attributes = attributes.setAttribute('maxlength', maxlength) %}
23+
{% endif %}
24+
2025
<div>
2126
<div class="d-flex align-items-center">
2227
<input{{ attributes.addClass('form-control') }}/>

0 commit comments

Comments
 (0)