2017 © Pedro Pelรกez
 

library sculpin-projects-bundle

Sculpin Projects Bundle

image

mavimo/sculpin-projects-bundle

Sculpin Projects Bundle

  • Thursday, January 2, 2014
  • by mavimo
  • Repository
  • 0 Watchers
  • 0 Stars
  • 21 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 1 Versions
  • 0 % Grown

The README.md

Sculpin Projects Bundle

Setup

Add this bundle in your sculpin.json file:, (*1)

{
    // ...
    "require": {
        // ...
        "mavimo/sculpin-projects-bundle": "@dev"
    }
}

and install this bundle running sculpin update., (*2)

Now you can register the bundle in SculpinKernel class available on app/SculpinKernel.php file:, (*3)

class SculpinKernel extends \Sculpin\Bundle\SculpinBundle\HttpKernel\AbstractKernel
{
    protected function getAdditionalSculpinBundles()
    {
        return array(
           'Mavimo\Sculpin\Bundle\ProjectsBundle\SculpinProjectsBundle'
        );
    }
}

How to use

In your sources create a subfolder _projects and add some file inside it, like:, (*4)

my-blog/
โ””โ”€โ”€ source
    โ”œโ”€โ”€ // ...
    โ””โ”€โ”€ _projects
        โ”œโ”€โ”€ 2014-01-01-my-new-project.md
        โ”œโ”€โ”€ 2014-01-02-another-project.md
        โ””โ”€โ”€ 2014-01-03-more-projects.md

create the required template files, and get the list of projects using in document metadata to have the paginated list of projects:, (*5)

---
title: Projects
// ...
generator: pagination
pagination:
    provider: data.projects
// ...
---

The Versions

02/01 2014

dev-master

9999999-dev https://sculpin.io

Sculpin Projects Bundle

  Sources   Download

MIT

The Requires

  • php >=5.3.2

 

static blog blogging site projects