Page 1 of 1

CGBlog module shows all posts even if in draft status

Posted: Fri Aug 04, 2017 3:24 pm
by blackrain
I am using the CGBlog module on cmsms 2.1.6 and I have found that when a post is in draft or review status it still appears on the front end summary page. however the link goes to a 404 error as you would expect. is this a known bug or do I need to set something else.

things I have tried are:

adding showall="0" and showdraft="0" in both 0 and 1 but nothing happens.

turning "Show All Articles" in the options to No and Yes, The No option stops all articles from showing on the summary page.

any thoughts on this one would be good, many thanks

Mark

Re: CGBlog module shows all posts even if in draft status

Posted: Tue Aug 08, 2017 11:09 am
by paulbaker
I just tested this by making a published article draft, and it disappeared from the summary list as I would expect.

Suggest you post your summary template. And full system info (see my signature).

Re: CGBlog module shows all posts even if in draft status

Posted: Tue Sep 05, 2017 10:11 am
by blackrain
sorry for delay on this, still having the issue with draft post being visible.

Code: Select all

[* Summary Template *}
<div id="dev-table" class="row row-50">
{foreach from=$items item=entry}
<div class="col l4 m6 s12 grid {foreach from=$entry->categories item='category'}{$category.name|escape|lower|replace:'&':'and'|replace:' ':'-'} {/foreach}">
    <a href="{$entry->detail_url}">
    <div class="box bs news-panel bg-white align-center border">
        <p>{$entry->postdate|cms_date_format}</p>
        <h3 class="txt-red">{$entry->title|cms_escape}</h3>
        {if $entry->summary}

            <p>{$entry->summary|summarize:100:"...":true|strip_tags}</p>

        {else}

            <p>{$entry->content|summarize:100:"...":true|strip_tags}</p>

        {/if}
        <div class="btn btn-more">Read more<i class="material-icons">keyboard_arrow_right</i></div>
    </div>
    </a>
</div>
{/foreach}
</div>
System info
----------------------------------------------
Cms Version: 2.1.6
Installed Modules:
AdminSearch: 1.0.2
CGBlog: 1.14.4
CGExtensions: 1.56.2
CGHTML2PDF: 1.0.3
CGSimpleSmarty: 2.1.6
CMSContentManager: 1.1.4
CMSMailer: 5.2.14
DesignManager: 1.1.1
FileManager: 1.5.2
FormBrowser: 0.5
FormBuilder: 0.8.1.6
JQueryTools: 1.4.0.1
LISE: 1.2.4.beta.5
LISEAttorneys: 1.2.4.beta.5
LISEBriefingTypes: 1.2.4.beta.5
LISEBriefings: 1.2.4.beta.5
LISEBrochures: 1.2.4.beta.5
LISECareers: 1.2.4.beta.5
LISECaseStudies: 1.2.4.beta.5
LISEEvents: 1.2.4.beta.5
LISELinks: 1.2.4.beta.5
LISEOffices: 1.2.4.beta.5
LISEServices: 1.2.4.beta.5
LISESpecialisms: 1.2.4.beta.5
LISETestimonials: 1.2.4.beta.5
LISEWebinars: 1.2.4.beta.5
MetaMax: 2.1.6
MicroTiny: 2.0.3
ModuleManager: 2.0.5
Navigator: 1.0.3
PDFGenerator: 0.3.beta.2
Search: 1.50.2
TinyMCE: 3.1.4
Uploads: 1.25.8

Config Information:
php_memory_limit:
max_upload_size: 128000000
url_rewriting: mod_rewrite
page_extension:
query_var: page
auto_alias_content: true
locale:
set_names: true
timezone: UTC
permissive_smarty: true

Php Information:
phpversion: 5.4.45
md5_function: On (True)
json_function: On (True)
gd_version: 2
tempnam_function: On (True)
magic_quotes_runtime: Off (False)
E_ALL: 24575
E_STRICT: 2048
E_DEPRECATED: 0
test_file_timedifference: No time difference found
test_db_timedifference: No time difference found
create_dir_and_file: 1
memory_limit: 128M
max_execution_time: 60
register_globals: Off (False)
output_buffering: 4096
disable_functions:
open_basedir:
test_remote_url: Success
file_uploads: On (True)
post_max_size: 8M
upload_max_filesize: 128M
session_save_path: /var/lib/php/session (1733)
session_use_cookies: On (True)
xml_function: On (True)
xmlreader_class: On (True)
check_ini_set: On (True)
curl: On

----------------------------------------------

Thanks for your help

Re: CGBlog module shows all posts even if in draft status

Posted: Thu Sep 07, 2017 2:16 pm
by blackrain
seems the settings were completely wrong i set the 'show all articles' and 'show archived articles' to no, this seems to work now.