Problems, need help? Have a tip or advice? Post it here.
11 posts Page 1 of 2
Can a template id include cms:show command to inculde data from another template id:

Code: Select all

<?php    include($_SERVER['DOCUMENT_ROOT'].'/acc/cms.php' ); ?>
<!-- Template Details -->
   <cms:template title='Services' clonable='1' commentable='0'>
<!-- Folders  -->
   <cms:folder title="Electrician" name="electrician" />
   <cms:folder title="Electrical Certification" name="electrical_certification" />
   <cms:folder title="Plumber" name="plumber" />
   <cms:folder title="Gas Certification"name="gas_certification"  />
   <cms:folder title="Audio & Video" name="audio_video" />
   <cms:folder title="Security Systems" name="security_systems" />
   <cms:folder title="Water" name="water" />
   <cms:folder title="Air Purification" name="air_purification" />
   <cms:folder title="Natural Homes" name="natural_homes" />
<!-- Main Content  -->
   <cms:editable label='Page image' name='page_image' crop='1' width='900' height='221' type='image' />
   <cms:editable label='Page subtitle' name='page_subtitle' type='text' />
   <cms:editable label='Subtitle' name='content_subtitle' type='text' />
   <cms:editable label='Heading' name='content_heading' type='text' />
   <cms:editable label='Introduction' name='introduction' type='textarea' height='100'/>
   <cms:editable label='Content' name='main_content' type='textarea' />
<!-- SEO  -->
   <cms:editable label='SEO1' name='hidden_Seo_1' type='textarea' />
   <cms:editable label='SEO2 Title' name='hidden_Seo_2_title' type='text' > Available service in the following areas </cms:editable>
   <cms:editable label='SEO2 Text' name='hidden_Seo_2_text' type='textarea' height='100' />
   <cms:editable label='SEO2 Title 1' name='hidden_Seo_2_title1' type='text' > London </cms:editable>
   <cms:editable label='SEO2 List 1' name='hidden_Seo_2_block1' type='richtext' > <!--6 Hyper Links--> </cms:editable>
   <cms:editable label='SEO2 List 2' name='hidden_Seo_2_block2' type='richtext' > <!--6 Hyper Links--> </cms:editable>
   <cms:editable label='SEO2 List 3' name='hidden_Seo_2_block3' type='richtext' > <!--6 Hyper Links--> </cms:editable>
   <cms:editable label='SEO2 Title 2' name='hidden_Seo_2_title2' type='text' > Hertfordshire </cms:editable>
   <cms:editable label='SEO2 List ' name='hidden_Seo_2_block4' type='richtext' > <!--6 Hyper Links--> </cms:editable>

</cms:template>

<header file included here>

<cms:pages masterpage='template/temp_block_services.php' id='2'><!-- CREATE DYNAMIC LINK -->
   <div class="bodyblock bbshadowb">
      <p class="typotitle_sml"><cms:show service_link_block1_title /></p>
      <p class="typosubtitle_sml"><cms:show service_link_block1_subtitle /></p>
      <p class="typotext" style="padding-top:16px;">
      <ul class="blocklist">
         <li><a href="" ><cms:show service_link_block1 /></a></li>
         <li class="bodyblockhover_text2"><a href="" ><cms:show service_link_block2 /></a></li>
         <li class="bodyblockohver_text3"><a href="" ><cms:show service_link_block3 /></a></li>
         <li class="bodyblockhover_text4"><a href="" ><cms:show service_link_block4 /></a></li>
         <li class="bodyblockhover_text5"><a href="" ><cms:show service_link_block5 /></a></li>
         <li class="bodyblockhover_text6"><a href="" ><cms:show service_link_block6 /></a></li>
         <li class="bodyblockhover_text7"><a href="" ><cms:show service_link_block7 /></a></li>
         <p>&nbsp;</p>
         <li class="bodyblockheader1" id="bodyblockheader1"><img src="<cms:show product_link_block1_image />"></li>
         <li id="bodyblock_text2"><img src="<cms:show service_link_block2_image />"></li>
         <li id="bodyblock_text3"><img src="<cms:show service_link_block3_image />"></li>
         <li id="bodyblock_text4"><img src="<cms:show service_link_block4_image />"></li>
         <li id="bodyblock_text5"><img src="<cms:show service_link_block5_image />"></li>
         <li id="bodyblock_text6"><img src="<cms:show service_link_block6_image />"></li>
         <li id="bodyblock_text7"><img src="<cms:show service_link_block7_image />"></li>
      </ul>
      </p>
   </div>      
