Everything is for free!
Shop is closed.
Due to health issues support is very limited

file How to work with dual language?

More
6 years 5 months ago #9816 by home852
How to work with dual language? was created by home852
I have site working fine with Dynamic Menu link component in default ENG language version. But there is another language CH-TW (chinese) When i click on tralator button(using falang component) the site is traslated to CH-TW text but the Dynamic redirection is not working.

It is giving 404 Error.

My page is only avialable for registered users so i can't share more detail here. Please help.

Thanks.

Please Log in or Create an account to join the conversation.

More
6 years 5 months ago #9817 by carsten888
Replied by carsten888 on topic How to work with dual language?
so when in chinese language, you click the dynamic menu-item and get an 404?
What is the url when you get to the 404 page? (without domainname is fine)

Can you post the code of the dynamic redirect?

Please Log in or Create an account to join the conversation.

More
6 years 5 months ago #9818 by home852
Replied by home852 on topic How to work with dual language?
My website url: www.home852.hk

Once i logged in, i can see Menu as Create new Campaign(only for one group of users, that group will be manually assigned by Super admin from Joomla backend)

SEE SCREENSHOT: www.cybersolutionsinfotech.com/project/home852/Image1.png

So once i click on 'create campaign' it will redirect to: www.home852.hk/en/new-campaign/campaign?layout=create

but that is only working for default EN language.

SEE SCREENSHOT: www.cybersolutionsinfotech.com/project/home852/Image2.png

When i click on CH button on top, it give me error:

Error page url is: www.home852.hk/tw/user-area/campaigns/ne...mpaign?layout=create

SEE SCREENSHOT: www.cybersolutionsinfotech.com/project/home852/Image3.png

______________________________________________________________________

I have used code below:

if($user_id){
//user is logged in
// 8 for super users and 13 for campaign creator

$group = $usergroups;

//Only for super Campaign Creators

if(in_array(13, $group)){

$redirect_url = 'index.php?option=com_jgive&view=campaign&layout=create&Itemid=1730';

}

else{
$message = 'You need to verify your ID Proof first to create a new campaign. Please upload your ID Proof in document section. We will review your documents and once verified, you will assign authority to create new campaign.';

$message_type = 'info';

$redirect_url = 'index.php?option=com_jsn&view=profile&Itemid=1653';
}
}else{
//not logged in

$message = 'you need to login to access this page';
$message_type = 'info';
$redirect_url = 'index.php?option=com_users&view=login';
}

_________________________________

If you can share your email id, i can send you website detail with login credentials.

Please advise.

Thank you!

Please Log in or Create an account to join the conversation.

More
6 years 5 months ago #9819 by carsten888
Replied by carsten888 on topic How to work with dual language?
In the configuration, did you enable 'Multi language menu association'?

Please Log in or Create an account to join the conversation.

More
6 years 5 months ago #9820 by home852
Replied by home852 on topic How to work with dual language?
Yes , that check box is checked and enabled.

Please Log in or Create an account to join the conversation.

More
6 years 5 months ago #9821 by carsten888
Replied by carsten888 on topic How to work with dual language?
instead of
$redirect_url = 'index.php?option=com_jgive&view=campaign&layout=create&Itemid=1730';
try
$redirect_menuitem_id = 1730;

Please Log in or Create an account to join the conversation.

Time to create page: 0.131 seconds
Powered by Kunena Forum
 
spicy-sacerdotal