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

    I have problems with anchor links. I have FURLs with friendly path’s enabled, and my template contains

    <base href="[(site_url)]"/>

    Because otherwise I had to make links to files like images absolute, which would mean editing a lot of TVs by hand.

    This works fine, but now while editing content I encountered the problem that anchor links like #anchor are modified to http://www.domain.com/#anchor due to base href.

    Obiously this can’t work with documents nested deeper in the tree, it would have to be http://www.domain.com/level1/level2/#anchor.

    Any clues how to work around that? Is there maybe a possibility to change TinyMCEs behaviour how it deals with anchors?

    Cheers
    Frisco
      • 4310
      • 2,310 Posts
      Have you tried one of the Anchor Plugins?
      e.g. http://modxcms.com/extras/package/?package=41
        • 10190
        • 187 Posts
        Hi bunk58,

        that did it, thank you - and that was pretty fast too! smiley

        Cheers
        Frisco
          • 4310
          • 2,310 Posts
          We aim to please wink
            • 33238
            • 388 Posts
            grin grin grin grin grin grin grin

            Hey thank you so much.

            i was trying to do a DROPDOWN MENU WITH LINKS TO ANCHORS AT THE SEEM PAGE

            and that was like a karma, but everything works perfect with that plugin!!!

            Nice advice friend!!! thank you so much!!!

            This is perfect: http://modxcms.com/extras/package/?package=41

            if you need the code just send me a message, the email is down of the picture!!!
              --
              ysanmiguel.com
              • 10702
              • 107 Posts
              Is it possible to use this package in Revo, too?
                • 33238
                • 388 Posts
                i use it in 1.0.4 i don.t know if works in revo idon.t use revo because there are so many thing for evo like this one, that are is not compatible or doesen.t exist in revo.
                  --
                  ysanmiguel.com
                  • 4080
                  • 139 Posts
                  I’ve just ran into this too on one of my first Revo sites (I’ve gone back to using only Evo for awhile until Revo comes more of age). Is Ysanmiguel right here that there’s no solution for this in Revo? The only way I could get it to work (in case this helps anyone else in my shoes reading this) is to do this (and unfortunately it’s in the RTE/content area):
                  <a href="[[*alias]]/#top">Back to top ↑</a>

                  This works but it prevents me to use the animated "smooth scroll" JS that I wanted to use. I’m guessing there’s a jQuery plugin or the like that would be friendly URL friendly. Heh... funny term.