Sorry to be so thick and dense on this, but I did extensive searches and could not find a simple "how to" for installing Static Pages.
I know where the download is:
http://cvs.sourceforge.net/viewcvs.py/p ... taticpage/
However there is no instructions and also no way of downloading a ziped file that contains all the parts that would be in the:
serendipity_event_staticpage directory
Is there a simple method I've missed??
-ALSO-
The only reason I am trying the static pages plugin (don't even know if it will work for what I need) is to try and overide the sorting function where the newest entry is sorted to the top of the page.
I looked through the configuration and don't see a way to overide the sorting where I can custom sort the entries rather than the newest entry (or edit) always sorting to the top. (I know this is opposite how blogs are suppose to work, but is what my application of the blog needs)
Thanks in advance for any help on this AWESOME blogging software.
Douglas
'How To' Install Static Pages ??
-
garvinhicking
- Core Developer
- Posts: 30022
- Joined: Tue Sep 16, 2003 9:45 pm
- Location: Cologne, Germany
- Contact:
Re: 'How To' Install Static Pages ??
Actually, the static pages plugin does someting different than you need. It offers to show special HTML pages within the layout of your blog, but independent from usual entries.
How to install a plugin is mentioned here: http://www.s9y.org/45.html
Your wish for re-arranging entries is not possible, it would defeat the logic of a blog system. It could be done via a plugin, but such a plugin has not yet been created.
Even though Serendipity can be used as a CMS for special reasons, it really is only a Blog with CMS features, and not a CMS with blog features. Thus, one basic principle of Serendipity is to show entries chronologically. You could reverse the order easily, or you could order entries by any other database column (title, content, author, category, ...) but customized sort order is not really easy.
Best regards,
Garvin
How to install a plugin is mentioned here: http://www.s9y.org/45.html
Your wish for re-arranging entries is not possible, it would defeat the logic of a blog system. It could be done via a plugin, but such a plugin has not yet been created.
Even though Serendipity can be used as a CMS for special reasons, it really is only a Blog with CMS features, and not a CMS with blog features. Thus, one basic principle of Serendipity is to show entries chronologically. You could reverse the order easily, or you could order entries by any other database column (title, content, author, category, ...) but customized sort order is not really easy.
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/
# 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/
-
OasisDouglas
- Posts: 4
- Joined: Fri Oct 14, 2005 4:07 am
Re: 'How To' Install Static Pages ??
Cheers for the reply Garvin,garvinhicking wrote:Actually, the static pages plugin does someting different than you need. It offers to show special HTML pages within the layout of your blog, but independent from usual entries.
How to install a plugin is mentioned here: http://www.s9y.org/45.html
Your wish for re-arranging entries is not possible, it would defeat the logic of a blog system. It could be done via a plugin, but such a plugin has not yet been created.
Even though Serendipity can be used as a CMS for special reasons, it really is only a Blog with CMS features, and not a CMS with blog features. Thus, one basic principle of Serendipity is to show entries chronologically. You could reverse the order easily, or you could order entries by any other database column (title, content, author, category, ...) but customized sort order is not really easy.
Best regards,
Garvin
Ya... I kinda mentioned I was asking an odd ball questions contrary to the use of a blog... so thanks for taking the time to reply even though it's a wacky situation.
I see in the admin area where you can order the entries by (title, content, author, category, ...) for purpose of editing, however I am not seeing that for the purpose of final display.
Can that be done? (I couldn't find that setting anywhere) -or- are you saying I need to hack into the code to change that... and if so is it easy enough you can tell me which line to change on which page.
If it's too much effort to research then don't worry... I know you must be very busy.
By the way... the link you mentioned had the "Download A Pluging Section" and a link to download all the plugins:
"additional_plugins.tar" @
http://www.netmirror.org/mirror/serendi ... lugins.tgz
The full download was brilliant. THANKS!
Thanks again for your efforts and if you have the time to reply it would be GREAT. Either way I really appreciate your time.
Douglas
-
garvinhicking
- Core Developer
- Posts: 30022
- Joined: Tue Sep 16, 2003 9:45 pm
- Location: Cologne, Germany
- Contact:
Re: 'How To' Install Static Pages ??
Hi!

Just open your include/genpage.inc.php page. Locate this piece of code:
There you see how the fetchEntries function is used. It accepts several parameters, the function header can be found in include/functions_entries.inc.php:
That means, as the 6th parameter ($orderby) you can basically specify any ordering column you want. You can pass "timestamp ASC", oder "title DESC" or "authorid ASC" in it...just play a bit with it and look at the available columns of the serendipity_entries DB table.


Best regards,
Garvin
No problem. I'd love to tell you different, but currently that's just the way it is.Ya... I kinda mentioned I was asking an odd ball questions contrary to the use of a blog... so thanks for taking the time to reply even though it's a wacky situation.
That's true, it needs to be hacked in code. But that's pretty straight ahead and easy.I see in the admin area where you can order the entries by (title, content, author, category, ...) for purpose of editing, however I am not seeing that for the purpose of final display.
Can that be done? (I couldn't find that setting anywhere) -or- are you saying I need to hack into the code to change that... and if so is it easy enough you can tell me which line to change on which page.
Just open your include/genpage.inc.php page. Locate this piece of code:
Code: Select all
// Welcome screen or whatever
default:
serendipity_printEntries(serendipity_fetchEntries(null, true, $serendipity['fetchLimit']));
break;
Code: Select all
function serendipity_fetchEntries($range = null, $full = true, $limit = '', $fetchDrafts = false, $modified_since = false, $orderby = 'timestamp DESC', $filter_sql = '', $noCache = false, $noSticky = false) {
You're welcome, but you might easily hit memory limits when unpacking all plugins.The full download was brilliant. THANKS!
No problem, I have fun doing that "effort". Hope to got you started!Thanks again for your efforts and if you have the time to reply it would be GREAT. Either way I really appreciate your time.
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/
# 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/
-
OasisDouglas
- Posts: 4
- Joined: Fri Oct 14, 2005 4:07 am
Re: 'How To' Install Static Pages ??
OUTSTANDINGgarvinhicking wrote: No problem, I have fun doing that "effort". Hope to got you started!
Best regards,
Garvin
Many thanks again to you and the time you spent on my little situation.
It looks like this is the exact hack I need and I would have spent hours breaking code before I realized the scope of the change was over my head.
By the way... Oasis will be in your fine country very soon...
2005-10-27 Germany-Frankfurt-Jarhunderthalle
Catch the Gallagher Brothers, they won't dissapoint
Cheers from Seattle,
Douglas
-
garvinhicking
- Core Developer
- Posts: 30022
- Joined: Tue Sep 16, 2003 9:45 pm
- Location: Cologne, Germany
- Contact:
Re: 'How To' Install Static Pages ??
Hi!


Are you creating a fan site for Oasis based on s9y, if I put the loose ends together?
Best regards,
Garvin
That's cool to hear that it is working for you. Great stuff.Many thanks again to you and the time you spent on my little situation.
Hehe, that's one day before my birthday. Guess it's too late to buy tickets anywaysBy the way... Oasis will be in your fine country very soon...
2005-10-27 Germany-Frankfurt-Jarhunderthalle
Are you creating a fan site for Oasis based on s9y, if I put the loose ends together?
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/
# 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/
-
OasisDouglas
- Posts: 4
- Joined: Fri Oct 14, 2005 4:07 am
Re: 'How To' Install Static Pages ??
hehe... nah, the s9y is for something else.garvinhicking wrote:Hi!
That's cool to hear that it is working for you. Great stuff.Many thanks again to you and the time you spent on my little situation.
Hehe, that's one day before my birthday. Guess it's too late to buy tickets anywaysBy the way... Oasis will be in your fine country very soon...
2005-10-27 Germany-Frankfurt-Jarhunderthalle
Are you creating a fan site for Oasis based on s9y, if I put the loose ends together?
Best regards,
Garvin
Sorry.. since this is a bit off topic, (actually a lot off topic) but it might be a nice break from the non-stop s9y questions.
I have an Oasis bootleg trading site (just html), however it's down since I went way over my monthly quota and now owe $75 in overage fees. (transfered 37 GB on a 25 GB account when I posted my Seattle recording in MP3 format on the website... oasisdouglas.com)
In case you are a fan, hopefully you get some tickets for your birthday so you can see some of this:
My Pics from Seattle gig:



-
garvinhicking
- Core Developer
- Posts: 30022
- Joined: Tue Sep 16, 2003 9:45 pm
- Location: Cologne, Germany
- Contact:
Re: 'How To' Install Static Pages ??
Ah, good to know. And yeah, a little OT occasionally does help 
Actually I have seen Oasis maybe 4 years ago on a festival in germany, where they were 2 hours late and the singer didn't do much else than stand in front of his mike - so in terms of "live action", it's more "live" than "action". Which may be why I prefer only listening to their albums ever since
Best regards,
Garvin
Actually I have seen Oasis maybe 4 years ago on a festival in germany, where they were 2 hours late and the singer didn't do much else than stand in front of his mike - so in terms of "live action", it's more "live" than "action". Which may be why I prefer only listening to their albums ever since
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/
# 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/
-
Guest
-
davidcrickett
- Regular
- Posts: 83
- Joined: Sat Oct 01, 2005 10:25 am
- Location: Denmark
- Contact:
I wrote the last post... but the forum cookie wont remember you...
read my serendipity blog
http://blangstrup.info
http://blangstrup.info
-
garvinhicking
- Core Developer
- Posts: 30022
- Joined: Tue Sep 16, 2003 9:45 pm
- Location: Cologne, Germany
- Contact:
David, it seems your problem is not related to this topic? I don'T understand your problem...please open a new thread with your problem and describe what you'Re facing and which s9y version you have installed (hint: try 0.9-beta2 if you're running an earlier 0.9 version and have spartacus plugin update problems)
Regards,
Garvin
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/
# 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/