[wp-hackers] Static content plugin

Stephen O'Connor steve at stevarino.com
Fri Jun 18 23:01:12 UTC 2004


I've made my own static pages plugin, but I'm honestly embarrassed by it
today. But hey, it's how we learn...

Anyway I would also like to see a good, clean static pages plugin file (not
files). Here's how I would do it if I started today:

Output:
 * Modify the posts query to logically include/exclude static posts
 * Modify the cats to hide hidden categories (I like the ".name" idea
because it's simple, memorable, and can be easily converted to modrewrite
rules)
 * Right before index.php outputs HTML, output your own HTML and then
exit(). This has the added advantage for static templates. A plugin author
could get really creative here.

Input I'm not too sure on. We could keep it simple and simply choose a
".name" hidden category, but something more "robust" might be required.
Overall though, most of this can be done with WordPress 1.2 unaltered (the
posts-query part may be somewhat tricky).

- Stephen

-----Original Message-----
From: hackers-bounces at wordpress.org
[mailto:hackers-bounces at wordpress.org]On Behalf Of Kristin
Sent: Friday, June 18, 2004 4:20 PM
To: hackers at wordpress.org
Subject: Re: [wp-hackers] Static content plugin


This is how I do mine:
http://kilikina.team-aoi.com/archives/2004/06/12/ez-static-pages-with-wordpr
ess/

basically it's a copy of index.php with the content div emptied out
and a little bit of simple php code.  it works well for what i need.
i dont know if having a complete plugin for it is really necessary.



On Fri, 18 Jun 2004 15:21:39 -0400, Carthik Sharma <carthik at gmail.com>
wrote:
>
> With Kitty's elaborate category show/hide plugin, and all other
> similar problems with hiding specific categories/posts in mind, I
> think the time is ripe to add an extra column/field to the categories,
> which controls whether a categories posts are displayed on the
> index.php, archives etc pages and the list_cats functions.
> In other words, we should either have the .category type hidden
> categories, or a simple boolean variable(or more than one, perhaps)
> associated with each category that decides whether it is shown on
> various pages/returned by various functions.
>
> I found it easiest to add "static" pages (like the about me pages)
> using LaughingLizards old wp-wiki hack.
>
> Cheeri-o!
> Carthik.
>
>
> On Fri, 18 Jun 2004 12:14:33 -0700, Kitty <kitty at mookitty.co.uk> wrote:
> >
> > Re: About pages.
> > This is pretty easy to do. I've created a post called 'about me' but
> > into a category called 'site meta' and then used my show categories
> > plugin to keep any post in 'site meta' from showing up on the front
> > page, and also excluded 'site meta' from the category list. Then I made
> > a link using the Link Mgr to the About Me post's permalink.
> >
> > (Currently I'm allowing 'site meta' posts into the main flow for other
> > reasons, but the idea is the same. I'm also pulling out any site meta
> > post for use in a mini-blog side box.)
> >
> > Sure, it still looks like a post, but some creative use of CSS IDs and
> > you could style it anyway you wanted, with all the WP benefits of
> > dynamic updating, etc.
> >
> > On Fri, 2004-06-18 at 11:28, Moises Kirsch wrote:
> > > Most people (in the forums) are looking for ways to create something
> > > like an "About" page as part of wordpress and I think that this would
> > > be a cool future because you could manage the whole website from WP.
> >
> > > hackers mailing list
> > > hackers at wordpress.org
> > > http://wordpress.org/mailman/listinfo/hackers_wordpress.org
> > --
> > Cheers!
> > Kitty <kitty at mookitty.co.uk>
> > http://blog.mookitty.co.uk/
> > http://mookitty.co.uk/devblog/
> >
> >
> >
> > signature.asc - 1K
> > noname - 1K Download
> >
>
>
> --
> Carthik Sharma
> Ph.D. Fellow
> University of Central Florida
> Homepage: http://carthik.net
>
> _______________________________________________
>
>
> hackers mailing list
> hackers at wordpress.org
> http://wordpress.org/mailman/listinfo/hackers_wordpress.org
>


--
Kristin Pishdadi
kpishdadi at gmail.com

_______________________________________________
hackers mailing list
hackers at wordpress.org
http://wordpress.org/mailman/listinfo/hackers_wordpress.org




More information about the hackers mailing list