csf Ah, OK. I wasn't fully cognisant of the URL underpinnings. I was just taking them for face value. Not an issue then. Thanks for the links, @Davis.
sijad @grantus @Kakifrucht @pwFoo I'm working on dynamic page. if you wiling to test it you can upgrade to latest dev version via following command: composer require "sijad/flarum-ext-pages":"dev-master" a quick reference create a folder named pages in your flarum root folder. create php files within pages folder. you can create files in subfolder. files extension should be .php. you can include created files in admin editor via @include({PATH}) command. {PATH} should be path to the file which placed in pages folder. if you want use blade syntax, file's name should ends with .blade.php. Examples path: {FLARUM_ROOT}/pages/mypage.php > @include(mypage.php) path: {FLARUM_ROOT}/pages/subfolder/mypage.php > @include(subfolder/mypage.php) path: {FLARUM_ROOT}/pages/page.blade.php > @include(page.blade.php)
Kakifrucht sijad Really cool, thanks. Right now one must ensure that the files are in UTF encoding, ANSI will in most cases fail.
pwFoo Think I need an additional option to install your dev version? [InvalidArgumentException] Could not find package sijad/flarum-ext-pages@dev-master at any version for your minimum-stability (beta). Check the package spelling or your minimum-stability
sijad pwFoo sorry, thanks for testing, I updated command in above post. you also can edit your composer.json and change sijad/flarum-ext-pages version to dev-master and then run composer update.
pwFoo Tried to change the composer.json and killed my test flarum with the composer upgrade. Is there no simple way to install a dev plugins just with a composer command?
pwFoo Tested with a new flarum docker container. Installed successful. Thanks UPDATE Simple test works fine! Will try to bootstrap the CMF of my choice inside ?
grantus @sijad So far my dynamic php pages look great! However, I'm still testing them and the first thing I noticed was my pagination is not working. For example, right now my test page is http://localhost/flarum/p/2-test?result=2 and it just reloads the same results. I'm assuming it's something with this extension? Because I've been using the same pagination for a long time. Thanks.
sijad grantus the query you send to forum will not available in request that will send to API. I'll find a way to fix this.
AllysonSouzaNopSai @sijad , a important thing. When user try a page no created, need to return 404. For example, just have page 1 and 2, and user try http://site.com/p/3 A js error will be created, it's not a good idea. :/
sijad A new version has been realized, it's compatible with Flarum Beta 6. you can update via composer to latest version. deseven thanks for report
rnovino sijad tested this out on beta 6 how does the enable html work coz I inserted html tags but id just showed be blank page.
sijad rnovino no but there's an open issue for this feature: sijad/flarum-ext-pages6 rnovino I couldn't reproduce, can you please make sure there's no PHP error in your error logs?