README: drobne nieścisłości względem kodu i porządki językowe
Maintainers usually reply within 1 day
Nobody has claimed this yet.
Assessment
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Newbie friendliness
- 45/100
- Issue type
- Documentation
- Clarity
- Clearly specified
- Activity status
- Active
- Tech stack
- php
- Domain
- documentation
Research direction
Start with the cited README.md sections and compare them with the referenced traits, models, classes, and console command; the issue names the relevant locations. Review the beforeRender example and verify its behavior across document types, then check each documentation claim against the cited code. The thread leaves open whether afterRender listeners should compose changes; clarify that decision before considering the documentation complete.
Written by the indexing model from the issue text.
Description
Problem
Nieścisłości względem kodu:
- Zlokalizowane widoki (
pdf.de.invoice) działają tylko przy włączonej fladzerenatio_dynamicpdf_templatei jawnymlocale:(traits/TranslatesContent.php:25). README (Features,README.md:21-22) przedstawia je jako alternatywę dla tłumaczeń multisite. - Notka „If the PDF template does not exist in the system, this code will attempt to find a PDF view with the same code” (
README.md:196-197) dotyczy tylko kodów zarejestrowanych (traits/FollowsView.php:31-33). Istniejący, ale niezarejestrowany widok dajeModelNotFoundException. titleinamesą opisane jako „required” (README.md:140, 183), a od #256 brak daje kod jako nazwę (models/Template.php:141,models/Layout.php:193).- Domyślna
orientationtodefault_paper_orientationz konfiguracji dompdf, a nie „portrait” (README.md:187,classes/PDFWrapper.php:166). allowRemoteApplicationAssets()jest opisane jako „Limit remote resources…” (README.md:383), a w rzeczywistości włącza zasoby zdalne dla hostów aplikacji (classes/RemoteAssetPolicy.php:21).- Przykład
beforeRender(README.md:276-279) wywołuje$data['order']->isDraft(). Listener działa dla każdego dokumentu, więc każdy inny render kończy sięUndefined array key "order"(sonda Pest). afterRender: każdy listener dostaje oryginalny HTML i wygrywa ostatni zwrócony string (classes/TemplateRenderer.php:61-65). Dwa listenery, np. znak wodny i stopka, się nie składają. Do decyzji: opisać to w README albo przekazywać HTML kolejno przez listenery.- „Basic Twig tags and expressions are supported in PDF views” (
README.md:112, 175) jest nieaktualne. Widoki renderuje pełny Twig CMS z filtrami pluginów.
Porządki językowe i struktura:
- Brak krótkiego Quick start: pierwszy kod generujący PDF jest w ok. 618. linii.
- Brak linku do UPGRADE.md.
- „back-end” (6×:
README.md:65, 69, 193, 201, 290, 292) obok „backend”. - Brytyjska pisownia przy amerykańskiej w reszcie: „customised” w
UPGRADE.md:79, „Synchronise” w opisie komendy (console/Sync.php:12). - Zdania do poprawienia:
README.md:64„PDF can be created” → „PDFs can be created”;:145comma splice „These behave just like CMS layouts, they contain…”;:403„through Facade class” → „through the facade class”;:614-616„shows invoice”, „shows usage of” → „shows an invoice”, „shows the use of”;:635„In HTML template” → „In the HTML template”.
Dowód
Odczyt wskazanych linii README i kodu. Punkty 1, 2 i 6 potwierdzone sondą Pest lub w tinker.
Skutek
Programista trafia na zachowanie inne niż opisane. Przykład beforeRender wprost psuje pozostałe dokumenty.
Proponowane rozwiązanie
Poprawić punkty 1–8 i listę językową. W punkcie 7 rozstrzygnąć, czy afterRender ma składać zmiany listenerów.
Kryteria akceptacji
- Punkty 1–8 zgodne z kodem (albo kod zmieniony w punkcie 7).
- Przykład
beforeRendernie psuje innych dokumentów. - Jednolita pisownia „backend” i amerykańska ortografia.
Powiązane issues
#199/#249, #223, #119/#144, #134/#158, #181, #256.
- Dominant language
- PHP
- Stars
- 30
- Forks
- 22
- Avg merge
- 3h 48m
- Merged PRs (30d)
- 102
Getting set up
This project ships no dev container, Dockerfile or contributing guide, so setting up is up to you: start from its README, and see our first-contribution guide for the general steps.
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from mplodowski/dynamicpdf-plugin
-
frontend low-priority
Difficulty 2/5 1-3 hours Newbie friendliness 77/100
mplodowski/dynamicpdf-plugin#336 ·
Maintainers usually reply within 1 day
-
code-review documentation low-priority
Difficulty 2/5 1-3 hours Newbie friendliness 73/100
mplodowski/dynamicpdf-plugin#295 · 1 comment ·
Maintainers usually reply within 1 day
-
code-review enhancement low-priority
Difficulty 5/5 Over a week Newbie friendliness 30/100
mplodowski/dynamicpdf-plugin#301 ·
Maintainers usually reply within 1 day
-
code-review enhancement low-priority
Difficulty 5/5 Over a week Newbie friendliness 25/100
mplodowski/dynamicpdf-plugin#300 ·
Maintainers usually reply within 1 day
-
code-review enhancement low-priority
Difficulty 5/5 Over a week Newbie friendliness 38/100
mplodowski/dynamicpdf-plugin#299 · 1 comment ·
Maintainers usually reply within 1 day
All issues in mplodowski/dynamicpdf-plugin
Similar issues
-
Bug Enhancement Performance
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
Maintainers usually reply within 1 day
-
Feature Status: Needs Triage
Difficulty 2/5 1-3 hours Newbie friendliness 73/100
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
AdvancedCustomFields/acf#1044 ·
-
Add ZammadPossibly taken @Arslan-TR claimed this today. Openrequest
Difficulty 2/5 1-3 hours Newbie friendliness 66/100
endoflife-date/endoflife.date#11298 · 1 comment ·
Maintainers usually reply within 1 day
-
Bug Status: Needs Review
Difficulty 2/5 1-3 hours Newbie friendliness 73/100
Maintainers usually reply within 1 day