</cms:pages>

<?php COUCH::invoke(); ?>


The file is a template called SERVICES, the page includes cms:pages to get a file which is also a template and comes with an id" template/temp_block_services.php' id='2'><!-- CREATE DYNAMIC LINK -->"

but does not work. Also can php be used to choose the label or id result. eg. php looking up a varible to see if it contains the word electrical and then giving a set out put as a response: eg.

Code: Select all
$var_header = strtolower($PageTitle);
$search_for = array('Electrical Services' => array('electrical', 'audio', 'electrician', 'security', 'fire', 'video'), 'Plumbing Service' => array('heating', 'gas', 'plumbing'), 'Air & Water' => array('water', 'air', 'osmosis', 'filtration'));
foreach ($search_for as $name=>$term){
     foreach ($term as $findme)
     {
         if (strpos($var_header,$findme) !== false)
         {   
    ob_start();
      echo "".$name;
      $var_header_services = ob_get_contents();
    ob_end_clean();
         }
    }
}


or is the a better way of doing all this? thank you.
Hi,

Using the 'masterpage' parameter we can make cms:pages fetch pages from any arbitrary template. The 'id' parameter would further zero down the pages fetched to just one.

So the code you are using -
Code: Select all
<cms:pages masterpage='template/temp_block_services.php' id='2'>
   ...
</cms:pages>
- is correct and should fetch in the page with id of '2' and belonging to a template named 'template/temp_block_services.php'.

If it does not, then you'll have to see if the template name is right and there is a page with an id of '2' belonging to that template.

As a test, drop the id parameter altogether and simply use this
Code: Select all
<cms:pages masterpage='template/temp_block_services.php' limit='1'>
   ...
</cms:pages>

The code above should fetch the latest page from the template.
once that works, try using the 'page_name' param set to the name of the page (instead of the id).

So, nothing wrong with your approach. Just try to troubleshoot what could be missing.
Sorry little mix up, forgot to mention the file is being "included via php. So the first template cold "master.php", has an include file balled "block1.php holding html and "cms:show" commands, to get data from a master page.

Reason for this is to keep html off the masterpage and include files (which contains a mini app) where required.


<cms:pages masterpage='template/temp_block_services.php' label='<K_folder_title>' orderby='random'>

can one have randon aswell as set a label? Also can label be the k_page_title?


thanks again
When it comes to forcing Couch to co-exist with PHP, I'm sorry we cannot say for sure what the outcome would be - might work, might not work. As you know, Couch is meant to be retro-fitted into *static* sites only.

The Couch way of keeping things compartmentalized is to use cms:embed. Will work just the same as PHP include. Please try using it.
1.Tried embed, it prints out the "name" tag rather then the data the field "name" is holding.

So "<cms:show name='footer_link44' />" show "footer_link44". and not what data it contains.


2. Can you make templates from embed files, instead of it being a file that can call master pages?

3. is this also correct?
<cms:pages masterpage='template/temp_block_services.php' label='<K_folder_title>' orderby='random'>

can one have randon aswell as set a label? Also can label be the k_page_title?
1.Tried embed, it prints out the "name" tag rather then the data the field "name" is holding.
Please attach both the main template and the the embedded snippet. Can comment on this only after taking a look at both.

