Giter Site home page Giter Site logo

Comments (7)

MattiasNilsson avatar MattiasNilsson commented on September 26, 2024 1

@bh-teufels We recommend that you use the plugin called ProductRender instead. This is due to the fact that it now uses pages instead of sys_categories and also have full support for proper routes out of the box.

from pxa_product_manager.

bh-teufels avatar bh-teufels commented on September 26, 2024

i see that the PluginName has changed from Pi1 (for list, show) to different Plugins for each action.
how should the route enhancers look when i want to achieve the following:

Detail:

URL looks like:
http://my-domain.com/product/?tx_pxaproductmanager_productshow%5Baction%5D=show&tx_pxaproductmanager_productshow%5Bcontroller%5D=ProductShow&tx_pxaproductmanager_productshow%5BextensionName%5D=PxaProductManager&tx_pxaproductmanager_productshow%5BpluginName%5D=ProductShow&tx_pxaproductmanager_productshow%5Bproduct%5D=1&cHash=a97070f5e9e09d7e944b615d2344b679

URL should look like:
http://my-domain.com/subfolder/<product_title>

Listing:
i use 1 Filter (Radio, Category, OR) and
1 Filter (Checkbox, Attribute Mutliselect, AND)
and want to have also speaking URLs for the Filter

URL looks like:

from pxa_product_manager.

bh-teufels avatar bh-teufels commented on September 26, 2024

with the following code for route enhancer i get the product name in the url but still having
/?tx_pxaproductmanager_productshow%5BextensionName%5D=PxaProductManager&tx_pxaproductmanager_productshow%5BpluginName%5D=ProductShow&cHash=853401fd9a159e75dc3afb7399c3dd62 in the url

ProductShow:
    type: Extbase
    limitToPages: [8]
    extension: PxaProductManager
    plugin: ProductShow
    routes:
      -
        routePath: '/{product_title}'
        _controller: 'ProductShow::show'
        _arguments:
          product_title: product
    defaultController: 'ProductShow::show'
    aspects:
      product_title:
        type: PersistedAliasMapper
        tableName: tx_pxaproductmanager_domain_model_product
        routeFieldName: slug

from pxa_product_manager.

bh-teufels avatar bh-teufels commented on September 26, 2024

Thank you
with the ProductRenderer Plugin an the following route enhancer it is working

ProductRender:
    type: Extbase
    limitToPages: [9]
    extension: PxaProductManager
    plugin: ProductRender
    routes:
      -
        routePath: '/{product_title}'
        _controller: 'ProductRender::init'
        _arguments:
          product_title: product
    defaultController: 'ProductRender::init'
    aspects:
      product_title:
        type: PersistedAliasMapper
        tableName: tx_pxaproductmanager_domain_model_product
        routeFieldName: slug

from pxa_product_manager.

MattiasNilsson avatar MattiasNilsson commented on September 26, 2024

@bh-teufels Good to hear that is works!

from pxa_product_manager.

bh-teufels avatar bh-teufels commented on September 26, 2024

the topic "Speaking URL for Listing" is still present.
is it possible to have route enhancer for the List filter?

from pxa_product_manager.

MattiasNilsson avatar MattiasNilsson commented on September 26, 2024

@bh-teufels Not at the moment, but it may come in some future update. As said before any PR is welcome!

from pxa_product_manager.

Related Issues (20)

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.