Glossary Item Box

Squirrelcart v6.1.0

News Posts

Overview

News Posts are used to create news entries on your website. They can be shown in the News Navigation Block, the News Page, or both.

Creating a News Post
  1. Click the "Modules > News > Posts" menu link

  2. Click
  3. Fill out the Details section using the information below as a guide.


    Name
    This is the name of the news post, and should not contain HTML.

    Date Posted
    The date the post was created

    Enabled
    This field gives you a way to hide a post until you are ready to display it. This field must be checked for the post to be visible.
  4. Fill out the Post section using the information below as a guide


    Display on News Page
    Checking this field will caues the news post to appear on your News Page. All other fields in this section are hidden until this field is checked.

    Post Name
    This field is optional. If you wish to have a different post name appear to your users other than what is in the Name field, enter it here. This field accepts plain text and HTML.

    Show Header
    Checking this field causes the post header to display on your News Page.

    Post From
    This field controls where the content for the post will come from.

    use field - allows you to enter the content in a field on this record

    use file
       - allows you to specify an HTML file on your server to use for the post. When this option is used, the file should be a complate HTML file including an <html /> and <body /> tag. The file is displayed on your News Page in a frameset. For this reason, any anchor tags in the file should have their "target" property set to "_parent" if you do not want the link to open inside the frame.
  5. Fill out the Navigation section using the information below as a guide. This section controls how this post will appear in your News Navigation Block.


    Display in Navigation
    Checking this field will cause this news post to appear in your News Navigation Block. All of the other fields in this section are only visible when this field is checked.

    Nav Name
    This field is optional. It is used as the name of the post in the nav block. If this field is not populated, the value of the Name field is used.

    Display Using
    This controls how the content for this post will appear in the News Navigation Block.

    excerpt from post
    - this allows you to use an excerpt of the full post, starting from the beginning. When this is selected, the # Characters field controls how many characters are used in the excerpt. If your post contains HTML, it's stripped for the purpose of creating the excerpt.

    full post - this option allows you to use the full post content in the News Navigation Block

    other - this option allows you to specify the content for the post using a separate field. This allows you to have the text for the post in the nav block be different than what is seen on the News Page.
  6. If you want to assign the post to a particular section, do so in the News Section field set. This is optional.

  7. If you wish to limit when this post will appear, do so using the Rules field set. Rule Sets are discussed in detail in the Managing Your Store > Rule System section of this documentation.

  8. Click Save Changes

Truncating long posts

News posts will appear on some pages along with other posts. If your post is too long, just add this wherever you would like to truncate it:

{Read_More}

 

Squirrelcart will automatically truncate the post at that position and automatically add a Read More button.

 

When adding the {Read_More} variable, be sure not to place it inside any HTML tags. Doing so can cause invalid HTML. You can view the HTML code for any news post by clicking the Source button in the rich text editor.

 

Example - don't do this:

<p>

     Lorem ipsum dolor sit amet, consectetur adipiscing elit. Suspendisse turpis libero, mattis eu lacinia id, porta eu velit. Morbi at mi lacus.
     Aenean fringilla sed felis consequat porta. Donec fringilla quam lectus, at commodo turpis iaculis ac. Nam eu sem aliquam, dignissim ex vel,
      elementum libero. Curabitur faucibus, ante a dictum egestas, orci enim semper quam, a eleifend neque ligula eu ex. Quisque id dui vel
     eros sagittis congue et at mi. Fusce et cursus sem, at vestibulum quam. Nunc molestie lacus eu massa auctor, eget elementum libero suscipit.
     {Read_More}

</p>

<p>

     Sed mattis purus ac ultricies lacinia. Nulla pharetra sapien eget turpis volutpat tempor. Mauris pellentesque convallis ultrices. Duis dictum
     velit quis tellus tempus, vel scelerisque ipsum volutpat. Praesent urna augue, maximus ut felis sit amet, malesuada convallis est. Nulla sit
     amet lorem ultricies, hendrerit nibh sed.

</p>

 

Instead, do this:

<p>

     Lorem ipsum dolor sit amet, consectetur adipiscing elit. Suspendisse turpis libero, mattis eu lacinia id, porta eu velit. Morbi at mi lacus.
     Aenean fringilla sed felis consequat porta. Donec fringilla quam lectus, at commodo turpis iaculis ac. Nam eu sem aliquam, dignissim ex vel,
      elementum libero. Curabitur faucibus, ante a dictum egestas, orci enim semper quam, a eleifend neque ligula eu ex. Quisque id dui vel
     eros sagittis congue et at mi. Fusce et cursus sem, at vestibulum quam. Nunc molestie lacus eu massa auctor, eget elementum libero suscipit.
 </p>
{Read_More}

<p>

     Sed mattis purus ac ultricies lacinia. Nulla pharetra sapien eget turpis volutpat tempor. Mauris pellentesque convallis ultrices. Duis dictum
     velit quis tellus tempus, vel scelerisque ipsum volutpat. Praesent urna augue, maximus ut felis sit amet, malesuada convallis est. Nulla sit
     amet lorem ultricies, hendrerit nibh sed.

</p>

 

 


© 2001-2017 Lighthouse Development. All Rights Reserved.