Page 1 of 1

Can News and Calendar be on Menu linked pages ?

Posted: Sun Jan 28, 2007 11:12 am
by Ulysses
Currently there is a small News box on every page, and when I click on a news link, it displays the full article on whatever page I am at, which is a bit odd, as I could be on (say) the Contact Us page or Terms or whatever.

Is there a way to only show the news on one page, accessible from the main menu - much like the FormBuilder module ?

I also want to do the same with the Calendar module, but perhaps keeping a small calendar on some pages.

Thanks

PS. This is one of the cleanest and most professionally presented CMS I have seen to date. Ejoying the trip.

Re: Can News and Calendar be on Menu linked pages ?

Posted: Sun Jan 28, 2007 12:40 pm
by heatherfeuer
For the news detail page, go to -->Content -->Pages and click on "add new content."  For the content type, select "news" and give the menu item an alias of "news."  When you select the "news" tab under Content, there are two templates.  All I did was to create the menu link, edit the style sheets so that it displays the way I want.  Then in my default index page template (the only one that displays the news summary at the moment) I put the following tag where I wanted the news summary to show:

Code: Select all

{news limit=3 detailpage='news' detailtemplate='newsdetail.tpl'}
Now when someone clicks on "more..." or the headline, they are taken to the detail page.  Same goes for the menu link.

You do the same with the calendar module.  Edit the templates and the stylesheet.  Then create a new page and assign the template to it.  In the {content} area, place the module call for the calendar type you want.  For instance:

Code: Select all

{cms_module module='Calendar' table_id='cal-list' date_format='%b %e, %Y' first_day_of_week='0' display='upcominglist'}
displays upcoming events.

The site I did this on is still in development but you can see how this looks at http://ffgf.selfip.org.

Hope that helps!
Heather

Re: Can News and Calendar be on Menu linked pages ?

Posted: Sun Jan 28, 2007 9:19 pm
by Ulysses
Hello Heather,

That helps a lot, and it all begins to make sense now. Though I now need to decipher the tableless CSS to make it look nice.

Thanks very much.

Re: Can News and Calendar be on Menu linked pages ?

Posted: Sun Jan 28, 2007 9:35 pm
by heatherfeuer
I understand how you feel!!  :D  I felt the same way the first time I designed a table-free site using just CSS.

Be sure to check out the W3C's CSS Manual.  Good luck!

Re: Can News and Calendar be on Menu linked pages ?

Posted: Mon Jan 29, 2007 3:35 am
by Dr.CSS
Themes for CMSMS... most all table free...

http://themes.cmsmadesimple.org/Full_Themes.html

Re: Can News and Calendar be on Menu linked pages ?

Posted: Mon Jan 29, 2007 5:27 am
by Ulysses
Yes, unfortunately they are tableless, and therefore unnecessarily complex.

Re: Can News and Calendar be on Menu linked pages ?

Posted: Mon Jan 29, 2007 1:15 pm
by heatherfeuer
Actually, once you understand fully how to properly use divs, tableless markup is really much simpler!  I used to feel the same way until I actually used divs and style sheets to create the same layout without tables.

Re: Can News and Calendar be on Menu linked pages ?

Posted: Mon Jan 29, 2007 3:32 pm
by Dr.CSS
Ulysses wrote: Yes, unfortunately they are tableless, and therefore unnecessarily complex.
So, looking at the source view, you think this... http://www.multiintech.com/index.php/or ... hadow.html

is more complex than this... http://www.oswd.org/files/designs/1570/autonomous/ you will need to look at the source of that frame...

Second template has...
47 calls for #AAAAAA
30 for #FFFFFF
21 for #F0F0F0
6 #FFBA27
5 #F9F9F9
4 #CCCCCC

It was so much trouble to change colors I converted it to div just so it was easier to change colors...

Not to mention it's much easier on those that rely on screen readers to use the internet...

Re: Can News and Calendar be on Menu linked pages ?

Posted: Sun Feb 25, 2007 9:01 pm
by holybuzz
Thanks again, Heather. Your response to another poster was again just what I needed.  :)

I was trying to point my news summary (from my front page sidebar) to a News page. I did so via page_alias. But I also wanted my main menu item "News" to link to that (obviously) non-static page. The mistake I made was that I didn't switch my News page content-type from "Content" to "News".

It's that kind of little things that usually trip me up.

Thanks.