2. Can you make templates from embed files, instead of it being a file that can call master pages?
No. That is the main difference between templates and snippets. Templates are the files that are accessed from the browser by their names in the URL. Snippets are meant to hold portions of the contents appearing within those templates (for re-usability)

3. is this also correct?
<cms:pages masterpage='template/temp_block_services.php' label='<K_folder_title>' orderby='random'>
cms:pages does not have a 'label' parameter so it is not correct. Not sure what you are trying to achieve by that, though. Can you please explain?
Sorry the label field should be "folder", so masterpage only gets the articles with folder title same as page then "order" gives a random page.

files attached.

So what is the best was to include a php that has cms:show tags which relate to a masterpage and set id, into another template clone.

So this app:
app.php
masterpage.php

will be included into a template clone.

Trying my best to move away from php and use couchcms thinking.


Main Clone Page:

Code: Select all
<?php    include($_SERVER['DOCUMENT_ROOT'].'/acc/cms.php' ); ?>
<!-- Template Details -->
   <cms:template title='Services' clonable='1' commentable='0'>
<!-- Folders  -->
   <cms:folder title="Electrician" name="electrician" />
   <cms:folder title="Electrical Certification" name="electrical_certification" />
   <cms:folder title="Plumber" name="plumber" />
   <cms:folder title="Gas Certification"name="gas_certification"  />
   <cms:folder title="Audio & Video" name="audio_video" />
   <cms:folder title="Security Systems" name="security_systems" />
   <cms:folder title="Water" name="water" />
   <cms:folder title="Air Purification" name="air_purification" />
   <cms:folder title="Natural Homes" name="natural_homes" />
<!-- Main Content  -->
   <cms:editable label='Page image' name='page_image' crop='1' width='900' height='221' type='image' />
   <cms:editable label='Page subtitle' name='page_subtitle' type='text' />
   <cms:editable label='Subtitle' name='content_subtitle' type='text' />
   <cms:editable label='Heading' name='content_heading' type='text' />
   <cms:editable label='Introduction' name='introduction' type='textarea' height='100'/>
   <cms:editable label='Content' name='main_content' type='textarea' />
<!-- SEO  -->
   <cms:editable label='SEO1' name='hidden_Seo_1' type='textarea' />
   <cms:editable label='SEO2 Title' name='hidden_Seo_2_title' type='text' > Available service in the following areas </cms:editable>
   <cms:editable label='SEO2 Text' name='hidden_Seo_2_text' type='textarea' height='100' />
   <cms:editable label='SEO2 Title 1' name='hidden_Seo_2_title1' type='text' > London </cms:editable>
   <cms:editable label='SEO2 List 1' name='hidden_Seo_2_block1' type='richtext' > <!--6 Hyper Links--> </cms:editable>
   <cms:editable label='SEO2 List 2' name='hidden_Seo_2_block2' type='richtext' > <!--6 Hyper Links--> </cms:editable>
   <cms:editable label='SEO2 List 3' name='hidden_Seo_2_block3' type='richtext' > <!--6 Hyper Links--> </cms:editable>
   <cms:editable label='SEO2 Title 2' name='hidden_Seo_2_title2' type='text' > Hertfordshire </cms:editable>
   <cms:editable label='SEO2 List ' name='hidden_Seo_2_block4' type='richtext' > <!--6 Hyper Links--> </cms:editable>

</cms:template>
<cms:if k_is_page>

<?php
include($_SERVER['DOCUMENT_ROOT']."/template/header.php");
include($_SERVER['DOCUMENT_ROOT']."/template/temp_php.php");
?>

<div class="bbshadowb" style="height:243px; width:900px;">
   <div class="picbar">
      <div><img src="<cms:show blog_image />" width="900" height="221" /></div>
   </div>
   <div class="bodyheader">
      <ul>
        <li id="homeicon"><a href="/index.php">Home</a></li>
        <li >
           <a  href="/<?php echo $var_header_services_link; ?>.php"><?php echo $var_header_services ?></a>
        </li>
        <li><a href=""><cms:show k_page_title /></a></li>
      </ul>
   </div>
