As subject, is it achievable using drupal? Let say I have a page to be displayed, but inside is all php scripts or might be just a static html page. I tried using views module, but it still require a node for a view.
# Hendry
You can create a page - or any content type, panel, block, etc - that will accept and display either HTML or PHP. Be careful handing out that permission though, as users could break your site.
-Benj
On Wed, Jul 7, 2010 at 12:38 AM, Hendry hendry.htc@gmail.com wrote:
As subject, is it achievable using drupal? Let say I have a page to be displayed, but inside is all php scripts or might be just a static html page. I tried using views module, but it still require a node for a view.
# Hendry
[ Drupal support list | http://lists.drupal.org/ ]
Depending on how complicated the php is you have basically two choices:
1. Implement a custom module that displays the page you want on the path you want. 2. Create a node that contains the page, using PHP input filters to add code to the page.
Really if you're just planning on creating a static html page, you should just create a node and give it a path.
If you want to go the custom module route, then it's as easy as creating two functions and an info file. See the module developers guide for more information.
-----Original Message----- From: support-bounces@drupal.org [mailto:support-bounces@drupal.org] On Behalf Of Hendry Sent: Tuesday, July 06, 2010 11:38 PM To: support@drupal.org Subject: [support] display a view / page without node
As subject, is it achievable using drupal? Let say I have a page to be displayed, but inside is all php scripts or might be just a static html page. I tried using views module, but it still require a node for a view.
# Hendry -- [ Drupal support list | http://lists.drupal.org/ ]
Thanks for the reply, I had just go with the option 1 to implement a custom module and let the hook_menu and hook_menu_alter to handle these. Actually I will have not only one but several pages, so yeah I think it's the best option.
# Hendry
On Wed, Jul 7, 2010 at 10:01 PM, Metzler, David metzlerd@evergreen.edu wrote:
Depending on how complicated the php is you have basically two choices:
- Implement a custom module that displays the page you want on the path
you want. 2. Create a node that contains the page, using PHP input filters to add code to the page.
Really if you're just planning on creating a static html page, you should just create a node and give it a path.
If you want to go the custom module route, then it's as easy as creating two functions and an info file. See the module developers guide for more information.
Isn't it easier to configure the view path at views configuration page?
2010/7/7 Hendry hendry.htc@gmail.com:
Thanks for the reply, I had just go with the option 1 to implement a custom module and let the hook_menu and hook_menu_alter to handle these. Actually I will have not only one but several pages, so yeah I think it's the best option.
# Hendry
On Wed, Jul 7, 2010 at 10:01 PM, Metzler, David metzlerd@evergreen.edu wrote:
Depending on how complicated the php is you have basically two choices:
- Implement a custom module that displays the page you want on the path
you want. 2. Create a node that contains the page, using PHP input filters to add code to the page.
Really if you're just planning on creating a static html page, you should just create a node and give it a path.
If you want to go the custom module route, then it's as easy as creating two functions and an info file. See the module developers guide for more information.
-- [ Drupal support list | http://lists.drupal.org/ ]
Yes, it is easier using views module, provided you have a node to display, but I don't want to load a node.
# Hendry
On Fri, Jul 9, 2010 at 7:19 PM, Lluís Forns enboig@gmail.com wrote:
Isn't it easier to configure the view path at views configuration page?
In Drupal 6 Views has support for a lot more data.
If your data is in a database table that is not supported by views try the Table Wizard
Otherwise, I think you're headed for a custom module with hook_menu implementation and a custom function for the callback.
Regards, Greg
PS If you're not on Drupal 6, use this as a good reason to upgrade. The time is close where Drupal 5 will no longer be supported.
-- Greg Knaddison | 303-800-5623 | http://growingventuresolutions.com Mastering Drupal | http://www.masteringdrupal.com
On Fri, Jul 9, 2010 at 8:12 AM, Hendry hendry.htc@gmail.com wrote:
Yes, it is easier using views module, provided you have a node to display, but I don't want to load a node.
# Hendry
On Fri, Jul 9, 2010 at 7:19 PM, Lluís Forns enboig@gmail.com wrote:
Isn't it easier to configure the view path at views configuration page?
-- [ Drupal support list | http://lists.drupal.org/ ]
Hi Greg, yes I'm using Drupal 6, you might've skipped my previous email, I've solved this using custom module :) Thanks
# Hendry
On Fri, Jul 9, 2010 at 11:10 PM, Greg Knaddison Greg@growingventuresolutions.com wrote:
In Drupal 6 Views has support for a lot more data.
If your data is in a database table that is not supported by views try the Table Wizard
Otherwise, I think you're headed for a custom module with hook_menu implementation and a custom function for the callback.
Regards, Greg
PS If you're not on Drupal 6, use this as a good reason to upgrade. The time is close where Drupal 5 will no longer be supported.