Image that I'm using in a bar on the frontpage shows up unexpectedly on a linked page. Why is that? #77
Replies: 7 comments
-
This is a standard functionality from the page image that shows you the first image that it found (ie the ancestor) It comes from the default page header slot: |
Beta Was this translation helpful? Give feedback.
-
Thank you for this. I'm trying to understand how the framework works. One things I wasn't able to figure out is how the default template is determined for a page.
..but I don't understand how this selection process work. Can I define somewhere these defaults? |
Beta Was this translation helpful? Give feedback.
-
I have just added it in the doc: These are just default that takes into account the type of content. You can customize them / create your own: |
Beta Was this translation helpful? Give feedback.
-
Thanks for this. I'm trying to find the easiest way to remove this image from all my pages and to have that as the default. I prefer not to have an image on my pages, unless I explicitly define it. Approach 1 - change the template I think the easiest way would be to override the existing templates and change them. Although it's not the nicest solution, because when I update ComboStrap it would override those changes. Approach 2 - get Combostrap to pick another ancestor image Another thing I thought about it to override the ancestor image and put a blank/empty SVG file on the frontpage so that we be picked as the ancestor image. I've tried that, but can't get this to work.
Maybe there is a more elegant solution to this problem that I've overlooked? |
Beta Was this translation helpful? Give feedback.
-
For the point 1, the customized themes are not overwritten because they are in the data directory. For the point 2, the page image of the home page is the ancestor image of all pages by default. |
Beta Was this translation helpful? Give feedback.
-
Note that the easiest way is to customize the main header by creating a main header slot. |
Beta Was this translation helpful? Give feedback.
-
Perfect, this is what I was looking for. Thanks! I've simply created a header slot and removed the image from the predefined page and saved. |
Beta Was this translation helpful? Give feedback.
-
I have defined this bar on my frontpage (inspired by the one from the ComboStrap homepage ;) )
But when I now navigate to a sub page in my Wiki, the image
bar_background.svg
appears, but I don't understand why.Any idea why this is happening?
Beta Was this translation helpful? Give feedback.
All reactions