Results 1 to 15 of 15

Thread: Redirection address incorrect

  1. #1
    User
    Join Date
    08-04-09.
    Posts
    230

    Default Redirection address incorrect

    I have made several metamodels catalogs.
    All working well.

    Except one.
    The redirect from my MM list works to the page I have created. But.... the page is named: .html
    There is no name generated.

    I KNOW this is entered/arranged somewhere. But I have been clicking through all the items and I just cannot seem to find it.
    I also do not see any significant differences with the working catalogs.

    But lost here...

  2. #2
    User zonky's Avatar
    Join Date
    11-29-11.
    Location
    Berlin
    Posts
    159

    Default

    you have a link (named "redirect" ?) from your mm fe list to your mm fe detail?

    at wich URL can I found this?

  3. #3
    User zonky's Avatar
    Join Date
    11-29-11.
    Location
    Berlin
    Posts
    159

    Default

    .. o.k. - I found your listing...

    in your URL I miss the alias to filter the detail page..

  4. #4
    User
    Join Date
    08-04-09.
    Posts
    230

    Default

    This is where I have got to be missing something.

    The alias is made in my attributes.

    Filter is made (simplelookup / auto_item) and connected to this alias.

    There must be another step which I must have done correct with the other 3 catalogs, but cannot seem to find now.

  5. #5
    User zonky's Avatar
    Join Date
    11-29-11.
    Location
    Berlin
    Posts
    159

    Default

    you must at the render settings of your list config the url to the detail page AND the filter

    pls loog at the "debug" array - you should find [jumpTo][deep] => 1 and [jumpTo][deep] => <our URL>

  6. #6
    User zonky's Avatar
    Join Date
    11-29-11.
    Location
    Berlin
    Posts
    159

    Default

    and... activate your .htaccess and change to urls without index.php

  7. #7
    User
    Join Date
    08-04-09.
    Posts
    230

    Default

    I have added the url and filter to the list render settings.
    This is why it is so odd, I have looked over everything and the settings are identical to the other catalogs which are working fine even without activating the pretty url.


    This is with debugging:

    [deep] => 1
    [url] => index.php/fokmerries/.html

    I have just deleted the filter, cleared the cache. Remade and connected the filter, but with the same result.

  8. #8
    User
    Join Date
    08-04-09.
    Posts
    230

    Default

    I did add the url and filter to my list render settings. just like I did with the other three catalogs, who work fine even without the pretty url.

    This is the debug output:

    [deep] => 1
    [url] => index.php/fokmerries/.html

    I have just deleted the filter, cleared cache and remade it. But still same output.

    To my vague knowledge there is a place where you can enter another name for the url output rather then then an attribute field. But this I just cannot find.

  9. #9
    User MacKP's Avatar
    Join Date
    06-19-09.
    Location
    Duisburg (Germany)
    Posts
    211

    Default

    Hi lostrisq,
    do you have an alias for that Item (as Alias Attribute)?

    regards
    Mediendepot Ruhr
    For real-time chat the (inofficial) Chatroom in IRC:
    -> irc.freenode.net #contao | irc.freenode.net #contao.de

  10. #10
    User
    Join Date
    08-04-09.
    Posts
    230

    Default

    Beats me.... I have deleted a whole lot and remade it. And now it is working.

    But without knowing what went wrong....

    Thank you for helping me out anyway :-)

  11. #11
    User
    Join Date
    08-04-09.
    Posts
    230

    Default

    I am posting in this thread again, because I have a similar problem now.

    The detailpage is generated from the name in the list. When there is one word, no problem. But with two words the link is generated with a + instead of a _
    For example:
    The name is Hometown Hero
    Link should be hometown_hero.html, but metamodels creates Hometown+hero.html

    Where is this generated?

  12. #12
    User zonky's Avatar
    Join Date
    11-29-11.
    Location
    Berlin
    Posts
    159

    Default

    ...this sounds like the same as https://github.com/MetaModels/core/issues/910

  13. #13
    User
    Join Date
    08-04-09.
    Posts
    230

    Default

    Well yes it does.
    But I do not really see a solution?

    I still do not exactly see how this alias is generated.
    In the alias attribute you can select the field. I selected name. But when i select another attribute, it does not change.

    Therefore it is hard for me to figure out where to fix this. Or even change this.

  14. #14
    User MacKP's Avatar
    Join Date
    06-19-09.
    Location
    Duisburg (Germany)
    Posts
    211

    Default

    The alias-Field is only generated when the content of the other field is changed. So you will have to change the other field, when you need to generate it new.
    As you can see you need an alias-Field. So just configure your field as you need it and go on ;-)

    regards
    Mediendepot Ruhr
    For real-time chat the (inofficial) Chatroom in IRC:
    -> irc.freenode.net #contao | irc.freenode.net #contao.de

  15. #15
    User zonky's Avatar
    Join Date
    11-29-11.
    Location
    Berlin
    Posts
    159

    Default

    Quote Originally Posted by MacKP View Post
    The alias-Field is only generated when the content of the other field is changed.
    add a space at end ans save to update - MM trim the spaces save at new

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
  •