title: Typoscript image change every 15 days
body: <p>I would like to make a change of image say every 15 days. Or twice a month. When the date is between the 1 and 15 is an image, and if it is from 16 to 30 another, so on, are 24 images in the year. I would like it to be the typoscript that manages the change of the image.</p>
  
  <p>I took the following typosript:</p>
  
  <pre><code>lib.headerlogo1 = COA
  lib.headerlogo1 {
  10 = LOAD_REGISTER
  10 {
      divSem.cObject = TEXT
      divSem.cObject {
          data = date:U
          strftime = %U 
  
          current = 1
          setCurrent.data = date:U
          setCurrent.wrap = |/2
          prioriCalc = 1
      }
  }
  
  20 = FILES
  20 {
      references {
          data = levelmedia: -1, slide
      }
  
      renderObj = IMAGE
      renderObj {
          file.import.dataWrap = {file:current:storage}:{file:current:identifier}
          #file.import.listNum = 0
          altText.data = file:current:title
  
          # Affiche bien la valeur de : divSem
          #stdWrap.insertData = 1
          #stdWrap.wrap = &lt;div class="banner{register:divSem}"&gt;|&lt;/div&gt;
      }
  
      # insertData = 1
      insertData = 1
  
      # IT'S FAILLED !!
      begin = {register:divSem}
      maxItems = 1 
  } 
  
  30 = TEXT
  30 {
      stdWrap.insertData = 1
      stdWrap.wrap = &lt;div class="{register:divSem}"&gt;|&lt;/div&gt; 
  }
  }
  </code></pre>
  
  <p>The problem is that I can not start the value of the registry <code>begin = {register:divSem}</code> ... It always starts at 0! Do you have an idea ? The display of the registers in <code>30 = TEXT</code> is correct.</p>
  
  <p>Do you have a good idea to modify the typoscript?</p>