|
I have made a tiny ModX snippet that looks like this
<?php $theMenu = $modx->runSnippet('Wayfinder', array("startId" => 0, "level"=>1) ); echo $theMenu; ?>
but I would like it to pass ALL params it receives to Wayfinder. I will only be ...
Started by yar on
, 3 posts
by 3 people.
Answer Snippets (Read the full thread at stackoverflow):
Try using foreach to auto assign parameters to wayfinder object... .
This might be useful: get_defined_vars() ?
Edit
From http://bobsguides.com/modx-snippet-faq.html :
You can also access the parameters via the associative array $modx->event->params .
|
|
I have built a tabbed menu in my custom Drupal 6 module. I want to position an html dropdown list to the right of the tabbed menu at the top of my module page. The list will fire some ajax events on change e.g. changing the LIMIT clause on SQL query by...
Started by codecowboy on
, 3 posts
by 3 people.
Answer Snippets (Read the full thread at stackoverflow):
You could do this by overriding theme_menu_local_tasks() within your theme:
function yourTheme_menu $dropdown = ''; // Check if the dropdown should be added to this menu $inject_dropdown = TRUE; // TODO'), ); // Wrap rendered....
|
|
I have a vertical menu in my system which is basically made of HTML ul / li with CSS styling (see image below). However I don't want the li items which are wider than the menu to wrap, I would prefer them to overflow with a horizontal scroll bar at the...
Started by Craig on
, 4 posts
by 4 people.
Answer Snippets (Read the full thread at stackoverflow):
Overflow: auto; // allow li's to overflow w/ scroll bar // at the bottom of the menu } li { white-space.
|
Ask your Facebook Friends
|
Hi, I have searched the forum but cannot find similar topic...
here is this uncommon situation: the top level menu item labels are all very long, will have to break into two lines to fit, is there a way to do that? also to have the control of line breaks...
Started by steve955 on
, 3 posts
by 2 people.
Answer Snippets (Read the full thread at bytesforall):
Thank you Larry!! such a simple solution but it's great help ! .
Just put <br /> where you want a break.
|
|
Hiya all,
I'm placing this question here because i'm becoming a little desperate to fix this problem that has really puzzled me now as i can't see a reason for it.
You can see the top navigation that reads "Home, play golf...etc" at the top of this page...
Started by Shadi Almosri on
, 3 posts
by 3 people.
Answer Snippets (Read the full thread at stackoverflow):
In user.css Change:
.top-navigation ul {margin:0;padding:0;padding-top:10px;padding-bottom:10px;width: 9....
I'm not entirely sure why webkit's deciding to do that, but luckily there's an easy fix for these situations using horizontal <ul> patterns .
|
|
I have a horizontal menu bar made up of <li> tags, containing links, so a menu item looks something like:
<li> <a href="...link..."> <span>Some text</span> </a> </li>
Looks fine, until the menu bar is wider than...
Started by Fiona Holder on
, 3 posts
by 3 people.
Answer Snippets (Read the full thread at stackoverflow):
Use
li span { white-space: nowrap; }
rather than the child selector ( li > a > span ), since the child selector is not supportet by all... .
Add white-space:nowrap;
li > a > span { white-space:nowrap; }
This should keep item texts on one line .
|
|
I've got menu items that look like this
<ul> <li>Item1<span class="context-trigger"></span></li> <li>Item2<span class="context-trigger"></span></li> <li>Item3<span class="context-trigger"&...
Started by sprugman on
, 5 posts
by 5 people.
Answer Snippets (Read the full thread at stackoverflow):
It might also be that sticking the style....
Edit: I think patmortech is correct though, putting nowrap on the span does not work, because there is no "white space" content .
Try using
white-space: nowrap;
in the css definition of your context-trigger class .
|
|
How do you use line-wrap (autoscrolling?) in emacs? So that the portion that doesn't fit on the screen isn't shown as opposed to shown on the next line?
Started by Peter on
, 4 posts
by 4 people.
Answer Snippets (Read the full thread at stackoverflow):
Options.
Dired-mode-hook (lambda () (setq truncate-lines t)))
You can also change this from the menu.
|
|
Is there a way to force Focus Navigation (as controlled by the Tab key or MoveFocus method) to wrap inside a given container? I have included code which demonstrates this problem below. What is the easiest way to make Tab move focus from TextBox "Charlie...
Started by Joseph Sturtevant on
, 3 posts
by 3 people.
Answer Snippets (Read the full thread at stackoverflow):
Use the Ke yboardNavigation.TabNavigation attached property, like so:
<StackPanel KeyboardNavigation.TabNavigation="Cycle"> <TextBox Text="Able" /> <TextBox Text="Baker" /> <TextBox Text="Charlie" /> </StackPanel>
Found the... .
|
|
I'm working on a dropdown menu and need to mutate the existing html markup with JQuery to make it fit the design.
Here is a simplified example: Wrap all "ul's" that contain more than one "li" in a div (in the same div, NOT one div for each UL).
<ul...
Answer Snippets (Read the full thread at stackoverflow):
This....
<script> my_selection; i++; } // if }); // wrap my_selection in div tags $(my_selection).wrap(document.createElement("div")); </script>, interesting.
You have a bug in your code, attempting to wrap your LI's by DIV.
|