Welcome, Guest. Please login or register.
Did you miss your activation email?
May 23, 2012, 08:35:20 PM

Login with username, password and session length
Search:     Advanced search
Wollen Sie dem WebsiteBaker Team beitreten?
Nähere Informationen finden Sie unter hier und auf unserer neuen Webseite.
155441 Posts in 21702 Topics by 7732 Members
Latest Member: Smacki
* Home Help Search Login Register
Pages: [1]   Go Down
Print
Author Topic: Open full news article without other blocks?  (Read 1907 times)
dfelix

Offline Offline

Posts: 41


« on: September 17, 2008, 02:05:48 AM »

Hello everyone!

In my WB 2.7 website I have a start page with some blocks...
A News block...
Some Code blocks to get ssi content from a Forum like latest topics, online users, etc.. and some wysiwyg.

There is something i don't like:

When people click at "read more" option, the entire article is displayed where the news list was, keeping all the other blocks content visible.

Is there any simple way that "read more" option only displays de news content?


Thank you so much..
Logged
kweitzel
Forum administrator
*****
Offline Offline

Posts: 6975


WWW
« Reply #1 on: September 17, 2008, 05:57:15 AM »

By Usining the anynews codesnippet in the block where you currently have the news ... but youĺl need to create a page then for news wink

cheers

Klaus
Logged

WebsiteBaker Org e.V. - for WebsiteBaker

dfelix

Offline Offline

Posts: 41


« Reply #2 on: September 17, 2008, 05:16:23 PM »

It works!
Thank you so much!
Logged
dfelix

Offline Offline

Posts: 41


« Reply #3 on: September 23, 2008, 11:37:44 AM »

kweitzel,

Just a simple question:

I'm using the anynews codesnippet to show a list of the most recent news in the main page.
I've placed the news module as a child page of the main page.

You can see it working at:
http://www.minimotoportugal.com

The "read more" link ("ler mais" in portuguese) point to the full news article.
Exactly like I want!

The first url is:
http://www.minimotoportugal.com/pages/posts/cnm-2008-iv---fatima7.php

But... when i Click in the "read more" link, i get the child page with the news module list instead of the full article!

example of the result after click in "read more":
http://www.minimotoportugal.com/pages/pagina-inicial/mais-noticias.php?lang=PT


Is something wrong with my anynews code or the news module?
I've tried differente settings without results.



Thank you so much!
Logged
ruebenwurzel
WebsiteBaker Org e.V.

Offline Offline

Posts: 7972



WWW
« Reply #4 on: September 23, 2008, 11:57:21 AM »

Hello,

not shure if i understand you wright. When i click the "Read more" i see the long text. This is how the modul works. So what is the issue?

Or did you mean the "back" buttom of the news long text wich points you to the news overview. Did you want to be linked back to the start page by hitting this. Is this what you mean?

If yes, this can simply be done by Editing the news options. Look in the Options of the news modul and adjust the link of the "back" Button.

Change:
Code:
<a href="[BACK]">Back</a>

to
Code:
<a href="http://www.minimotoportugal.com">Back</a>

Matthias
Logged
vyni

Offline Offline

Posts: 566


« Reply #5 on: September 23, 2008, 12:35:54 PM »

There is no "read more"  cool

If yes, this can simply be done by Editing the news options. Look in the Options of the news modul and adjust the link of the "back" Button.

Change:
Code:
<a href="[BACK]">Back</a>
to
Code:
<a href="javascript:history.go(-1)">Back</a>

to be sent back where You came from.

regards from Himberg, nearby Vienna
Logged

PS: Falls jemand eine Idee hat was zu tun ist und mir das erklären könnt - geh bitte davon aus dass ich ahnungslos bin, was php und so betrifft. Ich kann grad was lesen, kopieren und einfügen,  ungefähr verfolgen und glauben.
ruebenwurzel
WebsiteBaker Org e.V.

Offline Offline

Posts: 7972



WWW
« Reply #6 on: September 23, 2008, 12:53:00 PM »

@vyni

Code:
<a href="javascript:history.go(-1)">Back</a>

works only if javascript is enabled.  wink

Matthias
Logged
vyni

Offline Offline

Posts: 566


« Reply #7 on: September 23, 2008, 01:51:09 PM »

@ruebenwurzel
Klaro  cheesy

@dfelix
I reallly dont know Your language, but I was trying the Forum-button. And do You know what I got as answer?  shocked

Quote
Fatal error: Call to undefined function ssi_login() in /home/minilcom/public_html/forum/Sources/Load.php(1931) : eval()'d code on line 128

This is a little bit more confusing.

regards from Austria
Logged

PS: Falls jemand eine Idee hat was zu tun ist und mir das erklären könnt - geh bitte davon aus dass ich ahnungslos bin, was php und so betrifft. Ich kann grad was lesen, kopieren und einfügen,  ungefähr verfolgen und glauben.
dfelix

Offline Offline

Posts: 41


« Reply #8 on: September 23, 2008, 03:48:00 PM »

not shure if i understand you wright. When i click the "Read more" i see the long text. This is how the modul works. So what is the issue?

When i click "read more" i don't see the long text!
I see the page wich has the news module!

 smiley

I think that the post's php files are for some reason redirecting the link from anynews to the page where news module is installed.








« Last Edit: September 23, 2008, 03:56:07 PM by dfelix » Logged
Pages: [1]   Go Up
Print
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.16 | SMF © 2011, Simple Machines Valid XHTML 1.0! Valid CSS!