Jump to content

barneyy

Members
  • Posts

    8
  • Joined

  • Last visited

Everything posted by barneyy

  1. @kongondo & @Soma & @bernhard Thanks for your Help and time.... I'm sorry for wrong words. Good Luck & good night...
  2. ok @Soma, thanks soma for your help. There is another small problem, wich i can solve with overwrite this bootstrap.scss. The last problem is, that the <a>-tags in <div class="dropdown-menu">needs another class. With your 'Hook' (?) the a-tags getting class="nav-item" - bootstrap wants to have the <a>-tags with the class "dropdown-item".... In my opinion the bootstrap-structure is much to complex. I tested your solution only in a short break of my work, i'll give it a try as soon as possible - maybe begining of the next week - and will have a look to the other replies to my topics....... thx in advance
  3. @kongondo at first many thanks for your support-offer - i'll be back in my office on thursday and will try to get my bootstrap4-navbar with your MenuBuilder. Had a quick look at the option-array from MenuBuilder and i think i'll give it a try (or a few more ;-) ). I'm absolutly new to PW so i need to be patiently.... thanks in advance and i'll be back on thursday.....
  4. Hi Soma, i'm really tired and glad the you're with me! But there are no <li> inside a a <div>, there are only <a>-tags.... <div class="dropdown-menu"> <a class="nav-link gek-anim" href="/pw/tester/about/what/">Child page example 1</a> <a class="nav-link gek-anim" href="/pw/tester/about/background/">Child page example 2</a> </div> if i make pipes into the 'inner_tpl' => '<div class="dropdown-menu">||</div> i get the same result. I think i try to use a non-bootstrap-navbar - but it must be possible to make a bootstrap-navbar in PW - heading forward - and good night & good luck - and thanks for your patience....
  5. @Soma thanks for your helping advice, but when i delete the ul-tags in the "inner-tpl" code there's nothing in the <div class="dropdown--menu"> - here's the output <ul class="navbar-nav ml-auto"> <li class="dropdown nav-item"><a class="nav-link gek-anim" href="/pw/tester/about/">About</a> <!-- [Selector Level1: ] --> <div class="dropdown-menu"></div> </li> <li class="nav-item"><a class="nav-link gek-anim" href="/pw/tester/about/what/">Child page example 1</a> <!-- [Selector Level2: ] --> </li> <li class="nav-item"><a class="nav-link gek-anim" href="/pw/tester/about/background/">Child page example 2</a> <!-- [Selector Level2: ] --> </li> <li class="nav-item"><a class="nav-link gek-anim" href="/pw/tester/site-map/">Site Map</a> <!-- [Selector Level1: ] --> </li> <li class="active nav-item"><a class="nav-link active" href="/pw/tester/hermens/">hermens</a> <!-- [Selector Level1: ] --> </li> </ul> this is my call from MSN: <?php $nav = $modules->get('MarkupSimpleNavigation'); $options = array( 'has_children_class' => 'dropdown', 'list_tpl' => '<li%s>||</li>', 'current_class' => 'active', 'list_field_class' => 'nav-item', 'max_levels' => 2, 'item_tpl' => '<a class="nav-link gek-anim" href="{url}">{title}</a>', 'outer_tpl' => '<ul class="navbar-nav ml-auto">||</ul>', 'inner_tpl' => '<div class="dropdown-menu"></div>', 'item_current_tpl' => '<a class="nav-link active" href="{url}">{title}</a>', 'debug' => true, ); echo $nav->render($options); if i insert two pipes into the 'inner_tpl' => '<div class="dropdown-menu"></div>' same result - no content in the <div class="dropdown-menu"></div>! There must be something i don't understand!
  6. Hi, sorry to tell that i'm new to pw and my php-skills are low - i try to get a bootstrap 4 navbar working with MSN, and with this Code <?php $nav = $modules->get('MarkupSimpleNavigation'); $options = array( 'has_children_class' => 'dropdown', 'list_tpl' => '<li%s>||</li>', 'current_class' => 'active', 'list_field_class' => 'nav-item', 'max_levels' => 2, 'item_tpl' => '<a class="nav-link gek-anim" href="{url}">{title}</a>', 'outer_tpl' => '<ul class="navbar-nav ml-auto">||</ul>', 'inner_tpl' => '<div class="dropdown-menu"><ul>||</ul></div>', 'item_current_tpl' => '<a class="nav-link active" href="{url}">{title}</a>', ); echo $nav->render($options); i'm getting this output: <ul class="navbar-nav ml-auto"> <li class="dropdown nav-item"><a class="nav-link gek-anim" href="/pw/tester/about/">About</a> <div class="dropdown-menu"> <ul> <li class="nav-item"><a class="nav-link gek-anim" href="/pw/tester/about/what/">Child page example 1</a></li> <li class="nav-item"><a class="nav-link gek-anim" href="/pw/tester/about/background/">Child page example 2</a></li> </ul> </div> </li> <li class="nav-item"><a class="nav-link gek-anim" href="/pw/tester/site-map/">Site Map</a></li> <li class="active nav-item"><a class="nav-link active" href="/pw/tester/hermens/">hermens</a></li> </ul> My question ist now: How can i get the following code in the dropdown?!: <div class="dropdown-menu"> <a class="nav-link gek-anim" href="/pw/tester/about/what/">Child page example 1</a> <a class="nav-link gek-anim" href="/pw/tester/about/background/">Child page example 2</a> </div> So there shoudn't be the <ul>-tag and the <li>-tags in the dropdown, because bootstrap4 only uses <a>-tags in dropdowns?! Do i need something from these options?! 'xtemplates' => '', // specify one or more templates separated with a pipe | to use the xitem_tpl and xitem_current_tpl markup 'xitem_tpl' => '<a href="{url}">{title}</a>', // same as 'item_tpl' but for xtemplates pages, can be used to define placeholders Thanks in advance
  7. Hey @Robin S, you made my day - it was the HTML Entity Encoder Formatter - but be sure that i've tried maybe half an hour to find out what could be wrong, (or maybe an hour!?) - i dindn't find anything. I have to learn to handle so many field options. Thanks a lot
  8. Hello at first - i'm completly new to pw and coming from modx evolution. My first try to include an old but good theme from modx into pw was successfull - i was very impressed. Now i'm going to personalize the backend: I love codemirror for ckeditor - i installed the new ckeditor-module, activated the new module in the desired field, and if click on "Source" i'll get my real HTML-Code in an Codemirror-view. But if i click on save the ckeditor makes from this code <div class="container-fluid"> in the frontend Sourcecode this &lt;div class=&quot;container-fluid&quot;&gt; What's wrong with my editor?!
×
×
  • Create New...