PhileCMS / Phile

A flat file CMS with a swappable parser and template engine.
https://philecms.github.io/
Other
257 stars 49 forks source link

how to install the plugin which original for Pico? #72

Closed Fatalerr closed 10 years ago

Fatalerr commented 10 years ago

Hi, I need to install a plugin named 'get_by_filename' which wrote for Pico originally in my new PhileCMS server, I copied the php file into the 'plugins' directory and restart the web server, but it didn't work as expect. it looks like the plugin mechanism of PhileCMS is different from Pico, but I can't find any document about it. :( Can anyone give me a hint? thanks a lot!

james2doyle commented 10 years ago

Hey there. Pico and Phile plugins are not interchangeable.

You can find documentation in the wiki, on the docs page, in the Phile intro video, or you can look at some of the commented source code.

I made a better plugin that mimics get_by_filename called phileRender. It takes in the URL of a file and spits out it's content.

Fatalerr commented 10 years ago

Thanks James! The phileRender work perfectly and fit my need. but another question is can I get the page's meta just like get_by_filename does?

james2doyle commented 10 years ago

There isn't a plugin that does that right now. I would edit phileRender to return the data you need.