Web Pages Module Released

News about Xataface

Web Pages Module Released

Postby shannah » Tue Jun 17, 2008 2:20 pm

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.
shannah
 
Posts: 4457
Joined: Wed Dec 31, 1969 5:00 pm

Looks interesting ...

Postby njw » Mon Aug 04, 2008 9:03 am

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
njw
 
Posts: 280
Joined: Wed Dec 31, 1969 5:00 pm

Postby shannah » Tue Aug 05, 2008 10:00 am

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.
shannah
 
Posts: 4457
Joined: Wed Dec 31, 1969 5:00 pm

I had already done that

Postby njw » Tue Aug 05, 2008 10:36 am

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
njw
 
Posts: 280
Joined: Wed Dec 31, 1969 5:00 pm

Postby shannah » Tue Aug 05, 2008 12:17 pm

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
shannah
 
Posts: 4457
Joined: Wed Dec 31, 1969 5:00 pm

Many thanks Steve

Postby njw » Wed Aug 06, 2008 6:53 am

Looks good now.
njw
 
Posts: 280
Joined: Wed Dec 31, 1969 5:00 pm


Return to Xataface News

Who is online

Users browsing this forum: No registered users and 13 guests

Powered by Dataface
© 2005-2007 Steve Hannah All rights reserved