Developer forum

Forum » Templates » 404 side

Reply

Hej,

 

Kan man tilføje 404 sider til hvert enkelt sproglag man har oprettet - og hvordan gøres dette, eller er det kun muligt at tilføje en generel 404 side for alle sproglag?

 

/Kristoffer


Replies

 
Reply

Please keep your postings in English, thanks.

 
Reply
Sorensen wrote:

Please keep your postings in English, thanks.

Sorry..

 

Can i make a 404 page for each language/area level? - if so, how should I do this?

Or can I only make one general 404 page?

 

Thanks..

 

/Kristoffer

 

 

 
Reply

No, sorry, currently Dynamicweb only supports a single 404 page for all areas.

 
Reply

What if you used this script on the general 404 page and then redirected to the regional 404 pages.

 

if ('<!--@Global:Area.ID-->' == '1') {
        window.location='http://www.domain.com/default.aspx?id=1'
    } else if ('<!--@Global:Area.ID-->' == '2') {
        window.location='http://www.domain.com/default.aspx?id=2'
    } else {
        window.location='http://www.domain.com/default.aspx?id=3'
    }

 

I have not tested this but I think it works.

EDIT: Remember wrap this script in SCRIPT tags.

 

// Sebastian

 
Reply

Forget the example above ...

 

Since you can only get 1 generel 404 page you will always get the same areaid.

 

// Sebastian

 

You must be logged in to post in the forum