Substitution for Language Code

6 years 4 months ago - 6 years 4 months ago #300027 by chanteur94
Substitution for Language Code was created by chanteur94
Hi

The link to a user in a cb list seems to be like this :

[cb:config param="live_site" /]/cb-profile/[user_id]-[lastname]-[cb:config param="sitename" /]-fr
(so for example : www.mywebsite/cb-profile/524-myname-mywebsite-fr )

1 - My first problem is about the 'fr' at the end of the string who seems to be a language string.


The param lang_tag = fr-FR lang_name=nothing lang=french

How to get lang_xxx = fr only ?

2 - How to change the link of the users in a cb list (for example, to arrive in a specific Tab of the user)

Thank you

Please Log in to join the conversation.

6 years 4 months ago #300061 by krileon
Replied by krileon on topic Substitution for Language Code

1 - My first problem is about the 'fr' at the end of the string who seems to be a language string.

CB does not add language to URLs. Joomla does using its language filter plugin.

How to get lang_xxx = fr only ?

There's no substitution for that.

2 - How to change the link of the users in a cb list (for example, to arrive in a specific Tab of the user)

You can't change the URL associated with the row unless I guess your only Joomla menu item to CBs profile has the tab already specified in the menus parameters.


Kyle (Krileon)
Community Builder Team Member
Before posting on forums: Read FAQ thoroughly + Read our Documentation + Search the forums
CB links: Documentation - Localization - CB Quickstart - CB Paid Subscriptions - Add-Ons - Forge
--
If you are a Professional, Developer, or CB Paid Subscriptions subscriber and have a support issue please always post in your respective support forums for best results!
--
If I've missed your support post with a delay of 3 days or greater and are a Professional, Developer, or CBSubs subscriber please send me a private message with your thread and will reply when possible!
--
Please note I am available Monday - Friday from 8:00 AM CST to 4:00 PM CST. I am away on weekends (Saturday and Sunday) and if I've missed your post on or before a weekend after business hours please wait for the next following business day (Monday) and will get to your issue as soon as possible, thank you.
--
My role here is to provide guidance and assistance. I cannot provide custom code for each custom requirement. Please do not inquire me about custom development.

Please Log in to join the conversation.

Moderators: beatnantkrileon
Time to create page: 0.192 seconds

Facebook Twitter LinkedIn