Support Forums

 
  iFinity Support Forum  DotNetNuke Modu...  Url Master  DSLocalizator
Previous Previous
 
Next Next
New Post 4/9/2008 5:46 PM
  Déclic Vidéo FX
85 posts
3rd Level Poster


Re: Bug with DSLocalizator 

Thanks Stephan for reporting the same behavior. That's a show stopper, we can not use Bruce URL Master with multi langual portal without solving this bug...
;-(

Bruce, any idea, solution ????

DV


Video editing tips & tricks, tutorials, free download (Pinnacle Studio, proDAD & Hollywood FX)
 
New Post 4/10/2008 11:08 PM
  Bruce Chapman
477 posts
1st Level Poster


Re: Bug with DSLocalizator 

DV, Stephan

I've been playing around with a combination of DSLocalizator and the Url Master module, and I think I've got a handle on your problem.

As far as I can tell, here's how the DS module works - it replaces the name of the page, dynamically, depending on which language you are currently using.  This name-swap means that the menu items appear with the new name, as does the 'breadcrumbs' and other generated links using the page name.

Now here's the issue you've got : in 4.8.2 the standard DNN Friendly Url Provider has the 'HumanFriendly' Urls functionality, which replaces the home/tabid/66/default.aspx style Urls with the home.aspx style urls.

When the DS module dynamically replaces the page name for a localized tab, then you will generate a new 'human friendly' url with the localised page name, which doesn't actually exist in the list of pages in the database. 

In my case I set up a test portal with two languages en-us and en-gb (I can only speak one language!).   Using the DS module, with 'HumanFriendly' Urls turned off and replacing the name of the Url with either 'American Page' for en-us and 'English Page' for en-gb, the generated Url still works with the DS module.   It's still got the /tabid/66/ bit in the middle, which is all the standard DNN Friendly Url provider needs to to work out which page it is for.

Now, if you replace the standard provider with either the iFinity Friendly Url pPovider or the iFInity Url Master, the 'tabid/66/' portion of the Url gets removed, and the Url is generated as this (depending on the current language):

- mysite.com/American_Page.aspx

- mysite.com/English_Page.aspx

...and not surprisingly, because these pages don't really exist (the page name is changed dynamically by the DS module) you either get a 404, or you just end up with the root mysite.com/ page.

Now here's the thing - you aren't going to be able to use the iFinity Friendly Url Provider module - it doesn't have the ability to dynamically replace the page name.

But, if you are using the Url Master module, you can replace the Url of any page in the site.  It's quite simple to do - just follow these steps (they assume you have the Url Master module installed and running):

1. Go to the admin-> Page Urls page

2.  On the list of pages on the left, select the page that you have changed the name with the DS module.  Let's pretend it's a page called 'greetings', and that, with the DS module, you've set up a french version of the page called 'bonjour', and the other english version of the page is defined as 'hello' in the DS module.  So, with the 'greetings' page selected;

3. Click the 'Add New Url' button, and in the new Url that is created, type in 'bonjour'

4. Set the Http Status to '200-OK' for the new Url

5. Click the 'Add New Url' button, and in the new Url that is created, type in 'hello'

6. Set the Http Status to '200-OK' for the new Url

7. Click on 'Apply Changes'

8. Go back out of the admin page by clicking on the Home page of the site.

9. Now click on the menu item for the 'hello' page.  It should go to 'bonjour.aspx'.

10. Now change the site to french, and the menu item should change to 'bonjour'; click on the 'bonjour' menu item, it should also go to bonjour.aspx.

Note that you have to match the url name with the new name of the page as defined in the DS module - you might have to experiment somewhat with it - for me I had to separate the spaces with _.  The other problem you will find is that the first Url defined in the 'Page Urls' list will be the one that 'sticks', and after it is cached it won't matter which language you are on, it will always go back to, say, 'bonjour.aspx' for that page.

I might, in a future release,  look at perhaps having another selector in the Page Urls list for a preferred locale, so that one Url is generated for one locale, and another url for a different locale.  But at least the steps above should get you going, at least.  It's best to play around with different Urls and different page names until you arrive at the one you like the best.

Let me know how it goes.

-Bruce

 
New Post 4/19/2008 9:46 PM
  Déclic Vidéo FX
85 posts
3rd Level Poster


Re: Bug with DSLocalizator 

Hello Bruce,

Thanks a lot for taking care of this issue and having try it. That's very nice. Sorry for the late reply, I am currently having some holidays in USA !! So I won't be able to test it right now, I will do it later on.

Nevertheless,I am not sure that I have followed your test, since I do not have the pagename changed when I change locale (you test on my actual website, when you switch language, the page name is still the same). To keep the same example, switching locale will show in the menu "bonjour" or "hello", but my URL is always "greeting.aspx". So I am surprised that you have this behavior.

However, the solution you propose is perfect for me, as I wish to keep the same name (with the locale indicated inside, i.e. en-US or fr-FR, I assume it is the case with URL Master correct?)

I will do some tests in 2 weeks and I will keep you posted. For your information, you should find easily a solution, as I said, another module manage to do it without all the good features that you have in yours (check your email, I have sent you in the past the other module doing it, and it might help you to solve the problem).

DV FX
PS: Stephan, have you tried already ??


Video editing tips & tricks, tutorials, free download (Pinnacle Studio, proDAD & Hollywood FX)
 
New Post 4/20/2008 3:49 PM
  Bruce Chapman
477 posts
1st Level Poster


Re: Bug with DSLocalizator 

 

Nevertheless,I am not sure that I have followed your test, since I do not have the pagename changed when I change locale (you test on my actual website, when you switch language, the page name is still the same). To keep the same example, switching locale will show in the menu "bonjour" or "hello", but my URL is always "greeting.aspx". So I am surprised that you have this behavior.

 

This behaviour is due to the design of the module.  In order to support two different urls for a single page, depending on language, would require that each different url be designed for a certain language.  I will look into doing this for a future release, but for the moment, to get it to work, you'll just have to accept the same page name in the url for all languages you need to support.

[QUOTE]

For your information, you should find easily a solution, as I said, another module manage to do it without all the good features that you have in yours (check your email, I have sent you in the past the other module doing it, and it might help you to solve the problem).

{/QUOTE]

I don't quite understand what you're saying here - did you find another module that completely satisfied your needs?  I saw the email about the other DNN Url module, I was already aware of the 'competition'. I haven't used their product though so I'm not sure how it works or what the strengths and weaknesses are.

 

However, the solution you propose is perfect for me, as I wish to keep the same name (with the locale indicated inside, i.e. en-US or fr-FR, I assume it is the case with URL Master correct?)

The Url Master module looks for the en-Us/fr-FR indicator and moves it to the front of the Url, after the domain name.  This is to give a better looking url, and avoid the cases where sites were ending up with domain.com/pagename/language/en-us.aspx  - instead it will give domain.com/language/en-us/pagename.aspx.    This is done automatically by the module, no need to change any settings or do anything special.

-Bruce

 
New Post 4/21/2008 12:45 AM
  Déclic Vidéo FX
85 posts
3rd Level Poster


Re: Bug with DSLocalizator 

 Bruce Chapman wrote

 

This behaviour is due to the design of the module.  In order to support two different urls for a single page, depending on language, would require that each different url be designed for a certain language.  I will look into doing this for a future release, but for the moment, to get it to work, you'll just have to accept the same page name in the url for all languages you need to support.

 

So, in such case, if I correctly understand, one page has different URL depending of the language.

i.e.
language/fr-FR/pagename.aspx
language/us-US/pagename.aspx

It means that I have 2 different URL for a page in french and english, correct ??
And this is good for SEO. Currently, I have the same page name for different language (same content translated). You seem what I mean ??

 

I don't quite understand what you're saying here - did you find another module that completely satisfied your needs?  I saw the email about the other DNN Url module, I was already aware of the 'competition'. I haven't used their product though so I'm not sure how it works or what the strengths and weaknesses are.

If I have a solution which satisfy my needs, I would not bothering you.... The other solution is not complete neither, there are others problem. But the URL are working ok (but there are others bugs unfortunetaly). I would prefer to use your solution which integrates many advantages and positive points.

 

DV FX


Video editing tips & tricks, tutorials, free download (Pinnacle Studio, proDAD & Hollywood FX)
 
Previous Previous
 
Next Next
  iFinity Support Forum  DotNetNuke Modu...  Url Master  DSLocalizator
Can't find the answer?
 

If you can't find the answer and don't have time...try out the Premium Support service.  Get personal attention and get the problem fixed by an expert.

 

Support Guidelines.. Please read before posting

To get support on iFinity products and services, please search the forums for the the answer to the problem you are seeking. If you cannot find a solution, post a question in the relevant forum.   Ensure that you specify the relevant versions of the problem, and the actual error message or a detailed description of the problem.    You will need to register with this site to post on the forum.  If you have a Microsoft Live (Hotmail/Passport) account you can use that.  If you have a Open Id account you can use that.  If you neither of these, you will need to register a user Id and password.

If you wish, you can use the Premium Support Service for one-on-one support.