The jaccms blog

Photo
jacmgr
2013 September 10

Dates Any Format

2014 January 28,jacmgr

Using dates in meta caused me problems. ince they are treated as text, the never sorted correctly for me. So I wrote a plugin that treats any meta with the word date in the keyname as a unix timestamp. This makes it consistent for any other plugins or templates, and they sort reliably.

Multi Sites on One Lib

2014 January 27,jacmgr

I wanted to be able to run multiple sites on one phile system folder. This is the method I came up with. I am sure eventually phile developers will come up with a better way.

Setting Additional Meta

2014 January 24,jacmgr

I tweaked the Lib\Phile\Model\Page.php

I needed to be able to set meta data into a page. There were no setters in the page model for that. I added the following setters:

Getting Raw Page Data

2014 January 19,jacmgr

I tweaked the Lib\Phile\Model\Page.php I needed to get the full raw text content un-parsed. There were no getters in the page model for that. I added the following getters:

Tweak the Pages Model

2014 January 15,jacmgr

I tweaked the Lib\Phile\Model\Page.php

Some plugins wanted to use the trigger before_parse_content. And I was confused by the process as shown here: