This topic is locked

Adding/Integrating my own pages

2/18/2009 5:24:44 PM
PHPRunner General questions
A
aljawo author

Hi, I´m sorry if the question is repeated but using the search I couldn´t really find something.
I have a couple of PHP scripts in different files (some customized jgraph graphics) and I wanted to know if I can integrate them to my PHPRunner project. At least as links in the menu page, of course without doing it manually which would lead to lose all the changes every time I rebuild the project.
Thanks !!

hichem 2/19/2009

Hi, I´m sorry if the question is repeated but using the search I couldn´t really find something.

I have a couple of PHP scripts in different files (some customized jgraph graphics) and I wanted to know if I can integrate them to my PHPRunner project. At least as links in the menu page, of course without doing it manually which would lead to lose all the changes every time I rebuild the project.
Thanks !!



Indeed this is very useful and a requested feature which is not currently there. Jane and Sergey are very helpful with taking such requirements on board so may be we see such a feature built in soon.

My suggestion would be to provide some sort of wrapper page or frame that would allow the linked page to appear inside the PHPR template and inherit -at least some- of it look and feel and be able to pass and get data from the embedded page.

Also if menu items can be managed by the great security access level used for PHPR then we can use teh same mechanism to display/hide the wrapped page by user group.
my 2 cents
Hich

J
Jane 2/19/2009

Hi,
to add PHP code to your pages just use custom events on the Visual Editor tab (Insert PHP code snippet option).

A
aljawo author 2/19/2009

Thanks...
Jane... The snippet does not make the job in this case.. My external scripts do a totally different task... <img src='https://asprunner.com/forums/file.php?topicimage=1&fieldname=reply&id=38031&image=1&table=forumreplies' class='bbc_emoticon' alt=':(' />(

B
bozzo 6/8/2009

Thanks...

Jane... The snippet does not make the job in this case.. My external scripts do a totally different task... <img src='https://asprunner.com/forums/file.php?topicimage=1&fieldname=reply&id=41730&image=1&table=forumreplies' class='bbc_emoticon' alt=':(' />(


Need that too, couldn´t get anything like this...

I need something like secure the pages under phpRunner created systems.

G
giles 6/8/2009

There's a couple of different ways to handle this....

  1. Add a custom View to some table and then set up, say, a View page. In the View page use an event to redirect to the php page you want to display. This gives a one click method to access an external page.
  2. Add a table to your data base that contains fields with links to the php pages you want to display. Create a list page to view your table which will then show links your users can click to navigate to your php pages. This method requires two clicks however it is very useful when you have a number of external pages that users may need to access.