GithubHelp home page GithubHelp logo

calien666 / persisted-sanitized-routing Goto Github PK

View Code? Open in Web Editor NEW
1.0 1.0 0.0 16 KB

Persisted Sanitized Pattern Mapper for TYPO3 >= 9.5, creates santized URLs for PersistedPatternMapper

License: MIT License

PHP 100.00%

persisted-sanitized-routing's People

Contributors

calien666 avatar

Stargazers

 avatar

Watchers

 avatar  avatar  avatar

persisted-sanitized-routing's Issues

404 when using locale map

I have configured the mapper as in the example described:

    type: PersistedSanitizedPatternMapper
    tableName: tx_extension_domain_model_info
    routeFieldPattern: '^(?P<path_segment>[\w-]+)-(?P<uid>\d+)$'
    routeFieldResult: '{path_segment|sanitized}-{uid}'
    localeMap:
      -
        locale: 'de_DE.*'
        field: path_segment
      -
        locale: 'en_GB.*'
        field: path_segment_en

When I click on the english page the link leads to 404 error. The german version works fine. Do you have a hint what the problem could be?

Possible without uid in url?

I would like an url without the uid in the url, is that possible? Iā€™m using the mapper just for the localeMap (I have an extension with one record for both languages english and german and an own slug field for each language). So in my case the PersistedAliasMapper would be fine but PersistedAliasMapper does not have the localeMap.

Class 'Calien\PersistedSanitizedRouting\Routing\Aspect\PersistedSanitizedPatternMapper' not found

When using the extension I get the following error:
Class 'Calien\PersistedSanitizedRouting\Routing\Aspect\PersistedSanitizedPatternMapper' not found

I copied the mapper into my own extension and changed the namespace according to my extension and then it works. I tried different way in your ext_localconf.php but I was not able to find out the problem. Do you have an idea? Iā€™m (still) on TYPO3 9 in non composer mode.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    šŸ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. šŸ“ŠšŸ“ˆšŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ā¤ļø Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.