Announcement

Collapse
No announcement yet.

Scots Blog - All Posts

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    Scots Blog - All Posts

    I thought I saw someone asking about creating a list of all blog post with Scot's Blog. Well, here's the code:

    Code:
          <h4 class="lead">All Posts</h4>
          <div class="sbAllPosts">
    
          <mvt:comment>Get the Category List</mvt:comment>
          <mvt:item name="scotsblogger" param="categories" />
          <mvt:foreach iterator="category" array="scotsblogger:categories">
          
             <mvt:comment> For Each Category, Set the Current Cat and Get the Articles</mvt:comment>
             <mvt:assign name="g.scotsblogger_category_code" value="l.settings:category:code" />         
             <mvt:item name="scotsblogger" param="category posts" />
             <mvt:foreach iterator="post" array="scotsblogger:categoryposts">
             
                <p><a href="&mvt:post:url;">
                <mvt:if expr="l.settings:scotsblogger:currentpost:id EQ l.settings:post:id">
                   <span class="scotsblogger-postTitle">&mvt:post:title;</span>
                <mvt:else>
                   &mvt:post:title;
                </mvt:if>
                </a></p>
             </mvt:foreach>
    
          </mvt:foreach>
          </div>
    http://scotsscripts.com/blog/introdu...s-blogger.html
    Bruce Golub
    Phosphor Media - "Your Success is our Business"

    Improve Your Customer Service | Get MORE Customers | Edit CSS/Javascript/HTML Easily | Make Your Site Faster | Get Indexed by Google | Free Modules | Follow Us on Facebook
    phosphormedia.com
Working...
X