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?
I there a way to submit News article with no content?
-
- Forum Members
- Posts: 60
- Joined: Wed Aug 08, 2018 4:59 pm
Re: I there a way to submit News article with no content?
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
- Rolf
- Dev Team Member
- Posts: 7759
- Joined: Wed Apr 23, 2008 7:53 am
- Location: The Netherlands
- Contact:
Re: I there a way to submit News article with no content?
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:
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 CMSMS tutorial: FormBuilder WatchGuard
- + - + - + - + - + -
Did my post help you solving a problem at your (customers) website and it saved you many hours of work?
Great!! Buy me a cup of coffee in return as a small token of appreciation!
Great!! Buy me a cup of coffee in return as a small token of appreciation!