</div>
<div style="line-height:13px;">&nbsp;</div>
<div class="bodydiv bbshadowb"> 
   <div class="body_title"><cms:show k_page_title /></div>
      <div class="hidediv"><cms:show hidden_Seo /></div>
   <div class="body_subtitle"><cms:show page_subtitle /></div>

   <div class="bodymain">
      <div class="bodytext_2third">
         <p class="typotitle"><cms:show k_page_title /></p>
         <p class="typosubtitle"><cms:show content_subtitle /></p>
         <p class="typoheading"><cms:show content_heading /></p>
         <p class="typointro"><cms:show introduction /></p>
         <p class="typotext_col"><cms:show main_content /></p>
      </div>
      <cms:pages masterpage='template/temp_block_serpricing.php' id='3'><!-- CREATE DYNAMIC LINK -->
         <div class="bodytext_1third">
            <p class="typoheading_or"><cms:show p_block_title /></p>
            <p style="text-align:;"><cms:show p_block_text /></p>
               <table style="margin:0px auto; padding-top:10px; width:90%;">
                 <tr>
                  <th width="90%"><p class="bodytext_pricing"><cms:show p_block_column1 /></p></td>
                  <th width="10%"><p class="bodytext_pricingor"><cms:show p_block_column2 /></p></td>
                 </tr>
                 <tr>
                  <td width="90%"><p class="bodytext_pricing"><cms:show time_mon_fri_day /></p></th>
                  <td width="10%"><p class="bodytext_pricingor"><cms:show price_smon_fri_day /></p></th>
                 </tr>
                 <tr>
                  <td width="90%"><p class="bodytext_pricing"><cms:show time_sat_sun_eve /></p></th>
                  <td width="10%"><p class="bodytext_pricingor"><cms:show price_sat_sun_eve /></p></th>
                 </tr>

                 <tr>
                  <td width="90%"><p class="bodytext_pricing"><cms:show time_sat_sun_day /></p></th>
                  <td width="10%"><p class="bodytext_pricingor"><cms:show price_sat_sun_day /></p></th>
                 </tr>
                 <tr>
                  <td width="90%"><p class="bodytext_pricing"><cms:show time_sat_sun_eve /></p></th>
                  <td width="10%"><p class="bodytext_pricingor"><cms:show price_sat_sun_eve /></p></th>
                 </tr>
               </table>
            <p style="padding-top:10px;"><cms:show p_block_outro /></p>
            <p class="typoheading_or"><cms:show p_block2_title /></p>
            <p><cms:show P_block2_text /></p>
            <div style="width:150px; height:64px; margin:12px 0 0 19px;"><img src="<cms:show p_block2_image />"></div>
         </div>
      </cms:pages>
   </div>
</div>
   <div class="hidediv">
      <p class="typoheading_or typosubtitle"><cms:show hidden_seo_2_title /></p>
         <cms:show hidden_seo_2_text />
         <div>
         <div class="footerbox fblast footsml">
         <p style="font-weight:bold;"><cms:show hidden_seo_2_title_1 /></p>
            <div class="footerboxtext" style="width:220px;">
               <cms:show hidden_seo_2_block1 />
            </div>
         </div>
         <div class="footerbox fblast footsml">
         <p style="font-weight:bold;"></p>
            <div class="footerboxtext" style="width:220px;">
               <cms:show hidden_seo_2_block2 />
            </div>
         </div>
         <div class="footerbox footsml">
         <p style="font-weight:bold;"></p>
            <div class="footerboxtext" style="width:220px;">
               <cms:show hidden_seo_2_block3 />
            </div>
         </div>
         <div class="footerbox fblast footsml">
         <p style="font-weight:bold;"><cms:show Hidden_seo_2_title2 /></p>
            <div class="footerboxtext" style="width:220px;">
               <cms:show hidden_seo_2_block4 />
            </div>
         </div>
         </div>
   </div>
