I there a way to submit News article with no content?

For questions and problems with the CMS core. This board is NOT for any 3rd party modules, addons, PHP scripts or anything NOT distributed with the CMS made simple package itself.
Post Reply
Sendlingur
Forum Members
Forum Members
Posts: 62
Joined: Wed Aug 08, 2018 4:59 pm

I there a way to submit News article with no content?

Post by Sendlingur »

Hi, all

I've been trying to submit a News article without content. It has content but for articles in this specific category I use custom fields for the content.

Obviously I always get the "No content given" message and can't submit the article.

Is there away around this?
User avatar
DIGI3
Dev Team Member
Dev Team Member
Posts: 1629
Joined: Wed Feb 25, 2009 4:25 am
Location: Victoria, BC

Re: I there a way to submit News article with no content?

Post by DIGI3 »

Without customizing the module templates I don't think there is. Workarounds would be to add a comment or specific word that you test for in your output templates.
Not getting the answer you need? CMSMS support options
User avatar
Rolf
Power Poster
Power Poster
Posts: 7825
Joined: Wed Apr 23, 2008 7:53 am
Location: The Netherlands
Contact:

Re: I there a way to submit News article with no content?

Post by Rolf »

At the CMSMS showcase (https://welovecmsms.com) I had similar problem in CGBlog.
When I don't have anything for the Content field, I fill in a dot.

In the templates I use:

Code: Select all

{if $entry->content != '<p>.</p>'}
  {eval var=$entry->content}
{/if}
- + - + - + - + - + - + -
LATEST TUTORIAL AT CMS CAN BE SIMPLE:
Migrating Company Directory module to LISE
- + - + - + - + - + - + -
Image
Post Reply

Return to “CMSMS Core”