Sorry for the huge delay, I forgot about your other two posts!
I just tried to reproduce this with the Modules plugin 1.3.0 and Kirby 2.4.1, but I couldn't. Using the
file Kirbytags inside a structure field inside a module page works. Did you make sure that you are using the
toStructure() method in all places where you previously used the
It looks like this has been solved in the StaticBuilder topic. If not, please let me know.
That's strange as module pages are just ordinary page objects. Have you verified that the filename is correct?
In your search result template, you can check if the page is a module and then output the parent page accordingly:
<?php foreach($results as $result): ?>
<?php if($result->isModule()) $result = $result->page(); ?>
<a href="<?= $result->url() ?>"><?= $result->title() ?></a>
<?php endforeach; ?>
This solution will not only use the URL of the parent page but also the title if the result is a module.