Page 3 of 3

Re: Help with News 2.0

Posted: Wed Aug 03, 2005 2:18 am
by iNSiPiD
OK. Done. The templates now appear as expected in the interface tabs for summary and detail. Odd how when I pasted one in and submitted that it appeared in the DB but not in the interface. Anyway, that's for another time. What I'm more interested in is how this happened and what else might be corrupt or incomplete.

I then did as you suggested and just put {cms_module module=news} and I get no content in page.

http://d81314.i50.quadrahosting.com.au/ ... ?page=news

I'm still flummoxed at how the default templates work however, does the moretext paramter determine summary status?

My previous news page which relied on the older module worked as follows.

Category-specific summary list on specific pages - e.g general, conference, jobs - which then clicked through to the item on the MAIN news page which listed ALL categories under thir respective headings. It was so sweet.

Please tell me I can do this again...once we get my installation working that is.

Re: Help with News 2.0

Posted: Wed Aug 03, 2005 5:58 am
by roan
iNSiPiD wrote: I then did as you suggested and just put {cms_module module=news} and I get no content in page.
Hm, you seem to be a lot smarter than me so I guess that you haven't forgot to change news item status from "Draft" to "Published". That little detail fooled me from start.

/roan

Re: Help with News 2.0

Posted: Wed Aug 03, 2005 7:34 am
by Ted
Oh shoot, you're right.  I didn't make the upgrade routine set them all to published...

I'm surprised I never noticed that before.

Re: Help with News 2.0

Posted: Thu Aug 04, 2005 5:18 am
by iNSiPiD
:) Yes, Roan, all are set to published.

;) Wishy you are forgiven for this oversight given that you probably had more important things to focus on.

Thanks for the reminder, though, I was going to suggest the option to multiple check/uncheck files for publishing be added to the Article list view.

After some more stuffing around and almost exhausting all options I've done the following...again:

1. Synched all site files.
2. Uploaded News module directory again.
3. Uploaded custom templates again.
4. hanged the module test call to {cms_module module="News" category="General" summarytemplate="summary.tpl"}

And would you believe...IT FR3AKING WORKED!

I've no idea what the "real" culprit was and am still not sure if my installation is working as intended (for example, if I don't specify a summary template, nothing gets displayed in the page) but this will more than do for now.

Thanks to all those who have offered help on this thread. Let's hope it can help someone else.

And if I'm not pushing my luck too much - I don't suppose there's an option for 'friendly' URLs?

Oh yeah, other feature requests would include:

- the ability to assign multiple categories to a news article. (I love the child/parent idea by the way.)

[iNSiPiD bolts quickly from the room]

Re: Help with News 2.0

Posted: Thu Aug 04, 2005 4:23 pm
by Ted
Yeah, something still isn't right.  I have no idea what it is.  You seem to be the only one that has complained about the template thing.

I was going to do multiple categories, but it was turning into a nightmare.  I might try to reimplement at a later date. 

As for friendly URLs, I believe that there is a forum post or two about making that work properly.  I'd like to have a
better option for that, but I want it to be part of the module API, so it's been put on hold for now until I get some more free time (next month, no doubt)

Re: Help with News 2.0

Posted: Fri Aug 05, 2005 12:04 am
by iNSiPiD
Yeah, I started a couple of those threads but they only deal with rewriting the simple pattern-based "index.php?page=" URLs.

It would be ludicrous to try to solve this with mod_rewrite.

The possibilities created by all the paramters tagged to the URL from this module would be much better re-written by the module itself.

I'd suggest the format .../category(parent)/category(child)

NB: The Parent/child category solution, though not as flexible as multiple categories, is really very good it just relies thinking outside the box to get it to work in the manner of multiple. I'm really going to be pushing this module to its limits.

I plan to have the following categories and children at this point and would like to ask:

Would a better solution be for me to replicate the News module and customise it for each purpose, rather than having to many categories and templates?

OR is there less strain and more speed available by only loading the one module?

Courses ->
- non-ASHM
- reportbacks
- short courses
  -- HIV
  -- hepatitis
  -- coinfection
- updates
  -- s100 prescriber
  -- other

Employment ->
- ASHM
- other

Events ->
- broadcast
- conference
- congress
- education
- exhibition
- meeting
- symposium
- workshop

News ->
- general
--  publications
- conference
- international
- education

As you can, radically changing this module again might just create a bit of work for me. :}

Re: Help with News 2.0

Posted: Thu Aug 25, 2005 10:17 pm
by numer9
Is date format option valid in current version of News module? I tried to follow the instructions in this topic, which were using dateformat="D, j M Y" as the formatter (inside the { cms_module module="News" } tag. It doesn't work for me... and there's nothing about it in current help... Any hints?

numer9

Re: Help with News 2.0

Posted: Tue Sep 27, 2005 2:59 am
by iNSiPiD
It's not just the date parameter that doesn't work. The templates seem to have made most of these redundant.

Modify the date format in your template and it should be fine.

Re: Help with News 2.0

Posted: Wed Sep 28, 2005 7:59 pm
by Cipolla
I included the News Module in the start page to show the news-summary of all categories ({cms_module module="news"}). There is also a category called "Game Summary". You get the news-content if you follow the "more" link. This works perfect.

Does the News Module provides the followig opportunity ? In addition to the detailed view described above i want to integrate the game summaries in the menu like the following:

Game Summaries
- Game 1
- Game 2
- Game 3
- etc.

If the user choose Game 2 for example i want the news module to display only the news content of this news entry. I already know this could be realised by using a category for each   
"Game".

Is there any other possibility (parameter) to get this working, maybe by customizing the news module ? Thanks in advance for every hint.   

Re: Help with News 2.0

Posted: Sat Oct 01, 2005 10:26 am
by numer9
hey iNSiPiD,
thanks for your answer. but how do i change the template's format date? it's not in "clickable way" nor in config.php, right? maybe u know what files should i look for?

Re: Help with News 2.0

Posted: Wed Oct 05, 2005 1:17 am
by iNSiPiD
No idea. You used to be able to do this with the dateformat parameter but it doesn't seem to work any more.

I've been right through the module code and can't see how to change this anywhere. The only code for handling this is the following line:

$this->mProperties->Add('string', 'dateformat', 'F j, Y, g:i a');

Does anyone know how to change dateformat for News? Anyone??

Re: Help with News 2.0

Posted: Wed Oct 05, 2005 8:57 am
by westis
iNSiPiD wrote: No idea. You used to be able to do this with the dateformat parameter but it doesn't seem to work any more.

I've been right through the module code and can't see how to change this anywhere. The only code for handling this is the following line:

$this->mProperties->Add('string', 'dateformat', 'F j, Y, g:i a');

Does anyone know how to change dateformat for News? Anyone??
You change the date format in the template, either in the Summary Template or Detail Template right in Admin > News in the Admin panel or in an external template file if you use that instead. Like this:

Code: Select all

{$entry->postdate|date_format:"%d %B, %Y"}

Re: Help with News 2.0

Posted: Wed Oct 05, 2005 10:32 pm
by iNSiPiD
Legend. Thanks, westis. That's one problem out of the way. :)