-
Notifications
You must be signed in to change notification settings - Fork 2.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Culture Picker is not rendering cultures after upgrading to v1.8.2 #15148
Comments
I will try to reproduce the issue, and then fix it unless you want to submit a PR |
Thanks I will be waiting for the fix. I won't be submitting a PR. Regards |
Why not :) hope to get time today coz I have many pending PRs to update |
@tonynasr please share a minimal repo to save my time, so I can give this some priority |
I can confirm that the problem was already there in v1.8.1. We updated to 1.8.1 (not 1.8.2 yet) and the same exception is shown. |
Yes I also confirm that it was already there in 1.8.0 |
@MikeAlhayek we might need another patch |
I can reproduce the issue |
@MikeAlhayek seems |
The |
@tonydev24 @hishamco
Then
You don't need to add ContentCukturePicker unless you want to override its style. |
Yes I noticed the new navbar but we need to override its style so we need to add the mentioned template. |
In liquid you have helpers to create shapes. So you would probably need to create the Navbar shape from the layout in razor. This shape should be created very early in the layout and then rendered where you want it to show up. You should be able to print a literal string without adding "| s" {{ "العربيه" }} |
@tonydev24 is this still any issue or can we close it? |
Yes the issue is still there, Culture Picker is not rendering cultures when used in a liquid template as mentioned in the ticket. Thanks |
I have the same problem after upgrade from 1.7.2 to 1.8.2. I use a layout.liquid file currently. It would be nice, if the usage of the new navbar would be documented for liquid and razor. I like to try navbar and see if there would be a solution, but I could not find a proper documentation for liquid. |
@MikeAlhayek could you please handle this, seems I'm another one lost with |
I have not tried to create this using Liquid. If someone does this, please share the code. But, in version 1.8, the we will no longer inject the drop down menu into the I am guessing something like Then where you want to render it in the layout, you'll need to add Having the Navbar shape will allow us to inject the |
How we can do it in Razor?
I will do once I know the required changes |
Look at the changes in TheTheme layout. First we create the We later render it here Now if you enable the |
I remember in Liquid we needed to add a |
You don't need All you should need is creating the Navbar shape and rendering it. |
@MikeAlhayek : I still don't really get, what NavBar actually does. It does not render our menu, does it? Rendering the menu is done by this line, correct? And NavBar is injected after rendering the menu. I like to have the ContentCulturePicker rendered like every other MenuItem as Part of my menu. I do not want a different treatment in my Html for ContentCulturePicker and the MenuItems coming from my menu. Will NavBar do that for me? Currently I don't see how, unless it collects all MenuItems rendered before NavBar is inserted. Basically I don't see a way, how NavBar will help me to fix my ContentCulturePicker without breaking my css styling. |
By default the If you want to merge the items generated by main-menu and Navbar, you could wrap the two with a
The Navbar will also render the logged in user menu, and other items by default such as notification menu. However, you can use placement to not show some items if you want to not show them. |
These code snippets do not work inside my layout.liquid. Nothing happens. Also the generated shape seems to be empty. |
|
With PR #15532 users can create However, a new Liquid function for navbar was added to make it easier to inject the Navbar into your own theme. To do that,
|
not, it does not in 2.0.0-preview-18222: I guess the problem is, that As the Am I missing a way to call this in liquid to get the equivalent for |
Describe the bug
After upgrading the project from 1.7.2 to 1.8.2 I had to change the culture picker template name and it's not showing the current culture and supported cultures data.
To Reproduce
Steps to reproduce the behavior:
Create a new project in version 1.7.2 using the orchard template and create a site using the agency theme.
Add a template named ContentCulturePickerContainer to show the current culture and supported cultures.
Add a new template named Layout to override the theme layout and add in it a shape to show the culture picker template using this line: {% shape "ContentCulturePicker" %}
The culture picker shows data on the page.
Upgrade the project to 1.8.2.
An error is shown in the page.
Change the culture picker template name to ContentCulturePicker and the error disappears and the page opens normally but the culture picker does not render data on the page.
Expected behavior
Show current culture and the supported cultures in the top menu.
The text was updated successfully, but these errors were encountered: