Page 1 of 1
[SOLVED] Help with news module
Posted: Fri Dec 10, 2010 4:20 pm
by george_gr
Hi,
Is there any way to force some text into the content text area of a news item when adding new news items ?
The way it stands now you can not submit news if they are empty. I am looking to find a way around that because I want to display only the titles anyway. At the moment I have to manually add some characters to be able to submit the news item, but would really like to find a way not to have that. Anyone know where the check is made ?
Thanks
George
Re: Help with news module
Posted: Fri Dec 10, 2010 5:37 pm
by Dr.CSS
News is like a page if nothing in the content box it wont submit, you don't have to have anything in the summary, if you don't put anything in the content why make a News item, like really, where is the title going to go to a blank news detail...
I think what you want is to only display the title link to the News item, w/o date, category, summary, more link, etc., easy enuf, just make a new News summary template with just the title link, then in news tag {news summarytemplate='titleonlytemplate'} (titleonlytemplate is whatever you named it)...
Re: Help with news module
Posted: Fri Dec 10, 2010 10:14 pm
by Wishbone
Dr.CSS wrote:
News is like a page if nothing in the content box it wont submit,
Somewhere between 1.6.6 and 1.9 they changed that rule for regular pages. Even though "*Content" has a star next to it, which makes it look like it's mandatory, it doesn't seem to be mandatory any more, though they didn't make the same change for News.
Re: Help with news module
Posted: Fri Dec 10, 2010 10:17 pm
by Wishbone
I tried some clever manipulation of the form template to do this.. Is the "formtemplate" option only for FEU? No matter what I did to the default form, it didn't seem to change backend news editing.
Re: Help with news module
Posted: Mon Dec 13, 2010 10:04 am
by george_gr
Hi,
Well i checked it out a bit.
The only way to circumvent this is to edit.
/modules/news/action.addarticle.php
... snip....
Ofcourse this makes the installation non standard which sucks for future upgrades....
But at least it covers my needs for the moment.
Thanks guys
George