Shape 5

Joomla Templates => Campus Life - Club => : AquaClub March 24, 2016, 07:29:17 AM



: 404 Error Page in 2 languages
: AquaClub March 24, 2016, 07:29:17 AM
Hi,

Is it possible to publish two 404 Error pages for 2 different languages?

Also, when I publish the 404 page, the language flags disappear which causes the menu to shift upwards. How can I fix this? (When the menu moves up, it overwrites my header background image which I don't want it to happen)

Thank you for your quick responses by the way, great job! :)

Gozde.


: Re: 404 Error Page in 2 languages
: jonahh March 24, 2016, 11:30:43 AM
Hello,

Unfortunately it can only do 1 language but we figured since its a 404 page it doesn't need multi languages since 404 is universal. You can just remove the text below the 404 text to make sure no other language translation is needed.

Can you post a URL of this so I can see the language flag issue?


: Re: 404 Error Page in 2 languages
: AquaClub March 24, 2016, 12:16:35 PM
I'm currently working on a wamp server, but will move the site to a web server soon. I'll write the URL when I do so.

Thank you.


: Re: 404 Error Page in 2 languages
: AquaClub April 06, 2016, 01:18:43 PM
Here is the URL for you to check 404 page:

aquaclub.net/en

By the way, I have noticed that some websites complete an incomplete URL automatically. I was wondering if there is an extension to do that or we do it by 301 redirect. Do you have any idea? That would solve my problem with 404 errors in incomplete URL cases.

Thank you.


: Re: 404 Error Page in 2 languages
: jonahh April 07, 2016, 11:31:51 AM
When I visit the URL the site shows up fine with no 404 error?


: Re: 404 Error Page in 2 languages
: AquaClub April 07, 2016, 11:44:35 AM
Sorry for that, I need to give you a missing URL. Please try:

http://aquaclub.net/en/dive-trips-ankara/diving



: Re: 404 Error Page in 2 languages
: jonahh April 08, 2016, 12:29:29 PM
Oh ok I see, to modify you would need to add a position to the line of positions here:


:
if ($position_name != "debug" && $position_name != "bottom_menu" && $position_name != "logo" && $position_name != "top_menu" && $position_name != "footer" && $position_name != "search") {
$$position = 'unpublished';
}

In the file /vertex/module_calcs.php at about line 29.  Each of these positions are ones that will show on the 404. The language file positions is custom_2 so you would just need to add this


: Re: 404 Error Page in 2 languages
: AquaClub April 08, 2016, 12:53:07 PM
I think language position is "language" for this template. But custom_2 was also needed. I appreciate.


: Re: 404 Error Page in 2 languages
: jonahh April 11, 2016, 01:36:06 PM
Opps sorry, yes correct :)