International Drupal 6 Menu - drupal

I am new to Drupal (3 weeks) so if I am not clear just ask and I'll clarify.
I have an English Drupal 6 site. The Primary Links menu has 4 items. A-B-C-D. They all work etc. Now we have added several language domains and translated content through translation dashboard etc.
Now in the menu for international users we want the Menu to be A-Z-B-D.
So if a user goes to mydomain.com they see A-B-C-D. If they goto mydomain.com/fr they see A-Z-B-D.
What we ended up doing was making menu item C visible to English only. We then added 1 menu item (Z) for the different languages and translated the menu text. The menu shows properly for each domain.
So what's the problem?....2 things.
The menu links, regardless of domain, are in English. What I mean is that the menu text may be in French but when you hover the mouse over the link the target url displayed (lower left) is still in English.
We could correct #1 by adding a whole lotta menu items, setting the menu link title to the text for that language, and making display language rules for all of them.....seems like a cluttered mess just waiting for an opportunity....
So what I would like is ideas on how to have the fewest number of menu items, yet have complete translations including the menu link titles.
TIA
JB

You should not mix menus with different languages.
Create new menu for each language and place then in the same region but define language per menu.

Related

How do I get blocks to display in Drupal 7?

I'm sure this is a very simple question, but I'm new to Drupal and haven't found a solution by the traditional methods of Googling and searching the Drupal home site, so please indulge me.
I've just installed Drupal 7 and am using the Bartik theme.
When I click Structure > Blocks there are a bunch of blocks at the bottom of the page which you can drag to a position corresponding to a region of the page template (Footer, Sidebar 1 etc).
However, when I assign a block to a region, whether by dragging, using the dropdown menu or using the configuration menu against the block, it does not save the assignation.
The block does not appear in the assigned region and when I return to the blocks page, those blocks are back at the bottom of the page, not assigned to a region.
The only blocks that I can make stick are ones that I create myself.
Can anyone point me in the right direction for a solution?
Thank you.
You wrote:
However, when I assign a block to a region, whether by dragging, using
the dropdown menu or using the configuration menu against the block,
it does not save the assignation.
It sounds as if you didn't click "save blocks" after assigning a block to a region - did you? There is a button on the bottom of the page - just below the blocks.

Highlighting Wordpress menu item when not a child page/category

the site I am working on is http://archibaldbutler.com/projects/williamsmurrayhamm/
My client is requesting a function I have no idea how to integrate. Highlighting a menu item (active) in white even when in a completely different site page/post/category....
Example:
Go to this page: http://archibaldbutler.com/projects/williamsmurrayhamm/designvertising/
As you can see the menu Item "Designvertising" is highlighted in white.
Now please click on the first image on the right: The plastic drink bottles called Juice burst, My client wants the "Designvertising" menu item to remain highlighted when you click through to different sections from that page.
I have not integrated menu hierarchy (child category/page), because there have been many amendments changes throughout the project.
The way I would do it if I knew php is
"If main menu item was clicked or is highlighted in white, keep highlighted in white until a different main menu item is clicked".... I hope that makes sense.
Or perhaps it is possible by integrating css into custom fields?
There are 3 pages that need this functionality:
-Latest work page
-Designvertising page
-Extras category
I know basic Javascript and a tiny bit of php so please be explicit.
Make your life easier and make these sub-pages! It won't take 5 minutes and WP should add some helpful classes to the menu items, like current_page_parent etc. Then it's easily styled...
Unless I've misunderstood what you were after? Are the pages not related to the menu item?
The other way to do it is to add classes to the clicked menu item via javascript.
JQuery has some useful methods for this... addClass('highlight') etc. Is this the kind of thing you need?

Translate navigation with LinguaPlone

I want to translate the navigation part of a plone website with LinguaPlone but it doesn't work (or at least I don't know how to do that).
How can I show the navigation in the correct language whenever the user switches the language?
I have tried to edit the folder in the other language but then both languages have the newly translated navigation entry.
Thanks
You did not specify which part of the navigation you mean (tabs, sitemap, etc.)
Plone+LinguaPlone navigation items are picked up by
By the current active language
Items which Language is set to "Language neutral"
Navigation is populated with "Title" of the content from the current language
Site map, top tab bar, etc. navigation portlets should be automatically translated. No special tricks needed, so you are doing something wrong.

WordPress 3 - Problem with menu highlighting

I'm building a site that has a two level menu created with the admin Menu tool. The menu contains links to both Pages and Category lists. It doesn't link directly to Posts. The problem is that when you drill down into a Category list and click to view a single post in that Category, the menu highlighting gets it wrong.
I've tested on a new install of WP3, set up a simple test site with a few pages and posts in 3 categories. All I've changed in the theme is the style.css to highlight the whole path.
http://danwashere.com/wp_dev/
Here's a direct link to view a categorised post here:
http://danwashere.com/wp_dev/2011/07/28/blue-rocks/
Everything is a page, except with the section "Advice Categories" - all those sub items are category lists containing categorised posts - each post is only categorised with a single category. The menu structure is defined entirely in the Menu settings.
On that Blue Rocks page, the menu should be highlighted like this: Advice Categories -> Rocks, but it's highlighting the Sample Page item. And if you rollover the "Advice Categories" menu, you'll see that it is correctly highlighting the "Rocks" menu item.
It seems to me that WP is applying the 'current-post-parent' class to the wrong top menu item, but maybe I'm missing something?
// Edit, rewrite to make it clearer.
It seems as though were both having very similar issues. - Trouble highlighting correct menu parent with wp_nav_menu classes while viewing “single posts”
Im not using categories as links in my menu but I use them to filter content to each page via query_posts...if you examine the output from Wordpress you'll notice its actually placing the current page class onto the incorrect li tag when viewing a single post - Is this happening to you as well?

2 breadcrumbs for 2 menus in Drupal

I'm using 2 different menus in 2 different blocks. They are enabled / disabled depending on the the pages users arevisiting.
Now, I have an issue with the breadcrumbs: they only work with the main menu and not the second one.
I need to automatically have the breadcrumbs the other menu as well.
thanks
Drupal's menu system sets only one active menu at a time: if you're trying to have two breadcrumbs at the same time on the same page, you're going to need to use menu_set_active_menu_name() to do some juggling back and forth.
However, if you're just trying to have one show up, consider using the Menu Breadcrumb module, which automatically sets the active menu based on the page. You also have the ability to set menu priority for pages that exist in more than one menu.
This question is not strictly programming related, however:
Drupal breadcrumbs follow the menu-items as they are enabled. Regardless of whether the menu-items are visible, and regardless of what menu(containers) hold the menu. Items that are not in the menu (such as nodes!) will not have a breadcrumb.
That said, there is an exception, modules can override the breadcrumb with drupal_set_breadcrumb(), if they do so, the last one to set the breadcrumb gets to set the breadcrumb. E.g. taxonomy module sets the breadcrumb on taxonomy-pages.
You could set the breadcrumbs hardcoded in a module.
You should investigate why breadcrumbs don't follow your menu's in this case.
You could investigate modules that allow tweaking the breadcrumb behaviour, such as hansel

Resources