Page 1 of 1

news in new window

Posted: Sat Mar 03, 2007 3:45 am
by seafurymike
Hi,

I have managed to incorporate the news module in Panoramica.

What I have noticed is that when I click to read the news, it fills the top section and the remaining sections below retain their content.

Is there any way to get it to open in a new page of its own?
I assume it would use the " target="_blank" command, but I am unsure where to apply it in the "detail template" section of news.

Also, how can I move the content over a little, as it is hard up on the left side of the window

/M

Re: news in new window

Posted: Sun Mar 04, 2007 8:27 pm
by RonnyK
/M,

why don't you use the "detailpage"-option in the calling of the news-entry, to push it to a specific content-page.

I have the news and have an empty content-page called NEWS. If you call it like below, the content-page "news" is opened with NEWS as header. This way you also have it as a specific page and still within your site.

{news category="general" number=5 detailpage='Uutiset' detailpage="news" dateformat="%d-%m-%Y"}

Ronny

Re: news in new window

Posted: Tue Mar 06, 2007 1:27 am
by seafurymike
Hi Ronny,

Okay i see where you are coming from. I found the references that you are using in Modules/News.
I used the page command in your post, but my bigger problem is that the stylesheet overides what I am trying to accomplish.

I have attached a copy of what happens when I hit the news link.
It sends the news to the top section of the stylesheet and leaves the remaining text viewable.

I would think I need to create a new "something" like a template and refer to it. Is my thinking correct?

I was wondering if anyone could provide some guidance on how I need to approach the solution. Sorry if this is easy to some, but I am still trying to get my head around how everything links to each other.

/Michael


[gelöscht durch Administrator]

Re: news in new window

Posted: Tue Mar 06, 2007 7:27 pm
by RonnyK
Michael,

what I did is create a content-page called 'news' and on the option-tab, uncheck the "show in menu". That way it is not visible in the menu, but it is active. If you then call news like:

{news category="general" number=5 detailpage="news" dateformat="%d-%m-%Y"}

The news will be displayed on the content-area of the page called news.

If you want to see what it looks like, you can check my site:

www.terspille.nl

where on the main-page, the news is listed. After pressing a news-entry, the content-area is filled with the details of the news-entry, on the content-page called with "detailpage".

Ronny

Re: news in new window

Posted: Tue Mar 06, 2007 11:54 pm
by seafurymike
Thanks Ronny,

I now understand what you are doing.
I applied your approach and it worked great.

The only problem I now have is that the content does not automatically offset itself to the right.
Do I have to set this up in the news module?

/Michael

Re: news in new window

Posted: Wed Mar 07, 2007 12:32 pm
by RonnyK
Michael,

the styling of the news-detail is indeed done through the css of the news. If you check the tab "detail template" of the news-module, you'll see what styling-elements are being used. If you want to edit it, you can change the elements to you own styling, otherwise you'll have to change the styling in (a copy of) the css "news", to reflect all styling of the different elements.

Ronny