<div style="height:15px;"></div>
<cms:pages masterpage='template/temp_block_shop.php' id='4'><!-- CREATE DYNAMIC LINK -->
   <div class="bodyblock bbshadowb">
      <p class="typotitle_sml"><cms:show product_link_block1_title /></p>
      <p class="typosubtitle_sml"><cms:show product_link_block1_subtitle /></</p>
      <p class="typotext" style="padding-top:16px;">
      <ul class="blocklist">
         <li><a href="" ><cms:show product_link_block1 /></a></li>
         <li class="bodyblockhover_text2"><a href="" ><cms:show product_link_block2 /></</a></li>
         <li class="bodyblockhover_text3"><a href="" ><cms:show product_link_block3 /></a></li>
         <li class="bodyblockhover_text4"><a href="" ><cms:show product_link_block4 /></a></li>
         <li class="bodyblockhover_text5"><a href="" ><cms:show product_link_block5 /></a></li>
         <li class="bodyblockhover_text6"><a href="" ><cms:show product_link_block6 /></a></li>
         <li class="bodyblockhover_text7"><a href="" ><cms:show product_link_block7 /></a></li>
         <p>&nbsp;</p>
         <li class="bodyblockheader1" id="bodyblockheader1"><img src="<cms:show Product_link_block1_image />"></li>
         <li id="bodyblock_text2"><img src="<cms:show product_link_block2_image />"></li>
         <li id="bodyblock_text3"><img src="<cms:show product_link_block3_image />"></li>
         <li id="bodyblock_text4"><img src="<cms:show product_link_block1_image />"></li>
         <li id="bodyblock_text5"><img src="<cms:show product_link_block1_image />"></li>
         <li id="bodyblock_text6"><img src="<cms:show product_link_block6_image />"></li>
         <li id="bodyblock_text7"><img src="<cms:show product_link_block7_image />"></li>
      </ul>
      </p>
   </div>   
</cms:pages>
<cms:pages masterpage='template/temp_block_services.php' label='<K_folder_title>'  orderby='random'><!-- CREATE DYNAMIC LINK -->
   <div class="bodyblock bbshadowb">
      <p class="typotitle_sml"><cms:show service_link_block1_title /></p>
      <p class="typosubtitle_sml"><cms:show service_link_block1_subtitle /></p>
      <p class="typotext" style="padding-top:16px;">
      <ul class="blocklist">
         <li><a href="" ><cms:show service_link_block1 /></a></li>
         <li class="bodyblockhover_text2"><a href="" ><cms:show service_link_block2 /></a></li>
         <li class="bodyblockhover_text3"><a href="" ><cms:show service_link_block3 /></a></li>
         <li class="bodyblockhover_text4"><a href="" ><cms:show service_link_block4 /></a></li>
         <li class="bodyblockhover_text5"><a href="" ><cms:show service_link_block5 /></a></li>
         <li class="bodyblockhover_text6"><a href="" ><cms:show service_link_block6 /></a></li>
         <li class="bodyblockhover_text7"><a href="" ><cms:show service_link_block7 /></a></li>
         <p>&nbsp;</p>
         <li class="bodyblockheader1" id="bodyblockheader1"><img src="<cms:show product_link_block1_image />"></li>
         <li id="bodyblock_text2"><img src="<cms:show service_link_block2_image />"></li>
         <li id="bodyblock_text3"><img src="<cms:show service_link_block3_image />"></li>
         <li id="bodyblock_text4"><img src="<cms:show service_link_block4_image />"></li>
         <li id="bodyblock_text5"><img src="<cms:show service_link_block5_image />"></li>
         <li id="bodyblock_text6"><img src="<cms:show service_link_block6_image />"></li>
         <li id="bodyblock_text7"><img src="<cms:show service_link_block7_image />"></li>
      </ul>
      </p>
   </div>      
</cms:pages>
<div class="bodyblock bodyblock_last bbshadowb">
<?php
   include($_SERVER['DOCUMENT_ROOT']."/template/temp_block_contactus.php");
