Jump to content

Ivan Gretsky

  • Posts

  • Joined

  • Last visited

  • Days Won


Posts posted by Ivan Gretsky

  1. On 5/24/2024 at 11:51 PM, ryan said:

    Support for Inputfield header icon actions defined in PHP. If you recall, a couple weeks ago we released header actions for Inputfields via the JS Inputfield API. Robin S requested that the same be available from the PHP Inputfield API, and now it is. More details can be found in the phpdoc for the Inputfield::addHeaderAction() method here.

    Great stuff! Thanks for this @ryan! I think that another great thing to have would be custom repeater item actions. As far as I understand, we now cannot add any of these. But they could be as useful. Especially for repeater matrix based content builder setups.


    • Like 3
  2. Hi @rooofl! What are your goals? Is SEO a conсern? Best practices should always help achieve a goal.

    Anyway, let me add some options to go under "something else":

    1. Create a template for projects and out put nothing there but a link to the main page. Optionally restrict its indexing. Make sure no links point to that page (take care of breadcrumbs if you have them). This way noone but freaks who like to modify the url bar in the browser will ever get there.
    2. Same as 1 but add a redirect. You could put it in the template file for projects with something like this. Maybe with 303 or 307 code.
    3. If you really care about the beauty of the urls, could make use of url segments and make your project pages be accessible as home/project1. But that would require some work.
    4. You could put something useful on the projects page' Like a search box.
    • Like 2
  3. Ok, if it's time for claiming rights for abbreviations I will put PATU here. It is unpoly instead of htmx. Umpoly is more close to PW way of doing things being an opinionated but more full fledged solution. More to that, Ryan once said he liked it more. And it is not such a buzzword as htmx nowadays, quite in the spirit of PW.

    I even have two logo ideas for that to choose from:

    1 - https://en.wikipedia.org/wiki/Patu_digua

    2 - https://en.wikipedia.org/wiki/Patu

    The only small thing left is to actually build something meaningful with it))

  4. Good day everybody! How are you doing @teppo!

    Wireframe\Controller has int() and render() methods. Their docblocks say that inti() is to perform early checks and render is the place to pass vars to view. I've been working with this a while but still do not quite grasp how to use them together. I either use one or a another. Demo repo doesn't have any examples with both methods. Could plrease someone in the know share their wisdom (or opinion) on this?

    And a more specific question. If I use them together and put checks into init(), how do I avoid triggering render, if those checks do not pass? For example, some fields are empty and regular render should not happen, but an error should be shown instead.


  5. PW doesn't work with SQlite, so no PW based nativephp apps possible) This is PW forum, so my first reaction is to explore possibilities of every tech mentioned concerning PW. I am sure the DB is not the only limitation though)

    But nativephp is something cool to know about anyway. Thanks, @szabesz!

    P.S. I've seen @flydev following static-php-cli which is a dependency for nativephp. Maybe he can share his wisdom on the topic.

    • Like 2
  6. On 2/5/2024 at 6:51 PM, hellomoto said:

    Are URL segments indexable & search engine optimizable? Site-mappable?

    As it is all urls and html content at the end the answer is yes to all of those questions. The difference is that you don't get a unique page object for a urlSegment as you do for a regular page. The urlSegment can show data from some other page though (as you mentioned).

    You need to code all this. And there might be only a little or a lot of code. You need to start solving tasks one by one to find out all the answers.

    On 2/5/2024 at 6:51 PM, hellomoto said:

    I don't know how to test this locally.

    I do not see any difference where to test it at. Surely, most of the time it is done in some sort of a test env. Locally is totally fine. But maybe there is some sort of a limitation at your external data provider. If so, elaborate on this and we will answer in more detail.

    • Like 1
  7. Thanks, @ryan!

    Being here for so many years it feels like home. And everyone in the forums like relatives, even though I never seen them in person and only imagine them as their avatars living somewhere around the globe) So these "winter holidays" celebration posts are kind of like a family reunion, when everybody gathers at a holiday table after a not so easy year passed.

    Happy new year to everyone! Let it be a better one!

    С наступающим! Всего хорошего и доброго! 🎄🎉🎅

    • Like 9
  • Create New...