Problems, need help? Have a tip or advice? Post it here.
8 posts Page 1 of 1
Hi everyone

I am impressed with this cms much more and I am creating a cms for a site in testing purpose.

I am creating a clonable template for a page. In the page I have a item which is also to be modified in cms but I want it not to be present in the clonable items ..

That means when I click Add new I want a particular item out of it.. which is out of others but in the same page is there any way to do that
Hi Saravana,

Please forgive me but I couldn't understand the problem completely.

Could you please post in some concrete examples of what you are trying to achieve?
Let us not think about any Couch specific solution (cloned pages etc.) at this stage - please get me the problem in plain terms (any mock screenshots would be very helpful too).

Thanks.
the below code is Which I used to create a template

Code: Select all
<?php require_once( 'dbadmin/cms.php' ); ?>
<cms:template title='Manage Categories' clonable='1' >
<cms:editable name='category_image' label='Select Image' type='image' />
<cms:editable name='category_name' label='Name Of Category' type='text' />
</cms:template>

<cms:if k_is_page >



Code: Select all
   <!--==============slider===================-->
   <div class="slider-wrapper theme-default">
            <div id="slider" class="nivoSlider">
               <!--slider generation for cms-->
                <a href="<cms:editable name='slide_image' label='slide Image' type='image' />"target="blank"><img src="<cms:editable name='link1' label='image link1' type='text'/>"/></a>
                <a href="<cms:editable name='slide_image2' label='slide Image2' type='image' />"target="blank"><img src="<cms:editable name='link2' label='image link2' type='text'/>"/></a>
                 <!--slider generation for cms-->
                      </div>
        </div>

    <script type="text/javascript" src="js/jquery.nivo.slider.js"></script>
    <script type="text/javascript">
    $(window).load(function() {
        $('#slider').nivoSlider();
    });
    </script>
   <!--==============slider===================-->
   
         <!-- Project begins ================================================================= -->
         <div class="project">
            
            <a href="englishrhymes.html"><div class="projectThumbnail">
               <svg class="thumbnailMask"></svg>
               <div class="projectThumbnailHover">
                  <h4><cms:show category_name /></h4>
               </div>
            <img src="<cms:show category_image />" alt="Project 01" class="thumbnailImage" />
            </div></a>
               
            
         </div>
         <!--  Project ends =================================================================== -->



In the above project I define the template for the project section and which should be added on user wish.

I defined a slider section also which should add only once and it should not come again when I click add new button..

Image
I uploaded the image above in which I highlighted the section which should not come once again when i added new but present all the above

Any Help pls
Forgive if my english is not proper
It seems like you are looking for something equivalent to the 'Global Settings' described in the tutorial (http://www.couchcms.com/docs/tutorials/portfolio-site/tying-the-loose-ends.html).

The idea here is that we can fetch editable regions from one template and use them in any other template. You should create a new template, perhaps named slides.php with the following editable regions:
Code: Select all
<cms:template title='Slides' executable='0'>
    <cms:editable name='slide_image' label='slide Image' type='image' />
    <cms:editable name='link1' label='image link1' type='text'/>
    <cms:editable name='slide_image2' label='slide Image2' type='image' />
    <cms:editable name='link2' label='image link2' type='text'/>
</cms:template>

In the 'Manage Categories' template we then slightly modify the slider section:
Code: Select all
<div class="slider-wrapper theme-default">
    <div id="slider" class="nivoSlider">
    <!--slider generation for cms-->
    <cms:pages masterpage='slides.php' limit='1'>
        <a href="<cms:show slide_image/>"target="blank"><img src="<cms:show link1/>"/></a>
        <a href="<cms:show slide_image2/>"target="blank"><img src="<cms:show link2/>"/></a>
    </cms:pages>
    <!--slider generation for cms-->
    </div>
</div>

I'm still a bit confused, so perhaps I misunderstood you.
Thanks cheesy
I know that cheesyproof but is there any way to do with in that template itself. other than creating another template

Pls tell
If you make a template clonable, every page created from it will have the same editable regions. I'm afraid there is no way at present to get around this...

Could you explain why using another template for this is undesirable?
Hi

I want it in one template itself because I want the user should not get confuse and it will be more precise that it it is in one single page itself.

So only i requested this idea
npsaravanakumar wrote: Hi

I want it in one template itself because I want the user should not get confuse and it will be more precise that it it is in one single page itself.

So only i requested this idea


I may be wrong here. but from my limited experience as UX Designer, I would guess, adding new template (slider), would make much less confusion, and it would help to put more content out.

Since you're not using at least 7-10 items, it shouldn't be very confusing for the end-user, as long you stamp correct titles and labels.

Slider it self should be defined as a exceptional element. I had prototyped this layout (slider inside clonable), but the idea was - by adding a service (clonable), user can add 1 corresponding slide, which will then show on main page in randomized order, and even then would highly recommend putting slider data in dofferent template.
8 posts Page 1 of 1