Hello,
I am evaluating Website Development Module and I love it.
Is there an easy way to add a local video with some text to one side for example with the new Bootstrap blocks?
I am trying to do it, and was only able to do something with Markdown, but was wondering if it could be done more easily with an already made component.
Many thanks and kind regards,
Alberto
Hello,
I am going to reply to myself.
Website Module on ERPNext rocks!!!
I was not being aware, that apart from already made website components, you can develop your owns.
Here is how I did it:
1.- I created a new Website Component called Section with Video and Text.
2.- In there I created a new Section Type and Website Module component with following content on template:
<div class="container">
<div class="row align-items-center justify-content-between ">
<div class="col-12 col-md-5 pr-md-5 ">
<h1 class="hero-title">{{ title }}.</h1>
{%- if content -%}<p class="lead ">{{ content }}</p>{%- endif -%}
<div class=" d-flex mt-3 mb-1">
<a class="btn btn-success btn-lg mt-md-3 " href="{{ link }}" role="button">{{ link_label }}</a>
</div>
</div>
<div class="col-12 col-md-7 mt-4 mt-md-0">
<div class="embed-responsive embed-responsive-16by9 shadow-lg rounded overflow-hidden">
<iframe class="embed-responsive-item" src="{{ url }}" allowfullscreen="true"></iframe>
</div>
</div>
</div>
</div>
And under the template I created the correponding field items.
And Voila, I have the component that I needed.
Many thanks and kind regards,
Alberto
1 Like