?>
</div>
<div style="height:15px;"></div>
<cms:embed 'footer.php'/>

<cms:else />
<?php 
   include($_SERVER['DOCUMENT_ROOT']."/template/header.php");
   include($_SERVER['DOCUMENT_ROOT']."/template/footer.php");
?>
</cms:if>

<?php COUCH::invoke(); ?>


Snippet:
Code: Select all
<div class="footerindexwrap">
   <div class="header">
      <div>

         <div class="footerbox">
         <p style="font-weight:bold;">Products</p>
            <div class="footerboxtext">
               <p><a href="">Aquasana counter top filter</a></p>
               <p><a href="">Aquasana whole house filter</a></p>
               <p><a href="">Visonic wireless security system</a></p>
               <p><a href="">Honeywell Alarm system</a></p>
               <p><a href="">Intruder prevention security</a></p>
            </div>
         </div>

         <div class="footerbox">
         <p style="font-weight:bold;">Services</p>
            <div class="footerboxtext">
               <p><a href="">Electrical Condition Reports</a></p>
               <p><a href="">Electrical Periodic Inspections</a></p>
               <p><a href="">Electrical Installation</a></p>
               <p><a href="">Electrical Fault Finding</a></p>
               <p><a href="">Gas Safety Certification</a></p>
               <p><a href="">Security system installation</a></p>
            </div>
         </div>
         <div class="footerbox">
         <p style="font-weight:bold;">About Us</p>
            <div class="footerboxtext">
               <p><a href="">APEC History</a></p>
               <p><a href="">APEC Philosophy</a></p>
               <p><a href="">Changing the way we think</a></p>
               <p>&nbsp;</p>
               <p><a href="">APEC Living</a></p>
               <p><a href="">APEC Harmony</a></p>
            </div>
         </div>
<cms:pages masterpage='template/temp_footer.php' id='8'><!-- CREATE DYNAMIC LINK -->

         <div class="footerbox fblast">
         <p style="font-weight:bold;">Contact Information</p>
            <div class="footerboxtext" style="width:220px;">
               <p><cms:show name="footer_link41" /></p>
               <p><cms:show name="footer_link42" /></p>
               <p>&nbsp;</p>            
               <p><cms:show name="footer_link43" /></p>
               <p>&nbsp;</p>
               <p><a href="tel:02072062772"><b><cms:show name='footer_link44' /></b></a></p>
            </div></cms:pages>
         </div>

      </div>
   </div>
   <div class="footer">
      <div class="faq">
      <a href="#hide1" class="hide" id="hide1"></a>
      <a href="#show1" class="show" id="show1"></a>
      <div class="question">© Copyright 2014 APEC ENERGY LTD &nbsp; |&nbsp;<a href="">Privacy</a> |&nbsp;<a href="">Terms</a> |&nbsp;<a href="">About Us</a>&nbsp;|</div>
        <div class="list">
        </div></div>
</div>
   
   </div>
   </div>
   
</div>

</body>
</html>

MASTERPAGE FOR SNIPPET
Code: Select all
<?php    include($_SERVER['DOCUMENT_ROOT'].'/acc/cms.php' ); ?>
<!-- Template Details -->
   <cms:template title='TempFooter' clonable='1' commentable='0' order='101'>
<!-- Folders  -->
   <cms:folder title="Electrician" name="electrician" />
   <cms:folder title="Electrical Certification" name="electrical_certification" />
   <cms:folder title="Plumber" name="plumber" />
   <cms:folder title="Gas Certification"name="gas_certification"  />
   <cms:folder title="Audio & Video" name="audio_video" />
   <cms:folder title="Security Systems" name="security_systems" />
   <cms:folder title="Water" name="water" />
   <cms:folder title="Air Purification" name="air_purification" />
   <cms:folder title="Natural Homes" name="natural_homes" />
