XtGems blogging function
Add block - Utilities - Social - Blog
Blog is used to publish articles and snippets of information, while allowing visitors to comment on them.
The blog block
From the building tool you can set the following blog parameters
- Post display
-
display="1"
Headers only
Just the title of the post
-
display="2"
Headers and truncated post body
The title and the first part of the post to the end of the nearest word below 49 characters
-
display="3"
Headers and post body
The title and the whole post
-
display="4"
Headers and first image
The title and the first image from the post or the truncated post body if no image is found
-
display="5"
Headers truncated post body and first image
The title the first image and truncated post body
-
Blog posts per page
entries_per_page="10"
How many posts to display per page
-
Post comments per page
comments_per_page="20"
How many comments to display per page
-
Entries sorting
-
entries_sort="-1"
Oldest first
-
entries_sort="1"
Newest first
-
Comment sorting
-
comments_sort="-1"
Oldest first
-
comments_sort="1"
Newest first
- Hide entry tags
-
hide_tags="1"
Hide entry tags
-
hide_tags="0"
Show entry tags
Hide or show the tag links in the posts
- Show tag
tag=""
Show all posts or just the posts with the selected tag
- Show search box
-
show_searchbox="0"
Hide search box
-
show_searchbox="1"
Show search box
Hide or show the blog search box
More options
- Format
-
format="Y-m-d"
YYYY-MM-DD
-
format="H:i"
hh:mm
-
format="Y-m-d H:i:s"
YYYY-MM-DD hh:mm
-
format="y/m/d"
YY/MM/DD
-
format="d/m/y"
DD/MM/YY
-
format="m/d/y"
MM/DD/YY
-
format="ago"
Time ago
Select a preset format for the post and comment timestamp
The format of the blog timestamp is the same as Time and date
- Time zone
tzone="0"
Set your local timezone + - GMT
Translations
The translations for Xt blog can be set from the building tool or HTML
-
t_back_to_posts=""
Back to posts
-
t_comments=""
Comments
-
t_comments_empty=""
This post has no comments - be the first one !
-
t_post_a_comment=""
Post a comment
-
t_name=""
Name
-
t_comment=""
Comment
-
t_post=""
post
-
t_tags=""
Tags
-
t_search=""
Search
-
t_created=""
Created at
-
t_showing_tagged_posts=""
Showing posts tagged
-
t_no_entries_found=""
No entries found (This only shows if your blog is empty !)
-
t_no_search_results_found=""
No search results founds
-
t_show_all_comments=""
Show all comments
-
t_see_parent_thread=""
See parent thread
-
t_show_all_replies=""
Show all replies
-
t_show_replies=""
Show replies
-
t_reply=""
reply
t_posting_as=""
You are posting as
-
t_comments_login_required=""
Please login in order to post comments
-
t_login=""
Login
-
t_signup=""
Signup
-
t_confirm_email=""
Please confirm your email before posting
-
t_report_spam=""
report spam
Html only blog settings
Using the code editor you can set all of the above plus these additional parameters
Some of these settings will reset if the blog function is subsequently edited using the building tool
- display_limit
display_limit=""
Length of short description (defaults to 49 characters)
Short description will be up to the end of the nearest complete word below the limit
- display_symbol
display_symbol=""
Set what gets shown at the end of the short description the default is ...
- version
version="1"
New features will NOT work
Original classes and simple markup
version="2"
Xtgem template classes and new markup with tags comment and search features
Note: Older sites may still set version 1 as the default so you should check this value using the code editor
- badwords
badwords=""
Comma separated list of words banned from comments
Banned words are replaced by *****
- comments_disable_links
- poster
poster=""
fix the value of the name field to this value and hide the name input of the comment form
Blog function with all settings