mike
|
| Posted: 07/24/2009, 4:27 AM |
|
I have several pages with info (STATIC) which I only want to give access to
people with registered level (2)
As a quick test - I renamed a page. Created a blank RESTRICTED page with
same name and then replaced the HTML page
obviously that does not work!
.....if someone types the actual HTML page
Do I have to make the content come from a database or can I just put a Tag
on the page ?
|
|
|
 |
jjrjr1
Posts: 942
|
| Posted: 07/26/2009, 2:49 PM |
|
This problem would go away if you placed all your html into a template directory.
This is set in the projects properties tab for Templates.
What is happening here, I am guessing, is after you publish and you have not specified a template directory, both your HTML Tempate and PHP script are in the root directory.
Since you server is probably set to look for HTML files before PHP, the static HTML page is getting displayed and the PHP script is not even running.
Let me know if that helps
_________________
John Real - More CodeCharge Studio Support at - http://CCSElite.com |
 |
 |
mike
|
| Posted: 07/29/2009, 2:39 AM |
|
Hi,
I entered the folder for templates. And it works correctly now.
Thanks
I have a general question - the site consists of Static and dynamic pages
and I use Dreamweaver for the rest of the site.
Would it be a good idea to create a page in CodeCharge for ALL the other
pages (Static ones) such as the home, about etc.
so a PHP page is created for each HTML page ?
"jjrjr1" <jjrjr1@forum.codecharge> wrote in message
news:54a6ccf4f22a08@news.codecharge.com...
> This problem would go away if you placed all your html into a template
> directory.
>
> This is set in the projects properties tab for Templates.
>
> What is happening here, I am guessing, is after you publish and you have
> not
> specified a template directory bith your HTML Tempate and PHP script are
> in the
> root directory.
>
> Since you server is probably set to look for HTML files before PHP, the
> static
> HTML page is getting displayed and the PHP script is not even running.
>
> Let me know if that helps
>
>
> _________________
> More CodeCharge Studio Support at - http://CCSElite.com
> ---------------------------------------
> Sent from YesSoftware forum
> http://forums.yessoftware.com/
>
|
|
|
 |
jjrjr1
Posts: 942
|
| Posted: 07/29/2009, 8:15 AM |
|
Yes
_________________
John Real - More CodeCharge Studio Support at - http://CCSElite.com |
 |
 |
|