Page 1 of 1

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

Posted: Wed Sep 30, 2020 5:03 pm
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?

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

Posted: Wed Sep 30, 2020 5:09 pm
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.

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

Posted: Wed Sep 30, 2020 6:17 pm
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}