Problems, need help? Have a tip or advice? Post it here.
6 posts Page 1 of 1
Hi all, new here.
Couch looks great to me btw!

Can someone please share simple blog and gallery template that I can use as a reference while building my own site?
I just need this for blog:
title
richtext
image

And for gallery, just:
title
image (lightbox if possible)

I intend to display blog on a single html page as there are not going to be many entries, or is this not a good idea?
Thanks for all the help you can provide
Can someone please share simple blog and gallery template that I can use as a reference while building my own site?


These two links should explain all that you need for implementing the blog:
Blog (Part 1)
Blog (Part 2)

And for gallery, just:

For gallery this shall be a starting point:
Photo Gallery

For lightbox gallery, I personally prefer using:
Lightbox 2
Its pretty simple to implement.

Please feel free to post your queries.

Regards,
GenXCoders
Image
where innovation meets technology
Download source files (blog docs)
Thanks for your reply. I'm sorry I was reading docs. about couch entire morning, perhaps this can help:

I have this page blog.php
at the top:
Code: Select all
<?php require_once( 'couch/cms.php' ); ?>
<cms:template title='News' clonable='1' dynamic_folders='1' order='1' >
    <cms:editable name='blog_content' label='Text' type='richtext' order='1' />
   <cms:editable name='blog_image' label='Image' width='800' quality='100' show_preview='1' order='3' type='image' />
</cms:template>

at the bottom:
Code: Select all
<?php COUCH::invoke(); ?>


and

Code: Select all
<div class="container-fluid">
      
            <div class="row">
               <div class="col-md-12 ml-md-auto mr-md-auto">
      
                  <!-- Rooms - List -->
                  <div class="rooms rooms--list">
      
                     <!-- Room #1 -->
                     <div class="room">
                        <div class="room__body box">
                           <!-- Header -->
                           <header class="room__header">
                              <!-- Title -->
                              <h2 class="room__title"><cms:show blog_title /></h2>
                              <!-- Title / End -->

                           </header>
                           <!-- Header / End -->
                           <!-- Couch  -->
                           <div class="room__excerpt">

                              <cms:show blog_content />

                           </div>
                           <!-- Content / End -->
                           
                        </div>
                        <!-- Image -->                     
                        <figure class="room__img">
                           <img src="<cms:show blog_image />" alt="">
                        </figure>
                        <!-- Image / End -->
                        
                     </div>
                     <!-- Room #1 / End -->                                                
                  </div>
                  <!-- Rooms - List / End  -->      
               </div>
            </div>
</div>


Now, I have the fields in the backend/admin area, but something is wrong because nothing I save is displayed in frontend.
Perhaps, Views..
@Milo.
I hope your issue is sorted.
Please do think of supporting the development of this lovely CouchCMS, by buying a license for your projects.
Regards and Best Wishes,
GenXCoders (Aashish)
Image
where innovation meets technology
6 posts Page 1 of 1
cron