Hello couchies ,
thanks for this superb CMS at first. It was exactly what i was looking for.
While editing my site i had an problem with some parts of my content, especially with jquery-Tabs. I didn't want to use repeatable content because there are too many fields to fill in - so it would have much sence to put them all inline.
So i decided to use clonable templates instead and hoped it will work in this case. All in all it looks like iam near to the solution, but its not updating in admin anymore and so its not really working.
Case:
There are several engine-types (folders).
For every engine-type there are several bases with different HP (pages in couch, Tabs on the site).
Under every engine-type should appear the bases that are belonging to every type - both on one site.
It would be very nice, if you could help me - but first the code:
I have tried to do it as short as possible - but as mentioned above - its not working. Any advices?
thanks for this superb CMS at first. It was exactly what i was looking for.
While editing my site i had an problem with some parts of my content, especially with jquery-Tabs. I didn't want to use repeatable content because there are too many fields to fill in - so it would have much sence to put them all inline.
So i decided to use clonable templates instead and hoped it will work in this case. All in all it looks like iam near to the solution, but its not updating in admin anymore and so its not really working.
Case:
There are several engine-types (folders).
For every engine-type there are several bases with different HP (pages in couch, Tabs on the site).
Under every engine-type should appear the bases that are belonging to every type - both on one site.
It would be very nice, if you could help me - but first the code:
- Code: Select all
<?php require_once( 'couch/cms.php' ); ?>
<cms:template clonable='1' title='Motorumbauten' >
<cms:editable name='tabID' type='text' label='ID' order='1' />
<cms:editable name='werk' label='Werksangaben' type='group' order='2' />
<cms:editable name='werkPS' group='werk' type='text' label='PS' />
<cms:editable name='werkNM' group='werk' type='text' label='NM' />
<cms:editable name='step1' label='Ausbaustufe 1' type='group' order='3' />
<cms:editable name='step1PS' group='step1' type='text' label='PS' />
<cms:editable name='step1NM' group='step1' type='text' label='NM' />
<cms:editable name='step1Parts' group='step1' type='richtext' label='Umbauteile' />
<cms:editable name='step1File' group='step1' type='file' />
<cms:editable name='step1Price' group='step1' type='text' label='Preis' />
<cms:editable name='step1Fitting' group='step1' type='text' label='Einbaupreis' />
<cms:editable name='step1TUV' group='step1' type='text' label='TUV Preis' />
<cms:editable name='step2' label='Ausbaustufe 2' type='group' order='4' />
<cms:editable name='step2PS' group='step2' type='text' label='PS' />
<cms:editable name='step2NM' group='step2' type='text' label='NM' />
<cms:editable name='step2Parts' group='step2' type='richtext' label='Umbauteile' />
<cms:editable name='step2File' group='step2' type='file' />
<cms:editable name='step2Price' group='step2' type='text' label='Preis' />
<cms:editable name='step2Fitting' group='step2' type='text' label='Einbaupreis' />
<cms:editable name='step2TUV' group='step2' type='text' label='TUV Preis' />
<cms:editable name='step3' label='Ausbaustufe 3' type='group' order='5' />
<cms:editable name='step3PS' group='step3' type='text' label='PS' />
<cms:editable name='step3NM' group='step3' type='text' label='NM' />
<cms:editable name='step3Parts' group='step3' type='richtext' label='Umbauteile' />
<cms:editable name='step3File' group='step3' type='file' />
<cms:editable name='step3Price' group='step3' type='text' label='Preis' />
<cms:editable name='step3Fitting' group='step3' type='text' label='Einbaupreis' />
<cms:editable name='step3TUV' group='step3' type='text' label='TUV Preis' />
<cms:editable name='step4' label='Ausbaustufe 4' type='group' order='6' />
<cms:editable name='step4PS' group='step4' type='text' label='PS' />
<cms:editable name='step4NM' group='step4' type='text' label='NM' />
<cms:editable name='step4Parts' group='step4' type='richtext' label='Umbauteile' />
<cms:editable name='step4File' group='step4' type='file' />
<cms:editable name='step4Price' group='step4' type='text' label='Preis' />
<cms:editable name='step4Fitting' group='step4' type='text' label='Einbaupreis' />
<cms:editable name='step4TUV' group='step4' type='text' label='TUV Preis' />
<cms:folder name="18_t" title="1.8 T" />
<cms:folder name="18_tsi" title="1.8 TSI/TFSI" />
<cms:folder name="20_tfsi_axx" title="2.0 TFSI (AXX-, BWA-Basis)" />
<cms:folder name="20_tfsi_cdl" title="2.0 TFSI (CDL-Basis)" />
</cms:template>
<cms:if k_is_page >
<div id="tabs-<cms:show tabID />">
<table width="920" border="0" cellspacing="0" cellpadding="0" class="steps">
<tr class="stepsRow1">
<td class="stepsColumn1"> </td>
<td class="stepsColumn2" valign="bottom" align="right"><p class="lowerStepBase">Werksangaben</p></td>
<td class="stepsColumn3" valign="bottom" align="right"><img src="images/Step1.gif" width="75" height="45" alt="Ausbaustufe 1" border="0" /><p class="lowerStep">Ausbaustufe 1</p></td>
<cms:if step2PS != '' ><td class="stepsColumn4" valign="bottom" align="right"><img src="images/Step2.gif" width="75" height="45" alt="Ausbaustufe 2" border="0" /><p class="lowerStep">Ausbaustufe 2</p></td></cms:if>
<cms:if step3PS != '' ><td class="stepsColumn5" valign="bottom" align="right"><img src="images/Step3.gif" width="75" height="45" alt="Ausbaustufe 3" border="0" /><p class="lowerStep">Ausbaustufe 3</p></td></cms:if>
<cms:if step4PS != '' ><td class="stepsColumn6" valign="bottom" align="right"><img src="images/Step4.gif" width="75" height="45" alt="Ausbaustufe 4" border="0" /><p class="lowerStep">Ausbaustufe 4</p></td></cms:if>
</tr>
<tr class="stepsRow2">
<td class="stepsColumn1">Leistung</td>
<td class="stepsColumn2" align="right"><cms:show werkPS /></td>
<td class="stepsColumn3" align="right"><cms:show step1PS /></td>
<cms:if step2PS != '' ><td class="stepsColumn4" align="right"><cms:show step2PS /></td></cms:if>
<cms:if step3PS != '' ><td class="stepsColumn5" align="right"><cms:show step3PS /></td></cms:if>
<cms:if step4PS != '' ><td class="stepsColumn6" align="right"><cms:show step4PS /></td></cms:if>
</tr>
<tr class="stepsRow3">
<td class="stepsColumn1">Drehmoment</td>
<td class="stepsColumn2" align="right"><cms:show werkNM /></td>
<td class="stepsColumn3" align="right"><cms:show step1NM /></td>
<cms:if step2PS != '' ><td class="stepsColumn4" align="right"><cms:show step2NM /></td></cms:if>
<cms:if step3PS != '' ><td class="stepsColumn5" align="right"><cms:show step3NM /></td></cms:if>
<cms:if step4PS != '' ><td class="stepsColumn6" align="right"><cms:show step4NM /></td></cms:if>
</tr>
<tr class="stepsRow4">
<td class="stepsColumn1" valign="top">Umbauteile</td>
<td class="stepsColumn2" valign="top" align="right"> </td>
<td class="stepsColumn3" valign="top" align="right"><cms:show step1Parts /></td>
<cms:if step2PS != '' ><td class="stepsColumn4" valign="top" align="right"><cms:show step2Parts /></td></cms:if>
<cms:if step3PS != '' ><td class="stepsColumn5" valign="top" align="right"><cms:show step3Parts /></td></cms:if>
<cms:if step4PS != '' ><td class="stepsColumn6" valign="top" align="right"><cms:show step4Parts /></td></cms:if>
</tr>
<tr class="stepsRow5">
<td class="stepsColumn1">Leistungsdiagramme<br />(MAHA-Allrad-Prüfstand)</td>
<td class="stepsColumn2" align="center"> </td>
<td class="stepsColumn3" align="center"><cms:show step1Diagram /></td>
<cms:if step2PS != '' ><td class="stepsColumn4" align="center"><cms:show step2Diagram /></td></cms:if>
<cms:if step3PS != '' ><td class="stepsColumn5" align="center"><cms:show step3Diagram /></td></cms:if>
<cms:if step4PS != '' ><td class="stepsColumn6" align="center"><cms:show step4Diagram /></td></cms:if>
</tr>
<tr class="stepsRow6">
<td class="stepsColumn1">Preis</td>
<td class="stepsColumn2" align="right"> </td>
<td class="stepsColumn3" align="right"><cms:show step1Price /></td>
<cms:if step2PS != '' ><td class="stepsColumn4" align="right"><cms:show step2Price /></td></cms:if>
<cms:if step3PS != '' ><td class="stepsColumn5" align="right"><cms:show step3Price /></td></cms:if>
<cms:if step4PS != '' ><td class="stepsColumn6" align="right"><cms:show step4Price /></td></cms:if>
</tr>
<tr class="stepsRow7">
<td class="stepsColumn1">Einbau</td>
<td class="stepsColumn2" align="right"> </td>
<td class="stepsColumn3" align="right"><cms:show step1Fitting /></td>
<cms:if step2PS != '' ><td class="stepsColumn4" align="right"><cms:show step2Fitting /></td></cms:if>
<cms:if step3PS != '' ><td class="stepsColumn5" align="right"><cms:show step3Fitting /></td></cms:if>
<cms:if step4PS != '' ><td class="stepsColumn6" align="right"><cms:show step4Fitting /></td></cms:if>
</tr>
<tr class="stepsRow8">
<td class="stepsColumn1">TÜV</td>
<td class="stepsColumn2" align="right"> </td>
<td class="stepsColumn3" align="right"><cms:show step1TUV /></td>
<cms:if step2PS != '' ><td class="stepsColumn4" align="right"><cms:show step2TUV /></td></cms:if>
<cms:if step3PS != '' ><td class="stepsColumn5" align="right"><cms:show step3TUV /></td></cms:if>
<cms:if step4PS != '' ><td class="stepsColumn6" align="right"><cms:show step4TUV /></td></cms:if>
</tr>
</table>
</div>
<cms:else />
<div id="content">
<div id="contentMain">
<div id="breadCrumb"><a href="index.html">Home</a> | <a href="Motorumbauten.html" class="contentLink">Motorumbauten</a> | <cms:show k_folder_title /></div>
<h1>Motorumbau des <cms:show k_folder_title /></h1>
<div id="tabs">
<ul>
<cms:pages masterpage='Motorumbau.php' folder=k_folder_name ><li><a href="#tabs-<cms:show tabID />">Basis <cms:show werkPS /></a></li></cms:pages>
</ul>
<cms:pages masterpage='Motorumbau.php' folder=k_folder_name ><cms:embed 'Motorumbau.php' /></cms:pages> - maybe here is the error?
</div>
<div class="separator"></div><p class="floatRight red">150 €</p><p>Vorher/Nachher-Leistungsprüfung auf MAHA-Allrad-Prüfstand</p><div class="separator"></div>
<h1 class="stepsContact">Vereinbaren Sie mit uns einen Termin und wir machen<br />den Einbau für Sie - problemlos, unkompliziert und maßgeschneidert!</h1>
</div>
</div>
</cms:if>
<?php COUCH::invoke(); ?>
I have tried to do it as short as possible - but as mentioned above - its not working. Any advices?