Results 1 to 5 of 5

Thread: Add slash in front of a href

  1. #1
    New user
    Join Date
    10-14-09.
    Location
    Zoetermeer, Netherlands
    Posts
    5

    Default Add slash in front of a href

    Is there an easy way to add a slah in front of a href like so: a href="/nameofpage"? By default Contao will remove this slash.

  2. #2
    Experienced user
    Join Date
    06-20-09.
    Posts
    1,311

    Default Re: Add slash in front of a href

    By default Contao will remove this slash.
    ...not that i've noticed.
    Where are you adding this?

  3. #3
    New user
    Join Date
    10-14-09.
    Location
    Zoetermeer, Netherlands
    Posts
    5

    Default Re: Add slash in front of a href

    When I type a href in the texteditor with a / in front like so
    Code:
    a href="/nameofpage"
    and I save the result is
    Code:
    a href="nameofpage"

  4. #4
    Experienced user
    Join Date
    06-20-09.
    Posts
    1,311

    Default Re: Add slash in front of a href

    not sure, maybe it is a control character.
    The text editor is a plugin called tinyMCE and can be reconfigured - try searching the forums for tinyMCE.
    this may help also...
    http://www.contao-community.org/view...mce+url#p11162

  5. #5
    New user
    Join Date
    10-14-09.
    Location
    Zoetermeer, Netherlands
    Posts
    5

    Default Re: Add slash in front of a href

    Hi Ramjet,

    Good suggestion! I've added "convert_urls : false" to "system/config/tinyMCE.php" and now it seems to work. Thank you.

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •