Results 1 to 8 of 8

Thread: urlcleaner

  1. #1
    User
    Join Date
    06-19-09.
    Posts
    417

    Default urlcleaner

    I have installed this extension, and added the following to my localconfig.php

    Code:
    $GLOBALS['TL_CONFIG']['arrUrlFragments'] = array(
      'news-archive' => 'items',
    );
    This does remove the items folder form the url.

    http://cms-2.doublespark.eu/news-archiv ... llery.html

    But the news item no longer displays.

    Any ideas what I am doing wrong?

  2. #2
    User
    Join Date
    01-20-11.
    Location
    Germany
    Posts
    77

    Default Re: urlcleaner

    Hello,

    looks quite good, especially because the removal from the URL works fine.

    Which Contao version is this? Do you have other extensions installed, which manipulate the URL?

    Jan
    Free support only here in the forum.
    Please report bugs for my extensions using http://www.contao-forge.org. Thanks!
    Requests for Contao support and development please send mail to jan@theofel.de

  3. #3
    User
    Join Date
    06-19-09.
    Posts
    417

    Default Re: urlcleaner

    Hi ETES,

    I'm using version 2.9.3.

    I am not using any other extensions that manipulate urls.

    I've checked the error log and there is not anything relevant there.

    Cheers,

    Gary.

  4. #4
    User
    Join Date
    06-19-09.
    Posts
    328

    Default Re: urlcleaner

    Quote Originally Posted by Doublespark
    I have installed this extension, and added the following to my localconfig.php

    Code:
    $GLOBALS['TL_CONFIG']['arrUrlFragments'] = array(
      'news-archive' => 'items',
    );
    This does remove the items folder form the url.

    http://cms-2.doublespark.eu/news-archiv ... llery.html

    But the news item no longer displays.

    Any ideas what I am doing wrong?

    do you have a page with alias "news-archive"?

    try to set something different from news-archive (e.g. mynews-archive)
    Consulenza Contao CMS https://www.intco.it

  5. #5
    User
    Join Date
    06-19-09.
    Posts
    417

    Default Re: urlcleaner

    Hi ga.n

    Unless I call the page the same it does not remove from the url.

    So if I call if my news reader page an alias of "individual-news-items "

    Then I have to use this:

    'individual-news-items' => 'items'

    as 'news-reader' => 'items' does not work

    When I use this it remove the 'items' from the url but does not display the news item.

    Sure I'm getting it all wrong :-)

  6. #6
    User
    Join Date
    06-19-09.
    Posts
    328

    Default Re: urlcleaner

    it works for me I am using it with the faq listing and faq reader modules

    I am using version 2.9.3

    this is my configuration

    faq-reader is the page alias

    extension folderurl is installed

    the only difference is that I've added this

    Code:
    $GLOBALS['TL_CONFIG']['arrUrlFragments'] = array(
      'faq-reader' => 'items'
    );
    to a file named config.php, into

    system/modules/zz_custom/config/
    Consulenza Contao CMS https://www.intco.it

  7. #7
    User
    Join Date
    01-20-11.
    Location
    Germany
    Posts
    77

    Default Re: urlcleaner

    Hi Gary,

    this seems to be a test system. Can you create me an account and mail it to contao@etes.de? I'd like to check if this is some configruation issue or if this is a bug in our extension.

    Jan
    Free support only here in the forum.
    Please report bugs for my extensions using http://www.contao-forge.org. Thanks!
    Requests for Contao support and development please send mail to jan@theofel.de

  8. #8
    User
    Join Date
    06-19-09.
    Posts
    417

    Default Re: urlcleaner

    Thanks Jan - I have emailed 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
  •