Jump to content

Search the Community

Showing results for tags 'posts'.

  • Search By Tags

    Type tags separated by commas.
  • Search By Author

Content Type


  • General Discussion
    • Announcements
    • Business Discussion
    • Business Services
    • Sell and Buy
  • Themes & templates
    • KVS default theme
    • KVS paysite theme
  • Educational / support
    • Technical Support
    • FAQ
    • Educational Series

Find results in...

Find results that contain...

Date Created

  • Start


Last Updated

  • Start


Filter by number of...


  • Start



About Me

Found 1 result

  1. KVS Ultimate edition provides Posts module that can be used for extending KVS functionality in many ways: Displaying any structured textual data, such as news, stories, blog posts. Collecting information from members, such as validation documents. Connecting additional items to videos and albums, for example reviews. Extending KVS data structure to additional data types. In order to use posts, one should first create a post type. All posts of the same type have the same data structure and they can be customized with different sets of custom fields in Settings -> Customization section. That's why posts are so powerful customization feature. How to use text posts in KVS KVS default theme provides basic support for text posts: ability to render lists of specific post types and view pages for them. Here are basic steps to get this info displayed. 1) Create a post type in Posts section of admin panel: NOTE: it is not required to have External ID being similar to URL pattern, but if possible it is recommended to have them similar for better routing understanding. 2) After creating a post type you can start creating posts of this type. Under Posts section in admin panel you should now see ability to display all posts of News type and create new posts of News type. 3) In .htaccess file in the root folder of your project you can find the following sample RewriteRules designed for news post type: # posts example -------------------------------------------------------------------------------------------------------- RewriteRule ^news/$ posts_list.php?post_type=news [L,QSA] RewriteRule ^news/([0-9]+)/$ posts_list.php?post_type=news&from=$1 [L,QSA] RewriteRule ^news/([0-9]+)/([^/]+)/$ view_post.php?id=$1&dir=$2 [L,QSA] RewriteRule ^news/([^/]+)/$ view_post.php?dir=$1 [L,QSA] Duplicate these rules for your new post type, if it has another URL pattern or external ID. Replace the first part of RewriteRule with your post type URL pattern (^news/) and replace the last part of RewriteRule with your post type external ID (?post_type=news). Access your post list from the given URL. If RewriteRules are set up correctly, you will see list of your posts with clickable links to their view pages: https://www.kvs-demo.com/news/ 4) If you need to change design of post list or post view pages, please find them in Website UI section of admin panel: 5) In order to add menu item, edit Website UI -> Page components -> include_header_general.tpl template. Find this UL node (the example is for default theme, other themes may have another UL syntax): <ul class="primary"> ... </ul> And add the following list item (LI) to it at the desired position: <li {{if $storage.list_posts_common_posts_list.post_type_info.external_id=='news'}}class="selected"{{/if}}> <a href="{{$config.project_url}}/news/">News</a> </li>
  • Create New...