This forum has moved, please join us on github discussions. We will keep these old posts available for reference. Thank you!

Apostrophe-widgets with global template

Hi,
I want to make an editable text slider like this :

<div id="carousel-3" class="carousel slide carousel-fade" data-ride="carousel" data-interval="4000">
  <div class="carousel-inner"> 
    <div class="item">
      <p>“Lorem ipsum.........”</p>
      <p>- Name (City) -</p>
    </div>
    <div class="item">
      <p>“Lorem ipsum.........”</p>
      <p>- Name (City) -</p>
    </div>
  </div>
  <ol class="carousel-indicators">
    <li data-target="#carousel-3" data-slide-to="0" class="active"></li>
    <li data-target="#carousel-3" data-slide-to="1"></li>
  </ol>
</div>

So I need a global rendering process to show each item and after each indicator. For this, I think use apostrophe-widgets but rendering is called on each item and not globally. How can I solve that?

Hi ehibes,

It’s tough to tell from your question what you are really trying to do. A widget seems a natural solution but I don’t know enough about what you are trying to accomplish. Please be more specific.

Thanks!

Also please keep in mind that Stack Overflow is the best place for how-to questions. Just use the “apostrophe-cms” tag, which we keep an eye peeled for. The forum is mostly for general discussion of Apostrophe, its future, what it’s like to work with it, etc.