Title: More examples in the File Fieldtype page · Issue #1102 · ExpressionEngine/ExpressionEngine-User-Guide · GitHub
Open Graph Title: More examples in the File Fieldtype page · Issue #1102 · ExpressionEngine/ExpressionEngine-User-Guide
X Title: More examples in the File Fieldtype page · Issue #1102 · ExpressionEngine/ExpressionEngine-User-Guide
Description: 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.expressio...
Open Graph Description: 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...
X Description: 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...
Opengraph URL: https://github.com/ExpressionEngine/ExpressionEngine-User-Guide/issues/1102
X: @github
Domain: github.com
IPv4 address: 140.82.114.3
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"More examples in the File Fieldtype page","articleBody":"**Suggested Change**\nPlease add more examples into the File Fieldtype page (https://docs.expressionengine.com/latest/fieldtypes/file.html) ... and honestly, just everywhere in the User Guide.\n\n**Reasoning**\nThe 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:\n\n```\n{news_image:webp}\n \u003cimg src=\"{url}\" alt=\"{title}\">\n {/news_image:webp}\n```\n\nWhilst 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}.\n\nI 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).\n\n`\u003cimg src=“{news_image:webp}” alt=“{news_image}{title}{/news_image}”>`\n\nIf this is in fact the correct syntax, then it would be good to have a few examples showing this kind of result.\n\n**Additional context**\nI 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!\n","author":{"url":"https://github.com/agun","@type":"Person","name":"agun"},"datePublished":"2025-12-11T00:03:07Z","url":"https://github.com/ExpressionEngine/ExpressionEngine-User-Guide/issues/1102"}
| react-profiling | 0 |
| react-import-map | react,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322 |
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:2f668025-d29e-dd05-740e-f5a3879ad4ff |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | E3A4:3F508E:1CA7DE2:25BADBB:6B098C7C |
| html-safe-nonce | f239568ef59f64ee0d77dbbd935e30d90c415fa440b16feada57292641f37852 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJFM0E0OjNGNTA4RToxQ0E3REUyOjI1QkFEQkI6NkIwOThDN0MiLCJ2aXNpdG9yX2lkIjoiMjkxNjUzMjIyNjAwNTUwMzEwMCIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | dc443fcb881a1bc4afa51c4a60a8e97dd5377677bea67dc772e26a2d5cdd7351 |
| hovercard-subject-tag | issue:3717180886 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/ExpressionEngine/ExpressionEngine-User-Guide/1102/issue_layout |
| twitter:image | https://opengraph.githubassets.com/3abac2b68b41166959cf2bdf79de61fe35ab8834deda341a4d506ab87e71b970/ExpressionEngine/ExpressionEngine-User-Guide/issues/1102 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/3abac2b68b41166959cf2bdf79de61fe35ab8834deda341a4d506ab87e71b970/ExpressionEngine/ExpressionEngine-User-Guide/issues/1102 |
| og:image:alt | 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... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | agun |
| hostname | github.com |
| expected-hostname | github.com |
| None | 7979c7f5a22f0d2888cd797df0df5d946c8c8609941ab6be35588d3fff39c86e |
| turbo-cache-control | no-preview |
| go-import | github.com/ExpressionEngine/ExpressionEngine-User-Guide git https://github.com/ExpressionEngine/ExpressionEngine-User-Guide.git |
| octolytics-dimension-user_id | 17136433 |
| octolytics-dimension-user_login | ExpressionEngine |
| octolytics-dimension-repository_id | 157300441 |
| octolytics-dimension-repository_nwo | ExpressionEngine/ExpressionEngine-User-Guide |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 157300441 |
| octolytics-dimension-repository_network_root_nwo | ExpressionEngine/ExpressionEngine-User-Guide |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | d82818ecaa19047a8735708a7f4ba2ab4eb8df16 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
| Server | github.com |
| Content-Type | text/html; charset=utf-8 |
| Cache-Control | max-age=0, private, must-revalidate |
Viewport: width=device-width