Problems, need help? Have a tip or advice? Post it here.
2 posts Page 1 of 1
I know this may be stupid question, but how to show latest blog posts on homepage/index.php?

I tried this code but that doesn't show anything:

Code: Select all
                <cms:pages masterpage='blog.php' limit='3' >

                <div class="col-md-4">
                    <div class="newsimg">
                    <a alt="<cms:show k_page_title />" title="<cms:show k_page_title />" href="<cms:show k_page_link />"><img alt="<cms:show k_page_title />" title="<cms:show k_page_title />" src="<cms:show blog_image />" class="img-responsive"></a>
                    </div>

                    <div class="box-poc-bg pl-md pt-md pr-md blog-section-mb">
                        <div class="boxHome-height blog-section">
                            <a alt="<cms:show k_page_title />" title="<cms:show k_page_title />" href="<cms:show k_page_link />" class=""><h3 class="section-heading mb-sm"><cms:show k_page_title /></h3></a>
                            <div class="linija">&nbsp;</div>
                           
                             <cms:excerptHTML count="50" ignore="img"><cms:show blog_content />
                         </cms:excerptHTML>
                           
                        </div>
                           
                    </div>
                </div>
               

                </cms:pages >



Then I add this part of code to the end of file and blog posts are showing, but "limit" function is not working, so all post are visible instead only 3:

Code: Select all
<cms:else />

<cms:embed "blog_list.html" />

</cms:if>


Have to mention that everything is working on blog.php, post are visible there. So only problem is on index.php with that limit function.
Well, I don't know what was the problem but it's working now :D

I've deleted blog.php file, uploaded it again and everything is working now. You can close this topic.
2 posts Page 1 of 1

Who is online

In total there are 3 users online :: 0 registered, 0 hidden and 3 guests
(based on users active over the past 5 minutes)

Users browsing this forum: No registered users and 3 guests