Might be a silly question but is it possible to create a content type or a node type (excuse terminology errors) that can have say php code that will query the database and display results?
I'm thinking along the lines of creating reports to display database data of whatever description..
TIA
Sure. Enable the included PHP Filter module, set the input filter to 'PHP' when creating your node and you can put your code in the body field.
On Sat, Jul 16, 2011 at 2:38 PM, Wipe_Out wipe_out@users.sourceforge.netwrote:
Might be a silly question but is it possible to create a content type or a node type (excuse terminology errors) that can have say php code that will query the database and display results?
I'm thinking along the lines of creating reports to display database data of whatever description..
TIA
-- [ Drupal support list | http://lists.drupal.org/ ]
Awesome.. Now just have to find out all the D7 variables and functions I can make use of.. :)
On 16 July 2011 19:45, William Smith william.darren@gmail.com wrote:
Sure. Enable the included PHP Filter module, set the input filter to 'PHP' when creating your node and you can put your code in the body field.
On Sat, Jul 16, 2011 at 2:38 PM, Wipe_Out wipe_out@users.sourceforge.netwrote:
Might be a silly question but is it possible to create a content type or a node type (excuse terminology errors) that can have say php code that will query the database and display results?
I'm thinking along the lines of creating reports to display database data of whatever description..
TIA
-- [ Drupal support list | http://lists.drupal.org/ ]
-- [ Drupal support list | http://lists.drupal.org/ ]
Be aware that this is considered a security risk and may break your search indexing. It is far better (and faster) to create a site-specific module to do things like this.
Nancy Injustice anywhere is a threat to justice everywhere. -- Dr. Martin L. King, Jr.
From: William Smith
Sure. Enable the included PHP Filter module, set the input filter to 'PHP' when creating your node and you can put your code in the body field.
Thanks Nancy..
I am in the process of planning a number of custom modules, just thought this may be a quick way to create simple custom pages.. I understand what you are saying though..
On 16 July 2011 23:36, Ms. Nancy Wichmann nan_wich@bellsouth.net wrote:
Be aware that this is considered a security risk and may break your search indexing. It is far better (and faster) to create a site-specific module to do things like this.
*Nancy*
Injustice anywhere is a threat to justice everywhere. -- Dr. Martin L. King, Jr.
*From:* William Smith
Sure. Enable the included PHP Filter module, set the input filter to 'PHP' when creating your node and you can put your code in the body field.
-- [ Drupal support list | http://lists.drupal.org/ ]
You may want to look at the Views module for creating report pages.
Nancy, when you say break search indexing are you talking about Drupal search of external search engines.
Thanks, Steve On Jul 17, 2011 3:46 AM, "Wipe_Out" wipe_out@users.sourceforge.net wrote:
Thanks Nancy..
I am in the process of planning a number of custom modules, just thought this may be a quick way to create simple custom pages.. I understand what you are saying though..
On 16 July 2011 23:36, Ms. Nancy Wichmann nan_wich@bellsouth.net wrote:
Be aware that this is considered a security risk and may break your
search
indexing. It is far better (and faster) to create a site-specific module
to
do things like this.
*Nancy*
Injustice anywhere is a threat to justice everywhere. -- Dr. Martin L. King, Jr.
*From:* William Smith
Sure. Enable the included PHP Filter module, set the input filter to
'PHP'
when creating your node and you can put your code in the body field.
-- [ Drupal support list | http://lists.drupal.org/ ]
Drupal search. I've had several sites that had search problems, before I got the PHP religion. There are also several DO forum topics discussing this. If cron suddenly breaks, this is almost certainly the cause. The only time I have a PHP page is when I'm testing something; then it gets module-ized and deleted.
Nancy Injustice anywhere is a threat to justice everywhere. -- Dr. Martin L. King, Jr.
From: Steve Kessler
You may want to look at the Views module for creating report pages. Nancy, when you say break search indexing are you talking about Drupal search of external search engines.
Thanks for the info. I just was not aware and its good to know.
On Sun, Jul 17, 2011 at 10:57 AM, Ms. Nancy Wichmann <nan_wich@bellsouth.net
wrote:
Drupal search. I've had several sites that had search problems, before I got the PHP religion. There are also several DO forum topics discussing this. If cron suddenly breaks, this is almost certainly the cause. The only time I have a PHP page is when I'm testing something; then it gets module-ized and deleted.
*Nancy* Injustice anywhere is a threat to justice everywhere. -- Dr. Martin L. King, Jr.
*From:* Steve Kessler
You may want to look at the Views module for creating report pages. Nancy, when you say break search indexing are you talking about Drupal search of external search engines.
-- [ Drupal support list | http://lists.drupal.org/ ]