Can I use {content} in external php page?

For questions and problems with the CMS core. This board is NOT for any 3rd party modules, addons, PHP scripts or anything NOT distributed with the CMS made simple package itself.
Locked
knert

Can I use {content} in external php page?

Post by knert »

Hi,

I checked the forum but found no answer, so I give it a try on here:

I use a login system what works pretty well with php docs. Within each php doc I have to put a php code on top so when I log in all those docs are secured and are viewable. When I logout these docs are secured and not viewable any more.

For the last week I tried to implement this login code into cmsms pages using {php} style or "User defined tag" in the template. Reason: I wanted to create several pages in the cmsms invironment with this template. Logically these pages should be secured.

Unfortenately this does not work for some blurring reason. (may be because the login script self is external?)

So my next step is this:

Is it possible to put a user defined tag into an external php page? In other words: a page that is not created in cmsms ?

Many grtz

Knert
Pierre M.

Re: Can I use {content} in external php page?

Post by Pierre M. »

knert wrote: Is it possible to put a user defined tag into an external php page? In other words: a page that is not created in cmsms ?
Hello !

Inside PHP you may write what you want but it has to be PHP and nothing else.
Inside CMSms templates, you should write xhtml and {tags}.

If I understand you well, here are two ways :

A°)If you want to keep your existing PHP authentification & autorization system.
-install all CMSms under a hidden obfuscated private URL or better : htpasswd.
-keep your system with users, pass...
-when a user is autorised, issue a local HTTP GET to the CMSms content (CURL or such), parse the result to keep only the body.
-include this body in the HTTP response of your system.

B°)Try the Front End Users module
...and other modules... may be they can replace your system... may be you can join the community who maintain them ? As you wish.

PM
Locked

Return to “CMSMS Core”