Page 1 of 1
'How To' Install Static Pages ??
Posted: Fri Oct 14, 2005 4:15 am
by OasisDouglas
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
Re: 'How To' Install Static Pages ??
Posted: Fri Oct 14, 2005 2:10 pm
by garvinhicking
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
Re: 'How To' Install Static Pages ??
Posted: Fri Oct 14, 2005 3:18 pm
by OasisDouglas
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
Cheers for the reply 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
Re: 'How To' Install Static Pages ??
Posted: Fri Oct 14, 2005 3:42 pm
by garvinhicking
Hi!
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.
No problem. I'd love to tell you different, but currently that's just the way it is.
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.
That's true, it needs to be hacked in code. But that's pretty straight ahead and easy.
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;
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:
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) {
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.
The full download was brilliant. THANKS!
You're welcome, but you might easily hit memory limits when unpacking all plugins.
Thanks again for your efforts and if you have the time to reply it would be GREAT. Either way I really appreciate your time.
No problem, I have fun doing that "effort". Hope to got you started!
Best regards,
Garvin
Re: 'How To' Install Static Pages ??
Posted: Fri Oct 14, 2005 4:21 pm
by OasisDouglas
garvinhicking wrote:
No problem, I have fun doing that "effort". Hope to got you started!
Best regards,
Garvin
OUTSTANDING
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
Re: 'How To' Install Static Pages ??
Posted: Fri Oct 14, 2005 4:37 pm
by garvinhicking
Hi!
Many thanks again to you and the time you spent on my little situation.
That's cool to hear that it is working for you. Great stuff.
By the way... Oasis will be in your fine country very soon...
2005-10-27 Germany-Frankfurt-Jarhunderthalle
Hehe, that's one day before my birthday. Guess it's too late to buy tickets anyways
Are you creating a fan site for Oasis based on s9y, if I put the loose ends together?
Best regards,
Garvin
Re: 'How To' Install Static Pages ??
Posted: Fri Oct 14, 2005 4:57 pm
by OasisDouglas
garvinhicking wrote:Hi!
Many thanks again to you and the time you spent on my little situation.
That's cool to hear that it is working for you. Great stuff.
By the way... Oasis will be in your fine country very soon...
2005-10-27 Germany-Frankfurt-Jarhunderthalle
Hehe, that's one day before my birthday. Guess it's too late to buy tickets anyways
Are you creating a fan site for Oasis based on s9y, if I put the loose ends together?
Best regards,
Garvin
hehe... nah, the s9y is for something else.
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:

Re: 'How To' Install Static Pages ??
Posted: Fri Oct 14, 2005 5:07 pm
by garvinhicking
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
Posted: Sun Oct 16, 2005 8:16 am
by Guest
The static pages plugin doesn't seem to be updated in the Spartacus list... I already had it installed, do I really have to uninstall it or...?
Posted: Sun Oct 16, 2005 8:18 am
by davidcrickett
I wrote the last post... but the forum cookie wont remember you...
Posted: Mon Oct 17, 2005 8:50 am
by garvinhicking
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