How to inject "folders" view within context and trigger comparison slider
Posted: 31 Dec 2019, 16:24
Hi all,
happy new year :-)
I need a little help for tweaking:
For marketing reasons, my wedding landing page has to follow a very specific content structure. All the content of the site is coded in HTML within the content window or injected from external HTML files for easier editing.
I can handle all my page layout requirements more or less within the context content, though with one exception: folders view. I need to place a folders view inside „in the middle“ of a context, i.e. I need to inject the auto generated folders code within the context. X3 only allows me to specify the order of folders, gallery and context.
Please see my site at https://ziin-hochzeitsfotograf-duesseldorf.de/
The current setup is configured to show the folders first followed by the context (gallery view is disabled). But I need the folders view to move freely within the context. Is there a widget for that?
Alternatively, if I cannot change that: is there a way to inject the remaining context after the folders have been rendered? Is there a place to insert HTML code before the footer is injected?
My second question is: what JavaScript function do I have to call to initialize the comparison slider? The help states that the code is analyzed and JS/CSS classes are loaded after detection. As described above, a lot of code is dynamically injected with JS within a DIV container with a specific ID. I use custom JS to acomplish that:
The content of the context looks like that:
When defining the comparison slider HTML within an external HTML file, the slider overlay is not shown as - I assume - is not recognized in the first place as the injection hasn't been done, yet.
So, I want to call the function which is doing that.
Thanks a lot!
happy new year :-)
I need a little help for tweaking:
For marketing reasons, my wedding landing page has to follow a very specific content structure. All the content of the site is coded in HTML within the content window or injected from external HTML files for easier editing.
I can handle all my page layout requirements more or less within the context content, though with one exception: folders view. I need to place a folders view inside „in the middle“ of a context, i.e. I need to inject the auto generated folders code within the context. X3 only allows me to specify the order of folders, gallery and context.
Please see my site at https://ziin-hochzeitsfotograf-duesseldorf.de/
The current setup is configured to show the folders first followed by the context (gallery view is disabled). But I need the folders view to move freely within the context. Is there a widget for that?
Alternatively, if I cannot change that: is there a way to inject the remaining context after the folders have been rendered? Is there a place to insert HTML code before the footer is injected?
My second question is: what JavaScript function do I have to call to initialize the comparison slider? The help states that the code is analyzed and JS/CSS classes are loaded after detection. As described above, a lot of code is dynamically injected with JS within a DIV container with a specific ID. I use custom JS to acomplish that:
Code
function x3_load_page(){
$("#03-bulletpoints").load("content/custom/files/html/03-bulletpoints.html");
$("#04-vertrauenssymbole").load("content/custom/files/html/04-vertrauenssymbole.html");
}Code
<!-- 03 - Bulletpoints -->
<div id="03-bulletpoints"></div>
<!-- 04 - Vertrauenssymbole -->
<div class="borderedHeader">
<h1>Bekannt von</h1>
<p></p>
</div>
<div id="04-vertrauenssymbole"></div>So, I want to call the function which is doing that.
Thanks a lot!

