Welcome, Guest. Please login or register.
Did you miss your activation email?
May 25, 2012, 09:11:28 AM

Login with username, password and session length
Search:     Advanced search
Interested in joining the WebsiteBaker team?
For more Information read here or on our new website.
155482 Posts in 21708 Topics by 7734 Members
Latest Member: adrielkhollis4
* Home Help Search Login Register
Pages: [1]   Go Down
Print
Author Topic: Direct link news problems  (Read 451 times)
Xagone
AddOn Development
*
Offline Offline

Posts: 478



WWW
« on: March 23, 2009, 09:33:18 PM »

i've got some problems with news and anynews

We've setup a site with a hidden news page, we use anynews to add a scroller

problem is, if we try to go directly to 1 news, it redirect to the list....
http://reka.xagone.com/
check that out...
http://reka.xagone.com/pages/posts/nouveaute15.php
go to the list, but retry the same link after visiting the list, it work...

how can ?
never seen this kind of behavior from the news module, do you have an idea ?
Logged

Xagone Inc. (formerly VotreEspace)
http://www.xagone.com/
Ruud
WebsiteBaker Org e.V.

Offline Offline

Posts: 2295



WWW
« Reply #1 on: March 23, 2009, 09:56:53 PM »

It has to do with the language settings of the pages.

The first view the link jumps to the url: http://reka.xagone.com/pages/fr/nouvelles.php?lang=FR (note the lang=FR)
The second time I click the link my session was a;ready set to French, so it will display the message correctly.

It seems your site has a default language setting "EN" and the newspage is in "FR".

The way to handle this with AnyNews is to create 2 news pages (one for EN and one for FR), and on both pages use at least one category.
Next configure AnyNews in such way it will display only the correct category (First parameter for anynews).
If AnyNews is included in your template you will need to add some logic to detect the language and start the correct AnyNews. (i.e. test the url for /en/ or /fr/)
I made a post with a test like that some time ago. Read here.

Ruud

PS: Nice site smiley
Logged

Professional WebsiteBaker Solutions
crnogorac081
AddOn Development
*
Offline Offline

Posts: 1706



« Reply #2 on: March 24, 2009, 08:54:10 AM »

I dont see where your news are, but I like your design very much Smiley
Logged

Wow, I coded something myself: PM Messanger Modul ,Searchbox with suggestions
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!