You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Something that I find lacking is the ability to add custom pages from plugins. Currently a plugin like the blog plugin and store plugin use a rather complex and convoluted way to create custom pages. My suggestion would be to incorporate into core, in order to make this usable.
Core could execute the function in argument 2 to get all information to construct a page. This would trigger as follows:
url /blog would call function with [] as argument
url /blog/foo would call function with ["foo"] as argument
url /blog/foo/bar/baz would call function with ["foo", "bar", "baz"] as argument
The text was updated successfully, but these errors were encountered:
robiso
changed the title
[feature-request] Add page handler
[Feature request] Add page handler
Aug 11, 2020
With the latest version of WonderCMS, you can do this by using: $Wcms->createPage('blog/foo', true); $Wcms->updatePage('blog/foo', 'title', 'Lorem ipsum');
Example from the code in index.php where it's used:
Something that I find lacking is the ability to add custom pages from plugins. Currently a plugin like the blog plugin and store plugin use a rather complex and convoluted way to create custom pages. My suggestion would be to incorporate into core, in order to make this usable.
Example usage of this:
Core could execute the function in argument 2 to get all information to construct a page. This would trigger as follows:
url
/blog
would call function with[]
as argumenturl
/blog/foo
would call function with["foo"]
as argumenturl
/blog/foo/bar/baz
would call function with["foo", "bar", "baz"]
as argumentThe text was updated successfully, but these errors were encountered: