I have a site that is a one page site. So on the index page I am using code like this to embed the couch content
the problem I have is that I want to do the same with the blog, but using the blog as per the tutorial this causes a problem.
I am calling the blog masterpage from the index like so
and then the blog page is calling the snippet blog-list like so
nothing is showing up is there an easy way of embedding the blog masterpage within the index page?
thanks for any help
- Code: Select all
<!-- About Page -->
<div id="about-us" class="page">
<cms:pages masterpage='about-content.php'>
<cms:show about_content />
</cms:pages>
</div>
the problem I have is that I want to do the same with the blog, but using the blog as per the tutorial this causes a problem.
I am calling the blog masterpage from the index like so
- Code: Select all
<!-- Blog Page -->
<div id="blog" class="page">
<div class="container-fluid innerPage">
<div class="col-sm-10 col-sm-offset-1">
<!-- Page Heading -->
<div class="row">
<div class="col-lg-12">
<h6 class="page-header">Our Blog</h6>
</div>
</div><!-- /.row -->
<!-- Blog Content -->
<div class="row">
<cms:pages masterpage='blog.php'>
</cms:pages>
</div><!-- /.row -->
<hr>
</div>
</div>
</div>
and then the blog page is calling the snippet blog-list like so
- Code: Select all
<?php require_once( 'cms/cms.php' ); ?>
<cms:template title='Blog' clonable='1' commentable='1' order='1'>
<cms:editable
name='blog_title'
label='Blog Title'
desc='Enter blog title here'
type='text' />
<cms:editable
name='blog_image'
label='Blog Image'
desc='Upload your blog image here(330px x 250px)'
width='330'
height='250'
type='image'
/>
<cms:editable
name='blog_text'
label='Blog Text'
desc='Enter blog text here'
type='richtext' />
</cms:template>
<!-- blog Section -->
<cms:if k_is_page>
<!-- Blog Content -->
<div class="row">
<section class="content-section">
<div class="container-fluid" id="bgWhite">
<div class="container">
<div class="row blogListitem">
<div class="col-sm-8 col-sm-offset-2 text-center">
<div class="col-sm-6 col-sm-offset-3"><img src="<cms:show blog_image />" class="img-responsive center-block" title="<cms:show blog_title />" alt="<cms:show blog_title />"/></div>
<div class="col-sm-12">
<br/>
<h1><cms:show blog_title /></h1>
<cms:show blog_text />
<br/><br/>
<a href="#blog" class='btn btn-lg btn-success'>« return to blog feed</a>
</div><!-- /col-->
</div><!-- /col-->
</div><!-- /row-->
<div class="row">
<div class="col-sm-8 col-sm-offset-2">
<h3>Comments</h3>
<hr/>
<cms:if k_comments_count >
<ol class="commentlist">
<cms:comments page_id=k_page_id order='asc' limit='5' paginate='1' limit='10'>
<li class="comment">
<div class="gravatar">
<cms:gravatar email="<cms:show k_comment_author_email />" size="60" />
<a name="<cms:show k_comment_anchor />">
</div>
<div class="comment_content">
<div class="clearfix">
<cite class="author_name"><a href=""><cms:show k_comment_author /></a></cite>
<div class="comment-meta commentmetadata"><cms:date k_comment_date format='F j, Y'/> at <cms:date k_comment_date format='h:ia'/></a></div>
</div>
<div class="comment_text">
<p><cms:show k_comment /></p>
</div>
</div>
<hr/>
</li>
<cms:paginator />
</cms:comments>
</ol>
<cms:else />
No comments.<br/>
<hr/>
</cms:if>
</div><!-- /col-->
</div><!-- /row-->
<div class="row">
<div class="col-sm-8 col-sm-offset-2">
<cms:embed 'comments_form.html'/>
</div><!-- /col-->
</div><!-- /row-->
</div><!-- /container-->
</div><!-- /container-->
<div class="drop-shadow-white curved curved-hz-2"></div><!---drop shadow-->
</section>
<cms:else/>
<cms:embed 'blog-list.php' />
</cms:if>
<?php COUCH::invoke(); ?>
nothing is showing up is there an easy way of embedding the blog masterpage within the index page?
thanks for any help