Codoforum related discussions
php Code in a Custom Page?
php

Is it possible to stick some php code in a custom page? Right now it doesn't look like the software allows it. Is there something I can change to get this to work?

Thanks

Is it possible to stick some php code in a custom page? Right now it doesn't look like the software allows it. Is there something I can change to get this to work? Thanks

Or, can I have a custom page point directly to a plugin?

Or, can I have a custom page point directly to a plugin?

Is it possible to stick some php code in a custom page? Right now it doesn't look like the software allows it. Is there something I can change to get this to work?

Thanks

I'd like to know if you could create a custom page and fetch data from a specific category/forum to it.

>Is it possible to stick some php code in a custom page? Right now it doesn't look like the software allows it. Is there something I can change to get this to work? >Thanks I'd like to know if you could create a custom page and fetch data from a specific category/forum to it.

Darp

Hi,

You cannot add php code to a custom page.

But, you can create your own plugin for your purpose.

I'd like to know if you could create a custom page and fetch data from a specific category/forum to it.

Yes, you could do that.

You can create a plugin or directly define a new route in routes.php file.

You can check out the route /category/:cat_name
in the routes.php file and copy that code to get topics from a category.

Hi, You cannot add php code to a custom page. But, you can create your own plugin for your purpose. >I'd like to know if you could create a custom page and fetch data from a specific category/forum to it. Yes, you could do that. You can create a plugin or directly define a new route in routes.php file. You can check out the route ``/category/:cat_name`` in the routes.php file and copy that code to get topics from a category.

Hi,

You cannot add php code to a custom page.

But, you can create your own plugin for your purpose.

I'd like to know if you could create a custom page and fetch data from a specific category/forum to it.

Yes, you could do that.

You can create a plugin or directly define a new route in routes.php file.

You can check out the route /category/:cat_name
in the routes.php file and copy that code to get topics from a category.

Would this allow you to edit the template to just show the posts and nothing more? Because I want to fetch a category, change the template to make it look like a blog/news page (without the listing of categories)

>Hi, >You cannot add php code to a custom page. >But, you can create your own plugin for your purpose. >>I'd like to know if you could create a custom page and fetch data from a specific category/forum to it. >Yes, you could do that. >You can create a plugin or directly define a new route in routes.php file. >You can check out the route ``/category/:cat_name`` >in the routes.php file and copy that code to get topics from a category. Would this allow you to edit the template to just show the posts and nothing more? Because I want to fetch a category, change the template to make it look like a blog/news page (without the listing of categories)

Darp

265
5
4
live preview
enter atleast 10 characters
WARNING: You mentioned %MENTIONS%, but they cannot see this message and will not be notified
Saving...
Saved
With selected deselect posts show selected posts
All posts under this topic will be deleted ?
Pending draft ... Click to resume editing
Discard draft