We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 43358
    • 19 Posts
    Hi Paulp,

    I cleared the Modx cache and the Safari and Chrome caches and still no change. I am thinking I just want to move the linked Youtube video that sits below the "Learn more" button (my test Youtube link) over to the right in the <aside> area. Is there a way I can do this using the <aside> tags and some new attributes? I am not concerned with preserving the background/border/moz-box-shadow settings....This way I can preserve the pseudo two column layout in the [content] [aside] area ...
      • 28042 ☆ A M B ☆
      • 24,524 Posts
      [[Wayfinder? &startId=`0` &level=`1` &outerTpl=`@CODE:<ul role="navigation">[[+wf.wrapper]]</ul>`]]

      That will give you what you need. As I said, Wayfinder generates its own <ul>...</ul> tags, so you need to give it a customized outerTpl.

        Studying MODX in the desert - http://sottwell.com
        Tips and Tricks from the MODX Forums and Slack Channels - http://modxcookbook.com
        Join the Slack Community - http://modx.org
        • 28042 ☆ A M B ☆
        • 24,524 Posts
        If you take a look at my site, which is using the same template, you'll see the aside used for a simple Javascript slider.

        Here's my template
        <!doctype html>
        <html class="no-js" lang="en">
        <head>
          <meta charset="[[++modx_charset]]">
          <title>[[++site_name]] - [[*longtitle]]</title>
          <meta name="HandheldFriendly" content="True">
          <meta name="MobileOptimized" content="320">
          <meta content="minimum-scale=1.0, width=device-width, maximum-scale=1.0, user-scalable=no" name="viewport" />
          <meta name="description" content="[[*description]]">
          <base href="[[++site_url]]">
          <link  href="http://fonts.googleapis.com/css?family=Oswald:regular" rel="stylesheet" type="text/css" >
          <link href='http://fonts.googleapis.com/css?family=Junge' rel='stylesheet' type='text/css'>
          <link rel="stylesheet" href="assets/templates/itfits/css/style.css">
          <link rel="stylesheet" href="assets/templates/itfits/fonts/raphaelicons.css">
          <link rel="stylesheet" href="assets/templates/itfits/css/main.css">
        </head>
        <body>
          <header class="clearfix">
              <div class="container">
                <a id="logo" href="[[++site_url]]">[[++site_name]]</a>
                <ul class="social-icons">
                  <li><a href="http://www.facebook.com/blog.cssjuntion" class="icon flip">^</a></li>
                  <li><a href="" class="icon">T</a></li>
                  <li><a href="http://www.twitter.com/cssjunction" class="icon">^</a></li>
                </ul>
                <nav class="clearfix">
                  [[Wayfinder? &startId=`0` &level=`1` &outerTpl=`@CODE: <ul role="navigation">[[+wf.wrapper]]</ul>`]]
                </nav>
              </div>
          </header>
           <section role="banner">
               <hgroup>
                   <h1>[[*pagetitle]]</h1>
                   <h2>[[*longtitle]]</h2>
               </hgroup>
               <article role="main" class="clearfix">
                   <div class="post">
                     <h2>[[*pagetitle]]</h2>
                     [[*content]]
                   </div>
                   <aside role="complementary">
                    [[*introtext]]
                   </aside>
               </article>
           </section> <!-- // banner ends -->
           <section class="container">
               <div class="columns">
                   [[getImageList? &tvname=`homeBlocksTV` &tpl=`homeBlocksTpl`]]
               </div> <!-- //.columns -->
               <ul class="thumb-rotator">
                 <li>Templates will be listed here.</li>
               </ul>
           </section>
          <footer role="contentinfo">
              [[$footer]]
          </footer>
          <script src="assets/js/jquery-1.9.0.min.js"></script>
          <script src="assets/js/easySlider1.7.js"></script>
          <script>
            $(document).ready(function(){  
        	    $("#slider").easySlider({
        		    auto: true,
        		    continuous: true,
                controlsShow: false
        	    });
            });
          </script>
        </body>
        </html>

        And the relevant CSS for that aside:
        section[role=banner] article[role=main] aside {
          -moz-border-radius: 5px;
          -webkit-border-radius: 5px;
          border-radius: 5px;
          float: right;
          overflow: hidden;
          width: 40%;
          position: relative;
          border: 3px solid rgba(0, 0, 0, 0.03);
          padding: 2px;
        }
        /*section[role=banner] article[role=main] aside:after {
          content: '';
          display: block;
          width: 100%;
          height: 100%;
          position: absolute;
          left: 0;
          top: 0;
          background: rgba(255, 255, 255, 0.15);
          background: -webkit-gradient(linear, left top, left bottom, color-stop(0, rgba(255, 255, 255, 0.6)), color-stop(50%, rgba(255, 255, 255, 0.15)), color-stop(50%, rgba(255, 255, 255, 0)), color-stop(100%, rgba(255, 255, 255, 0)));
          background: -moz-linear-gradient(center top, rgba(255, 255, 255, 0.6) 0%, rgba(255, 255, 255, 0.15) 50%, rgba(255, 255, 255, 0) 50%, rgba(255, 255, 255, 0) 100%);
          -moz-box-shadow: inset 0 0 1px rgba(0, 0, 0, 0.8), inset 0 1px 0 rgba(255, 255, 255, 0.5), inset 0 -6px 0 rgba(0, 0, 0, 0.3), inset 0 -7px 0 rgba(255, 255, 255, 0.2);
          -webkit-box-shadow: inset 0 0 1px rgba(0, 0, 0, 0.8), inset 0 1px 0 rgba(255, 255, 255, 0.5), inset 0 -6px 0 rgba(0, 0, 0, 0.3), inset 0 -7px 0 rgba(255, 255, 255, 0.2);
          box-shadow: inset 0 0 1px rgba(0, 0, 0, 0.8), inset 0 1px 0 rgba(255, 255, 255, 0.5), inset 0 -6px 0 rgba(0, 0, 0, 0.3), inset 0 -7px 0 rgba(255, 255, 255, 0.2);
          -moz-border-radius: 5px;
          -webkit-border-radius: 5px;
          border-radius: 5px;
        }*/
        section[role=banner] article[role=main] aside img {
          width: 100%;
          -moz-border-radius: 2px;
          -webkit-border-radius: 2px;
          border-radius: 2px;
        }
        section[role=banner] article[role=main] aside p {
        	text-align: center;
        }
        #slider ul, #slider li,
        	#slider2 ul, #slider2 li{
        		margin:0;
        		padding:0;
        		list-style:none;
        		}
        	#slider2{margin-top:1em;}
        	#slider li, #slider2 li{ 
        		/* 
        			define width and height of list item (slide)
        			entire slider area will adjust according to the parameters provided here
        		*/ 
        		width:40%x;
        		height:260px;
        		overflow:hidden;
        		margin-left:-7px; 
        		}
        section[role=banner] article[role=main] aside h2 {
        	text-align: center;
        }
        
          Studying MODX in the desert - http://sottwell.com
          Tips and Tricks from the MODX Forums and Slack Channels - http://modxcookbook.com
          Join the Slack Community - http://modx.org
          • 43358
          • 19 Posts
          Yes, I got this to validate with your suggestions.

          This document was successfully checked as HTML5! Thank you miss sottwell.

          Quote from: sottwell at Apr 13, 2013, 12:55 PM
          [[Wayfinder? &startId=`0` &level=`1` &outerTpl=`@CODE:<ul role="navigation">[[+wf.wrapper]]</ul>`]]

          That will give you what you need. As I said, Wayfinder generates its own <ul>...</ul> tags, so you need to give it a customized outerTpl.

            • 28042 ☆ A M B ☆
            • 24,524 Posts
            Now all you have to do is get rid of that aside:after overlay in your CSS and your video will work.
              Studying MODX in the desert - http://sottwell.com
              Tips and Tricks from the MODX Forums and Slack Channels - http://modxcookbook.com
              Join the Slack Community - http://modx.org
              • 43358
              • 19 Posts
              Quote from: sottwell at Apr 13, 2013, 09:23 PM
              Now all you have to do is get rid of that aside:after overlay in your CSS and your video will work.

              I commented out this section (after trying to ComOut just the position:absolute) and the whole aside disappears...video and all..

              /*section[role=banner] article[role=main] aside:after {
              content: '';
              display: block;
              width: 100%;
              height: 100%;
              /*position: absolute;*/
              left: 0;
              top: 0;
              background: rgba(255, 255, 255, 0.15);
              background: -webkit-gradient(linear, left top, left bottom, color-stop(0, rgba(255, 255, 255, 0.6)), color-stop(50%, rgba(255, 255, 255, 0.15)), color-stop(50%, rgba(255, 255, 255, 0)), color-stop(100%, rgba(255, 255, 255, 0)));
              background: -moz-linear-gradient(center top, rgba(255, 255, 255, 0.6) 0%, rgba(255, 255, 255, 0.15) 50%, rgba(255, 255, 255, 0) 50%, rgba(255, 255, 255, 0) 100%);
              -moz-box-shadow: inset 0 0 1px rgba(0, 0, 0, 0.8), inset 0 1px 0 rgba(255, 255, 255, 0.5), inset 0 -6px 0 rgba(0, 0, 0, 0.3), inset 0 -7px 0 rgba(255, 255, 255, 0.2);
              -webkit-box-shadow: inset 0 0 1px rgba(0, 0, 0, 0.8), inset 0 1px 0 rgba(255, 255, 255, 0.5), inset 0 -6px 0 rgba(0, 0, 0, 0.3), inset 0 -7px 0 rgba(255, 255, 255, 0.2);
              box-shadow: inset 0 0 1px rgba(0, 0, 0, 0.8), inset 0 1px 0 rgba(255, 255, 255, 0.5), inset 0 -6px 0 rgba(0, 0, 0, 0.3), inset 0 -7px 0 rgba(255, 255, 255, 0.2);
              -moz-border-radius: 5px;
              -webkit-border-radius: 5px;
              border-radius: 5px;
              }*/
                • 28042 ☆ A M B ☆
                • 24,524 Posts
                Well, as you can see, I commented out that directive in my CSS, and the aside is working just fine. Perhaps it's the nested comments causing the problem?
                  Studying MODX in the desert - http://sottwell.com
                  Tips and Tricks from the MODX Forums and Slack Channels - http://modxcookbook.com
                  Join the Slack Community - http://modx.org
                  • 43358
                  • 19 Posts
                  Thank you again for your help. I have a handle on it now...