Hello,
i have a problem exporting a site made with modules as a static page.
How can i set the right URL for images inside modules ‘by hand’?
Look here for some more explainations: StaticBuilder - Kirby as a static site generator
Short: how can i get a URL from a image field like the (image:) tag does?
Also this gives a correct URL:
$module->images()->first()->url()
But this:
$module->image('element-33.png')->url()
gives: Call to a member function url() on a non-object
How i get a URL like the one below from a image field (image field gives just the filename… the file is in the module dir)?
http://localhost/kirby/site/content/3-products/columns-1p79fng/element-33.png
S.