Static pages and weblog redirection
Posted: 17 June 2008 05:39 AM   [ Ignore ]  
Summer Student
Total Posts:  3
Joined  05-01-2008

Hi all,

I’m trying to get my head around how I can create ‘static’ pages.

So far I’ve got a ‘page’ weblog, and a ‘page’ template. I write a new post called ‘About Us’ to the page weblog and access it through ‘domain.com/index.php/site/page/about_us’.

That’s all fine, but when I navigate to ‘domain.com/index.php/site/page/’ I get a list of all the entries. Limiting to one will just pull down the latest post.

Is there any way to decline access to the /page/ weblog without specifying a post (/page/about_us/), Or perhaps redirecting back to the index page?

I hope this make sense, we need to demonstrate this to our client tommorow and I’m starting to panic!

For the record, I do know about the pages module and have had a tinker but the solution I’ve proposed is what the client wants so any advice is greatly appreciated!

Thanks!

Profile
 
 
Posted: 17 June 2008 06:01 AM   [ Ignore ]   [ # 1 ]  
Summer Student
Total Posts:  3
Joined  05-01-2008

After reading my post again I don’t think static pages is the correct term. Basically the pages weblog is just that, a blog. I just want to restrict access to the weblog directory but allow access to each post inside the weblog.

I hope this clears things up!

Profile
 
 
Posted: 17 June 2008 06:49 AM   [ Ignore ]   [ # 2 ]  
Moderator
Avatar
RankRankRankRankRankRankRank
Total Posts:  12918
Joined  05-15-2004

You’re probably looking for require_entry="yes”.

 Signature 

Everything will be good in the end. If it’s not good, it’s not the end.

Profile
MSG
 
 
Posted: 17 June 2008 07:02 AM   [ Ignore ]   [ # 3 ]  
Summer Student
Total Posts:  3
Joined  05-01-2008

Totally awesome, using require_entry and no_results to redirect back to the index worked perfectly!

Many thanks Ingmar! smile

Profile
 
 
   
 
 
Post Marker Legend
New Topic New posts Hot Topic Hot Topic with new posts New Poll New Poll Moved Topic Moved Topic Sticky Topic Sticky topic
Old Topic No new posts Hot Old Topic Hot Topic with no new posts Old Poll Old Poll Closed Topic Closed Topic Announcement Announcements
Theme
Change Theme
Visitor Statistics
The most visitors ever was 1149, on July 16, 2007 10:33 AM
Total Registered Members: 60731 Total Logged-in Users: 25
Total Topics: 73197 Total Anonymous Users: 15
Total Replies: 394753 Total Guests: 433
Total Posts: 467950    
Members ( View Memberlist )
Newest Members:  rezvani63LambergbcurranChethansisiharmonijoe_carneypsykonautJitsunROPasterfredpws