I think, it is mistake in the version 0.11-beta5?

Talk about writing modules and plugins for CMS Made Simple, or about specific core functionality. This board is for PHP programmers that are contributing to CMSMS not for site developers
Post Reply
tyaga

I think, it is mistake in the version 0.11-beta5?

Post by tyaga »

I think, it is mistake in the version 0.11-beta5.

If to choose type of "news" at addition new content-page the result of work of the module will appear on page in two places - there where in a pattern it is located {content} and there where {content block ='headtags' wysiwyg ='false '}.
westis

Re: I think, it is mistake in the version 0.11-beta5?

Post by westis »

Hi tyaga,

The intention with News content type was to be used if you want the News module to fill up all the content on a page. This content type will most likely be removed in later versions, as it is kind of confusing.

A better way is to insert {cms_module module='news'} on the page where you want the module to appear. Then you can insert that tag only in one of the content blocks, but not in the other (e.g. the one with headtags). You can either insert this tag in the template (if you also have other content on that page, then you can have the news to appear elsewhere on that page) or in a page (if you only want the news as content, but then you can also add other text in the same content block as the news module).

One problem is though if you use two content blocks AND the news module tag (either in the template or in one of the content blocks in a page). Then when you click on "More" to read the full news article it replaces the content in the {content} tag, but the other content block is empty, meaning that there is white space filling up part of the page.

I would like the news details to open in another template altogether, which would give more freedom in how to display news articles. That will be something for future versions. :-)

Hope that helps.
Ted
Power Poster
Power Poster
Posts: 3329
Joined: Fri Jun 11, 2004 6:58 pm
Location: Fairless Hills, Pa USA

Re: I think, it is mistake in the version 0.11-beta5?

Post by Ted »

Actually, that sounds like a bug to me.  It's definitely possible that when I changed the code for additional content blocks that I messed that up...
Post Reply

Return to “Developers Discussion”