Problem With Static Pages

Random stuff about serendipity. Discussion, Questions, Paraphernalia.
Post Reply
Lothar
Regular
Posts: 54
Joined: Fri Aug 03, 2007 9:06 pm
Location: Germany
Contact:

Problem With Static Pages

Post by Lothar »

I installed the plugin and created a static page, configured as start page. This works well. Then I defined another page as "About". However, I do not get any menu entry to open the page. My template is derived from carl_contest, so I have a modified index.tpl.

What have I done wrong?
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Re: Problem With Static Pages

Post by garvinhicking »

Hi!

What's your URL?

Static pages do not add themself automatically to any menu, they only add themselves to the staticpage sidebar plugin, if you configured the staticpage to show up in the menu.

Best regards,
Garvin
# Garvin Hicking (s9y Developer)
# Did I help you? Consider making me happy: http://wishes.garv.in/
# or use my PayPal account "paypal {at} supergarv (dot) de"
# My "other" hobby: http://flickr.garv.in/
Lothar
Regular
Posts: 54
Joined: Fri Aug 03, 2007 9:06 pm
Location: Germany
Contact:

Post by Lothar »

My URL is http://blog.telmarkt.de/

I have seen blogs with a menu in the header like http://group8020.com/blog/. I would like to add such a menu and to add static pages to it.

Now I have added the static pages sidebar menu. And I get the entry desired. However, clicking on the link does not show the site.

Where are the static pages stored? Are they always generated from the database? What to enter in the field Permalink and why?
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Post by garvinhicking »

Hi!
I have seen blogs with a menu in the header like http://group8020.com/blog/. I would like to add such a menu and to add static pages to it.
For that you would either need to use a template that supports menu links (like "Coffe Cup" from David cummins). Or you need to edit your index.tpl template file and insert the links manually.

About your non-working links: You seem to use Serendipity URL rewriting, but your URL in the staticpage looks like:

Code: Select all

http://blog.telmarkt.de/index.php?/pages/impressum.html
instead you should configure that permalink on:

Code: Select all

http://blog.telmarkt.de/pages/impressum.html
Where are the static pages stored? Are they always generated from the database? What to enter in the field Permalink and why?
Yes, from the database. The permalink needs to indicate the URL you want to use to access the page.

Best regards,
Garvin
# Garvin Hicking (s9y Developer)
# Did I help you? Consider making me happy: http://wishes.garv.in/
# or use my PayPal account "paypal {at} supergarv (dot) de"
# My "other" hobby: http://flickr.garv.in/
Lothar
Regular
Posts: 54
Joined: Fri Aug 03, 2007 9:06 pm
Location: Germany
Contact:

Post by Lothar »

Hi Garvin,

Code: Select all

http://blog.telmarkt.de/pages/impressum.html 
does not work. What else may be wrong?

How do the permalinks work? Because there is no directory /pages on the server.

In the configuration of a static page there are two entries:
Navigation anzeigen : True
In der Navigation der Seitenleiste einbinden: True
What does the first entry in detail? The second - I assume - defines whether an entry is shown in the sidebar box.
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Post by garvinhicking »

Hi!

The permalinks tell serendipity that it should look up the database with the called URL and see if there's a page that corrresponds with it.

Can you please provide a screenshot of the staticpage you try to show (impressum.html)?
In the configuration of a static page there are two entries:
Navigation anzeigen : True
In der Navigation der Seitenleiste einbinden: True
What does the first entry in detail? The second - I assume - defines whether an entry is shown in the sidebar box.
"Navigation anzeigen" means that back/forward navigation to childpages of a staticpage (if existing) will be shown.

Regards,
Garvin
# Garvin Hicking (s9y Developer)
# Did I help you? Consider making me happy: http://wishes.garv.in/
# or use my PayPal account "paypal {at} supergarv (dot) de"
# My "other" hobby: http://flickr.garv.in/
Lothar
Regular
Posts: 54
Joined: Fri Aug 03, 2007 9:06 pm
Location: Germany
Contact:

Post by Lothar »

Hi, these are the definitions of the static page:

http://www.edv-berater-online.de/test/S ... ePart1.png
http://www.edv-berater-online.de/test/S ... ePart2.png

I hope this is what you wanted.[/img]
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Post by garvinhicking »

Hi!

The permalink is wrong, you may not enter http://blabla, but only the full HTTP *PATH*: "/pages/impressum.html".

HTH,
Garvin
# Garvin Hicking (s9y Developer)
# Did I help you? Consider making me happy: http://wishes.garv.in/
# or use my PayPal account "paypal {at} supergarv (dot) de"
# My "other" hobby: http://flickr.garv.in/
Lothar
Regular
Posts: 54
Joined: Fri Aug 03, 2007 9:06 pm
Location: Germany
Contact:

Post by Lothar »

Thank you. Now it does what I wanted to do it.

Well, if one is able to read, he has an advantage. :-)
Post Reply