Page 1 of 1
Next page with Static Pages
Posted: Wed Aug 10, 2005 8:49 am
by Wizard
Hi all,
I just started with Serendipity a week or so ago and found it to be a wonderful program to use. However, I was curious, I installed Static Pages plugin and created a few pages with Parent-Child relationships. I created a page (page 1) and set its ParentPage option to "Is Parent" and created some other pages with the ParentPage option set to that page 1 file. When I see the pages in the weblog, it shows like a hierarchial layout but when page 1 is viewed, there is no "next page" button. Is this how it works? Is there a way to have pages linked by some other means? I really would like to have a single entry in the static page section and when viewing the first page have the option to click to the next page like in the entries. Any help would be appreciated.
Re: Next page with Static Pages
Posted: Wed Aug 10, 2005 2:37 pm
by garvinhicking
The latest version of the plugin committed today (Version 2.6 I think) contains additions that display links to all child pages inside the staticpage. (this updates the .tpl file of the plugin, so if you've moved that to your template directory, pay attention to update to the latest copy of the file)
A previous/next page functionality out-of-the box is currently not available. You can however just create a Staticpage 1, 2 and so on, and then put HTML links in them to the next page...
HTH,
garvin
Wait for next upgrade
Posted: Wed Aug 10, 2005 6:08 pm
by Wizard
Downloaded version 2.6 of the plugin. It did allow to put links to child pages so that part works ok. I used HTML links to create next and previous page buttons, so thanks for the tip. I did notice a couple of things with the latest version. You removed the functionality of WYSIWYG editing on the main content. It shows on the new PreContent (that's cool by the way) but not on the main. Did I miss something? Also, since it's possible to have many child pages to one parent, is there a way to show on the side bar plugin to only show parent pages and not show the children?
Re: Wait for next upgrade
Posted: Thu Aug 11, 2005 2:43 pm
by garvinhicking
Thanks for your report! I just committed a new version wihc fixes the WYSIWYG interaction and that the sidebar plugin can be set to only show parent pages.
Regards,
Garvin
Close, but no cigar!
Posted: Thu Aug 11, 2005 4:23 pm
by Wizard
Well, the new version does allow for parent pages only. Thanks for the fix! But now BOTH Content and PreContent WYSIWYG are disabled. Since you seem you can do anything with the plugin, how about an option on the static page to NOT show on the sidebar. Since email contact form is a static page, I would like that page NOT to show up with the other parent pages. I have a seperate link for that. I guess I could make it a child page of some other page as a temporary fix. Also while on the subject, is there a way to re-order how the pages will show up in the sidebar? Right now it looks as if they are ordered by date created.
Re: Close, but no cigar!
Posted: Thu Aug 11, 2005 4:41 pm
by garvinhicking
Your suggestions make sense.
Could you please add them in our Projects SF.Net Feature-Request tracker? I will then take care of it when I find some time...
Regards,
Garvin
Re: Close, but no cigar!
Posted: Thu Aug 11, 2005 9:43 pm
by garvinhicking
I've just fixed the WYSIWYG spawning in version 2.9 of the plugin.
I've also added ordering by pagetitle for the sidebar plugin.
I must admit I don't fully understand the rest of your feature requests; the email contact form is not a staticpage, it shouldn't get listed on the staticpage sidebar!
Regards,
Garvin
I'll let you know
Posted: Thu Aug 11, 2005 11:00 pm
by Wizard
Hummm..... I installed the plugin using Spartacus from I believe is your site. It allows for a static page as a contact form. Here is the link:
Contact Form
Shows a email contactform on your blog as a static page. It can be accessed by either the custom permalink or by index.php?serendipity[subpage]=contactform. You can customize the look of the contact form by putting the plugin_contactform.tpl file into your template directory and modify it there. Captchas from the Spamblock plugin (if enabled) will be applied.
Author: Garvin Hicking; version: 1.1
This is what is shown, and it looks like you were the author. It does indeed create a static page that shows up in the list. Is there another that I could be using? I am having a slight problem with that one when I use the CSS to change fonts. Plus how do I get the new version (2.9). When I use Spartacus (like I did earlier) it displayed the upgrade. Now it doesn't shown the 2.9 version and when I click install, I don't see the changes that you mention.
Re: I'll let you know
Posted: Fri Aug 12, 2005 12:24 pm
by garvinhicking
Hi!
The Contact Form is an independent plugin and does not put data in the serendipity_staticpages database table; so even though it is a "static page" in terms of how it is embedded in the blog, it is not a "static page" in terms of it getting listed in the "static page sidebar plugin". But maybe I am totally misunderstanding you - I just can't imagine that the contact form gets a link in this sidebar plugin. Can you show an example of your page maybe?
Spartacus has a lag of about 24 hours, so you might not see the 2.9 version until today...
Regards,
Garvin
Take a look
Posted: Fri Aug 12, 2005 8:11 pm
by Wizard
Hi Garvin,
First off, let me express me gratitude of your help with my questions and tips. It's a pleasure working with software that is not only user friendly but you are also proving that good code with good support eguals a great product. The sum of the parts is way more than just useful, it's what makes other software lack and fail. Keep up the good work!
If you look at my page I have the Static Page plugin shown. It's been renamed to "Projects" and it shows only Parent Pages. You can see the contact form is displayed "eMail Wizard". To prevent this link from showing at this location I will make it a child page so that it doesn't show. I provide a link to it in a HTML nugget right below which is ok. But again, the problem is that the contact page is a static page and it shows. Plus this also shows the problem of not being able to order the pages. It's second on the list because I created after the first anf before the third parent page listed. After I downloaded the new version this morning, I did notice that when I click the static pages they are now ordered and their a stange character is front of all the child pages. Is this how I am to re-order?
Here is the link to my site:
http://www.socalwizard.com
Thanks again.
Re: Take a look
Posted: Sat Aug 13, 2005 5:29 pm
by garvinhicking
I'm a bit busy this weekend, but will get back to you next week. I also saw your feature request, let's see what I can do abou that.
Regards,
Garvin
All good
Posted: Sun Aug 14, 2005 2:29 am
by Wizard
Nevermind, I see my problem I had with the Email Contact Form. I was under the impression I had to make a static page along with the event plugin. So therefore I had a "blank" static page named eMail that displayed in the static page list. I do have one request of the static page (of course there's always one more thing), is it possible to have more than one list of static pages? Kinda like catagories for articles, but for static pages.
Re: All good
Posted: Sun Aug 14, 2005 2:33 am
by garvinhicking
Well, you can already make child and parent staticpages - why don't you just create categories like that?
I'll still look at your other Sf.net request and try to make something nice out of it.
Regards,
Garvin