So i have a modular page called about which is divided into several modular sections: _introduction, _team, … Now _introduction is a basic page with content (markdown editor) and pagemedia (file uploader). But when I add the file to the markdown editor the generated link is wrong and is pointing to /about/filename instead of /about/_introduction/filename is there any solution to this? I really need the flexibility to add links to pdf’s, word files and even images.
It should link to /about/_introduction/filename
really. I just checked.
Can you try disabling the pages cache for a bit? As the modular content is cached, you might be seeing strange results when developing the site.
Hmm maybe it’s because I created a custom blueprint that does not inherit from the default? Besides that I also ran into a second problem where you can only create one pagemedia
type field so I had to change it to a file
type which doesn’t support drag and drop to the editor
. I added the blueprint config below if you have any solution to this that would be great! Thanks in advance!
# mytheme/blueprints/modular/two_column.yaml
title: Two Column
form:
validation: loose
fields:
tabs:
type: tabs
active: 1
fields:
left_column:
type: tab
title: Left
fields:
header.title_left:
type: text
label: Left Column
placeholder: title
style: vertical
header.subtitle_left:
type: text
placeholder: subtitle
style: vertical
header.content_left:
type: editor
style: vertical
header.uploads_left:
type: file
label: Media
multiple: true
destination: 'self@'
style: vertical
right_column:
type: tab
title: Right
fields:
header.title_right:
type: text
label: Right Column
placeholder: title
style: vertical
header.subtitle_right:
type: text
placeholder: subtitle
style: vertical
header.content_right:
type: editor
style: vertical
header.uploads_right:
type: file
label: Media
multiple: true
destination: 'self@'
style: vertical
---