Web Pages Module Released
Posted:
Tue Jun 17, 2008 2:20 pm
by shannah
I have created and released a drop-in web pages module for use in any Xataface application that adds the notion of static web pages to your application. All you have to do is create a table in MySQL (as defined in the readme file) and drop the module into your application's 'tables' directory and you'll be able to add/edit web pages for your application.
You can download the module
here.
Read the readme file
here.
Looks interesting ...
Posted:
Mon Aug 04, 2008 9:03 am
by njw
but how do you get just the web page to display i.e. without all the actions etc.?
I suspect this is answered by my other query today, but there may be another option for this?
Many thanks
Neil
Posted:
Tue Aug 05, 2008 10:00 am
by shannah
Check out the readme file. The module comes with an action to display the page. The readme file also shows a quick example of how to use mod_rewrite to make the pages show up with nice urls just like in LCMS.
I had already done that
Posted:
Tue Aug 05, 2008 10:36 am
by njw
and just checked again. What I get is the page, but with all the standard actions etc. which allows me to browse and edit the page.
What I was looking for, was to have the page appear without that, i.e. as a web page with just the application header and the tabs for the other tables.
I suppose the answer is back to permissions?
Many thanks
Neil
Posted:
Tue Aug 05, 2008 12:17 pm
by shannah
OK.. one solution is to make a small mod to the pages/page.html template. It currently looks like:
- Code: Select all
...
{fill_slot name="main_section"}
...
{/fill_slot}
...
Change the slot name to "main_column". This will get rid of all that stuff.
e.g.
- Code: Select all
...
{fill_slot name="main_column"}
...
{/fill_slot}
...
-Steve