We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 10076
    • 1,024 Posts
    Before I start digging and digging, anyone out there that who has a working solution to use an iamge for the home page and the rest normal text links. Guess firstTpl or something?
      • 4172
      • 5,888 Posts
      if you just want to add a additional image, you can try to create a chunk with your home-image with the id of your home-resource in its name, for example:

      nav_image_1

      and put this tag into the row-tpl:

      [[$nav_image_[[+wf.id]]]]


      if that isn't what you want you can try to use output-filters

      [[+wf.id:is=`[[++site_start]]`:then=`
      your home-code here
      `:else=`
      other code here
      `]]


      not sure, if this is a good idea, and it might slow your wayfinder-parsing [ed. note: Bruno17 last edited this post 10 years, 3 months ago.]
        -------------------------------

        you can buy me a beer, if you like MIGX

        http://webcmsolutions.de/migx.html

        Thanks!
        • 22840
        • 1,572 Posts
        No need to use the firstTpl or anything,

        From memory wayfinder give the class of first to the first LI so just target that:

        li.first a {
        text-indent: -3000px /* put the text 3000px off screen */
        background: url(path to home image/home.png) no-repeat;
        /* set the heights/widths if not responsive */
        height: 30px;
        width: 30px;
        /* set the position */
        background-position: 20px 20px;
        display: inline-block;
        }


        If you start with that and give us a link we can then sort the rest out.
          • 10076
          • 1,024 Posts
          Doesn t seem to give that class first...

          Quote from: paulp at Jan 12, 2014, 04:31 PM
          No need to use the firstTpl or anything,

          From memory wayfinder give the class of first to the first LI so just target that:

          li.first a {
          text-indent: -3000px /* put the text 3000px off screen */
          background: url(path to home image/home.png) no-repeat;
          /* set the heights/widths if not responsive */
          height: 30px;
          width: 30px;
          /* set the position */
          background-position: 20px 20px;
          display: inline-block;
          }


          If you start with that and give us a link we can then sort the rest out.
          • It doesn't by default, you can set it up with &firstClass=`whatever`

            If you really get into CSS, you could use first-of-type http://css-tricks.com/almanac/selectors/f/first-of-type/
              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