Posts by SPQRInc


    I got a simple question about routes:

    I got these routes in my extension:

    1. 'routes' => [
    2. '/books' => [
    3. 'name' => '@books',
    4. 'controller' => [
    5. 'Spqr\\Books\\Controller\\BooksController',
    6. 'Spqr\\Books\\Controller\\ItemController',
    7. 'Spqr\\Books\\Controller\\SiteController'
    8. ]
    9. ],],

    Now I wanted to create an admin menu entry like this:

    Okay. So now I got these controllers loaded with @books.

    1. 'Spqr\\Books\\Controller\\BooksController',
    2. 'Spqr\\Books\\Controller\\ItemController',
    3. 'Spqr\\Books\\Controller\\SiteController'

    The BooksController starts with:

    The SiteController starts with:

    Now I thought that in the backend menu the item would be linked to /admin/books - but it's linked to /books/. But why?

    I always thought, the annotation

    1. /**
    2. * @Access(admin=true)
    3. * @return string
    4. */

    would automatically add the route to /admin?


    My first Pagekit extension is the Sitemap Generator, which was written, because the existing one in the marketplace did not correctly crawl my page and generated a faulty sitemap.

    My extension is crawling your website faster and allows you to create excluded sites that should not be added to your sitemap.


    More information

    Hello dear forum-users,

    this board is all-new and you can take part of it's development.

    I already created some categories and forums, but maybe you would like to see more categories or wish other categories.

    So: It's your turn. Tell us, how this board should be organized :-)

    I'm working on a widget which should have some "sub-items", which can be added in a modal.

    This is the source:

    Now I do not understand, why the validation fails (invalid value is shown) if I do not enter something to the text-field and hit Cancel). In this case the validation should not even happen?

    If I click a second time the modal closes as I wished.

    If I reload the page and try to remove an item the validation also fails. If I click a second time, everything works as expected.

    But: Why? The validator should not care about the remove-button and also not about the cancel-button

    Dear visitors,

    well - as you can see, this forum is quite empty at the moment.

    But: You can bring this board to life. It doesn't matter if you are a webmaster or a developer - this board is for everyone, who works with Pagekit CMS. Be it professionally or just for fun.

    Please feel free to ask - there are no "stupid questions" and the community is going to help you out.

    But: Please also notice that all of the supporters are volunteers. So please be patient and friendly.

    Have a good time!