Build a Headlines Module into your Template
The headlines module displays the headlines of your blog, and is the sole means for the end-user to view your post.
If you want to display the headlines for your blog on a given page, you can use the Servee software. (If this doesn't ring a bell, give this post a read.) But what if you want to display your headlines on all of your pages? There is an easier way than editing those options on every page. Build a headlines module right into your template.
Here is the code you will need. Place this in your template exactly where you want your headlines module to display.
buildModule("Headlines", {"title":"Blog Headlines","displayCount":5,"showSubtitle":"FALSE","showTeaser":"TRUE","cutoff":"paragraphs","cutoffQty":1,"blogId":0});
From here, you have several options. You can edit anything between the {brackets} in this code. Editing these options will change how the headlines are displayed.
"title":"Blog Headlines"
This gives a title to the module. This should say something descriptive, like "Recent News" or "Latest Posts"
"displayCount":5
This selects how many posts are displayed. Leave this blank to display all posts.
"showSubtitle":"FALSE"
This selects whether the subtitle of the post is displayed in the module.
"showTeaser":"TRUE"
When set to "True", this option displays a portion of your post along with your title.
"cutoff":"paragraphs"
If you have "showTeaser" set to "True," this is where you can choose how much of the blog post text is displayed. This is great for a display page, or the homepage of your blog. Choices are "paragraphs" (the <p> tags) or "words" (a strict word count)
"cutoffQty":1
This creates the quantity of the selector chosen above. If you choose to display "paragraphs," typing "1" in this box will display only the first paragraph. If you choose words, you can type "30" to show the first 30 words of your post.
"blogId":0
This value is useful if you have more than one blog. There is no way to tell what the numerical blog ID is when you create a new blog without looking at the database. If you have more than one blog that you would like to display from your template, contact us and we'll give you all the answers.
servee: the web. for humans. issac & kasey kelly, ©.