[SOLVED] Help with news module

Have a question or a suggestion about a 3rd party addon module or plugin?
Let us know here.
Post Reply
george_gr
New Member
New Member
Posts: 8
Joined: Fri Oct 15, 2010 7:00 am

[SOLVED] Help with news module

Post 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
Last edited by george_gr on Mon Dec 13, 2010 10:05 am, edited 1 time in total.
User avatar
Dr.CSS
Moderator
Moderator
Posts: 12711
Joined: Thu Mar 09, 2006 5:32 am
Location: Arizona

Re: Help with news module

Post 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)...
Wishbone
Power Poster
Power Poster
Posts: 1368
Joined: Tue Dec 23, 2008 8:39 pm

Re: Help with news module

Post 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.
Wishbone
Power Poster
Power Poster
Posts: 1368
Joined: Tue Dec 23, 2008 8:39 pm

Re: Help with news module

Post 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.
george_gr
New Member
New Member
Posts: 8
Joined: Fri Oct 15, 2010 7:00 am

Re: Help with news module

Post 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
Last edited by calguy1000 on Mon Dec 13, 2010 10:27 am, edited 1 time in total.
Post Reply

Return to “Modules/Add-Ons”