1
0
mirror of https://github.com/processwire/processwire.git synced 2025-08-20 21:42:23 +02:00
This commit is contained in:
Ryan Cramer
2022-04-15 10:47:18 -04:00
parent 3c28ecd16c
commit 7d8a031cbd

View File

@@ -195,7 +195,7 @@ class FieldtypeFileConfiguration extends Wire {
$example = array( $example = array(
'// ' . $this->_('Display all files with tag “sidebar”'), '// ' . $this->_('Display all files with tag “sidebar”'),
'foreach($page->images as $file) {', 'foreach($page->images as $file) {',
' if($file->hasTag("sidebar") {', ' if($file->hasTag("sidebar")) {',
' echo "<img src=\'$file->url\' alt=\'$file->description\'>";', ' echo "<img src=\'$file->url\' alt=\'$file->description\'>";',
' }', ' }',
'}', '}',