Problems, need help? Have a tip or advice? Post it here.
5 posts Page 1 of 1
I need something that come to that .

that's all I need .

folder , sub- folder , files

this example : http://demo.tutorialzine.com/2014/09/cu ... php/#files

plis
help me get to this point
Please, take a look at this tutorial http://docs.couchcms.com/tutorials/port ... folio.html It has everything you need to recreate folder hierarchy with pages inside folders.
trendoman wrote: Please, take a look at this tutorial http://docs.couchcms.com/tutorials/port ... folio.html It has everything you need to recreate folder hierarchy with pages inside folders.



I could not reach a solution'm in trouble.

this and what I need example:

BRAZIL (folder)

   - 2013 (folder)
     - Pdf file (cloned)
     - Pdf file (cloned)
     etc........

  - 2014 (folder)
     - Pdf file (cloned)
     - Pdf file (cloned)
      etc.......


ARGENTINA (folder)

   - 2013 (folder)
     - Pdf file (cloned)
     - Pdf file (cloned)
     etc........

  - 2014 (folder)
     - Pdf file (cloned)
     - Pdf file (cloned)
     etc.......

---- PULP (creation by customer) -------

I've tried several times with repeatable, most want to paginate then repitivel files do not answer me.

I'm tempted to dynamic_folders but when I put cloned pages inside the folder displaying it in all this.

a perfect way to meet me and my nescessidades like this link: http://demo.tutorialzine.com/2014/09/cu ... php/#files

with folder, FOLDER, FILE

someone could help me I'm in this week issue.

Attachments

download (18).png
download (18).png (92.52 KiB) Viewed 1864 times


Code: Select all

<cms:template title='legislação' clonable='1' > 
 
  <cms:editable name='numero'         type='text'       label='Number'      order='' />
  <cms:editable name='descripcion'    type='textarea'   label='Description' order='' />
  <cms:editable name='archivo_seguro' type='securefile' label='Downloadable File' desc='secure' max_size='5120'   order='' />
  <cms:editable name='archivo_normal' type='file'       label='Downloadable File' order='' />
 
</cms:template>


<cms:archives masterpage='legislacaoitem.php' type='yearly' >

<cms:ignore>
   // enumerate years only. cms:archives will go through all cloned pages and group them 'yearly'.
   // this can make it easy to know the years of our cloned pages.
   // then cms:pages can rely upon first date of year 01-01-2015 to end date of year 31-12-2015
   // so cms:pages will fetch only clonables with from date 'start_on' to 'stop_before'</cms:ignore>

<div class="competencias"> <a href=""><cms:date k_archive_date format='Y' /> - (yers)</a>
  <div style="display: none;">
   <table class="tg">
     <tr>
      <th class="tg-yw4l">Number</th>
      <th class="tg-yw4l">Date</th>
      <th class="tg-yw4l">Publication date (manual)</th>
      <th class="tg-yw4l">Download</th>
     </tr>
    
   <cms:pages masterpage='legislacaoitem.php'
            start_on=k_archive_date
            stop_before=k_next_archive_date
            orderby='numero' order='asc' >
    
     <cms:ignore>
      // prepare link for securefile download.
      // for insecure download this is not needed, <cms:show archivo_normal /> can work. </cms:ignore>
    
     <cms:show_securefile 'archivo_seguro'>
     <cms:set link="<cms:cloak_url link=file_id force_download='1' />" scope='global' />
     </cms:show_securefile>

     <tr>
      <td class="tg-yw4l"><cms:show numero /></td>
      <td class="tg-yw4l"><cms:date date=k_page_date format='d-m-Y' /></td>
      <td class="tg-yw4l"><cms:date date=k_page_date format='d-m-Y' /></td>
      <td class="tg-yw4l"><a href="<cms:show link />">Baixar</a></td>
     </tr>
     <tr>
      <td class="tg-yw4l" colspan="4"><cms:show descripcion /></td>
     </tr>
 
   </cms:pages>
 
   </table>
  </div>
</div>

</cms:archives>




Full template sent in PM.
trendoman wrote: http://koro.tk/bra/legislacaoitem.php
http://koro.tk/bra/_admin (admin:admin)

download (18).png


Code: Select all

<cms:template title='legislação' clonable='1' > 
 
  <cms:editable name='numero'         type='text'       label='Number'      order='' />
  <cms:editable name='descripcion'    type='textarea'   label='Description' order='' />
  <cms:editable name='archivo_seguro' type='securefile' label='Downloadable File' desc='secure' max_size='5120'   order='' />
  <cms:editable name='archivo_normal' type='file'       label='Downloadable File' order='' />
 
</cms:template>


<cms:archives masterpage='legislacaoitem.php' type='yearly' >

<cms:ignore>
   // enumerate years only. cms:archives will go through all cloned pages and group them 'yearly'.
   // this can make it easy to know the years of our cloned pages.
   // then cms:pages can rely upon first date of year 01-01-2015 to end date of year 31-12-2015
   // so cms:pages will fetch only clonables with from date 'start_on' to 'stop_before'</cms:ignore>

<div class="competencias"> <a href=""><cms:date k_archive_date format='Y' /> - (yers)</a>
  <div style="display: none;">
   <table class="tg">
     <tr>
      <th class="tg-yw4l">Number</th>
      <th class="tg-yw4l">Date</th>
      <th class="tg-yw4l">Publication date (manual)</th>
      <th class="tg-yw4l">Download</th>
     </tr>
    
   <cms:pages masterpage='legislacaoitem.php'
            start_on=k_archive_date
            stop_before=k_next_archive_date
            orderby='numero' order='asc' >
    
     <cms:ignore>
      // prepare link for securefile download.
      // for insecure download this is not needed, <cms:show archivo_normal /> can work. </cms:ignore>
    
     <cms:show_securefile 'archivo_seguro'>
     <cms:set link="<cms:cloak_url link=file_id force_download='1' />" scope='global' />
     </cms:show_securefile>

     <tr>
      <td class="tg-yw4l"><cms:show numero /></td>
      <td class="tg-yw4l"><cms:date date=k_page_date format='d-m-Y' /></td>
      <td class="tg-yw4l"><cms:date date=k_page_date format='d-m-Y' /></td>
      <td class="tg-yw4l"><a href="<cms:show link />">Baixar</a></td>
     </tr>
     <tr>
      <td class="tg-yw4l" colspan="4"><cms:show descripcion /></td>
     </tr>
 
   </cms:pages>
 
   </table>
  </div>
</div>

</cms:archives>




Full template sent in PM.



obrigado amigo :D :D :D
5 posts Page 1 of 1