More examples in the File Fieldtype page
Ninguém assumiu esta issue ainda.
Avaliação
- Dificuldade
- 2/5
- Tempo estimado
- 1-3 horas
- Facilidade para iniciantes
- 46/100
- Tipo de issue
- Documentação
- Clareza
- Razoavelmente clara
- Status de atividade
- Estagnada
- Stack de tecnologia
- php
- Domínio
- documentation
Direção de pesquisa
Start with the File Fieldtype page at docs/fieldtypes/file.html and compare its modifier tag example with the two syntaxes in the issue. Confirm which syntax gives the file title rather than the entry title, then add clear examples to the page showing the expected output. Done means the examples work for the relevant tags and explain when to use each syntax.
Escrita pelo modelo de indexação a partir do texto da issue.
Descrição
Suggested Change
Please add more examples into the File Fieldtype page (https://docs.expressionengine.com/latest/fieldtypes/file.html) ... and honestly, just everywhere in the User Guide.
Reasoning
The one example (https://docs.expressionengine.com/latest/fieldtypes/file.html#using-as-modifier-tags-pairs) that is provided does not work correctly with all of the template tags (for example, does not work with {title} ), therefore you have to make weird workarounds. For example, based on the example this should work:
{news_image:webp}
<img src="{url}" alt="{title}">
{/news_image:webp}
Whilst the {url} tag works correctly (returns the .webp file url) ... the {title} tag does not work ... it returns the 'entry' {title}, not the 'file' {title}.
I raised this on Slack, and was told that I had to use the following syntax (which I believe is weird and wrong, but does work).
<img src=“{news_image:webp}” alt=“{news_image}{title}{/news_image}”>
If this is in fact the correct syntax, then it would be good to have a few examples showing this kind of result.
Additional context
I do wonder if this is actually just a bug with the File Fieldtype tags ... and not actually an issue with the docs ... but I honestly don't know, as there are no good examples in the docs!
- Linguagem predominante
- CSS
- Estrelas
- 22
- Forks
- 79
- Merge médio
- 2d 1h
- PRs com merge (30d)
- 6
Preparar o ambiente
- Sem Dockerfile nem arquivo Docker Compose
- Tem um modelo de pull request
- Ler o guia de contribuição
Primeiros passos
- Leia a issue inteira e depois o guia de contribuição do projeto.
- Comente na issue dizendo que vai assumir — evita que duas pessoas façam o mesmo trabalho.
- Faça um fork do repositório e trabalhe em uma branch.
- Abra um pull request que referencie o número da issue.
Mais de ExpressionEngine/ExpressionEngine-User-Guide
-
Dificuldade 1/5 Menos de uma hora Facilidade para iniciantes 72/100
-
registration form docsAberta
Dificuldade 1/5 Menos de uma hora Facilidade para iniciantes 55/100
-
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 45/100
-
Dificuldade 1/5 Menos de uma hora Facilidade para iniciantes 55/100
-
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 56/100
Todas as issues de ExpressionEngine/ExpressionEngine-User-Guide
Issues semelhantes
-
agentic-workflows automation repo-assist
Dificuldade 1/5 Menos de uma hora Facilidade para iniciantes 85/100
shanselman/winget-tui#483 ·
Mantenedores costumam responder em até 2 dias
-
Dificuldade 1/5 Menos de uma hora Facilidade para iniciantes 90/100
griptape-ai/griptape-nodes-library-elevenlabs#30 ·
Mantenedores costumam responder em até 1 dia
-
documentation
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 78/100
Mantenedores costumam responder em até 1 dia
-
docs: Release playbookAbertadocumentation
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 76/100
awslabs/social-messaging-agent-runtime-toolkit#140 ·
Mantenedores costumam responder em até 1 dia
-
documentation
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 78/100
liberation-data/drivine-python#432 ·
Mantenedores costumam responder em até 1 dia