<!-- Pricing Block  -->
<!-- Prcing Block 2  -->   
   <cms:editable label='Title 1' name='footer_title1' type='text' > Pricing Information </cms:editable>
   <cms:editable label='Hyperlink 1' name='footer_link11' type='text' > </cms:editable>
   <cms:editable label='Hyperlink 2' name='footer_link12' type='text' > </cms:editable>
   <cms:editable label='Hyperlink 3' name='footer_link13' type='text' > </cms:editable>
   <cms:editable label='Hyperlink 4' name='footer_link14' type='text' > </cms:editable>
   <cms:editable label='Hyperlink 5' name='footer_link15' type='text' > </cms:editable>
   <cms:editable label='Hyperlink 6' name='footer_link16' type='text' > </cms:editable>
<!-- Prcing Block 2  -->   
   <cms:editable label='Title 4' name='footer_title2' type='text' > Pricing Information </cms:editable>
   <cms:editable label='Hyperlink 1' name='footer_link21' type='text' > </cms:editable>
   <cms:editable label='Hyperlink 2' name='footer_link22' type='text' > </cms:editable>
   <cms:editable label='Hyperlink 3' name='footer_link23' type='text' > </cms:editable>
   <cms:editable label='Hyperlink 4' name='footer_link24' type='text' > iuhoihio</cms:editable>
   <cms:editable label='Hyperlink 5' name='footer_link25' type='text' > </cms:editable>
   <cms:editable label='Hyperlink 6' name='footer_link26' type='text' > </cms:editable>
<!-- Prcing Block 2  -->   
   <cms:editable label='Title 4' name='footer_title3' type='text' > Pricing Information </cms:editable>
   <cms:editable label='Hyperlink 1' name='footer_link31' type='text' > </cms:editable>
   <cms:editable label='Hyperlink 2' name='footer_link32' type='text' > </cms:editable>
   <cms:editable label='Hyperlink 3' name='footer_link33' type='text' > </cms:editable>
   <cms:editable label='Hyperlink 4' name='footer_link34' type='text' > uuuuooo</cms:editable>
   <cms:editable label='Hyperlink 5' name='footer_link35' type='text' >uuuu </cms:editable>
   <cms:editable label='Hyperlink 6' name='footer_link36' type='text' > </cms:editable>
<!-- Prcing Block 2  -->   
   <cms:editable label='Title 4' name='footer_title4' type='text' > Contact Information </cms:editable>
   <cms:editable label='Hyperlink 1' name='footer_link41' type='richtext' > 27 Old Gloucester Street, WC1N 3AX </cms:editable>
   <cms:editable label='Hyperlink 2' name='footer_link42' type='richtext' > Company number: 08912101</cms:editable>
   <cms:editable label='Hyperlink 3' name='footer_link43' type='richtext' > uuiu</cms:editable>
   <cms:editable label='Hyperlink 4' name='footer_link44' type='richtext' > uuiui</cms:editable>
</cms:template>
<?php COUCH::invoke(); ?>

I think the problem is that you are using the following in the snippet -
Code: Select all
<cms:show name="footer_link41" />

It should actually be -
Code: Select all
<cms:show footer_link41 />

The syntax in a snippet remains exactly the same as in the main templates.

Does the change help?
Yes thank you, getting to grips with ithings sorry for silly error.

Still trying to get the cms:page
For example..

Clone page 1 - this clone page folder = electrical

folder names: Electrical, Plumbing.

Clone page 2 (which is a snippet, with a mastepage tag and mastepage file) this folder should choose the folder name related to Clone page 1.

folder names: Electrical, Plumbing

I have been trying to maniplulate this tag:
Code: Select all
<cms:pages masterpage='app/block/servicelst.php' id='3'><!-- CREATE DYNAMIC LINK -->


so instead of using id='3' i used folder=''<?php "and put php into the tag to get the data, but no luck.

If clone page 1 folder name is electrical, then clone page 2 should only search out blogs in its electrical folder
looked into to relations but not sure that it suits this?
11 posts Page 1 of 2