We're assuming that this is a local project, so let's install an instance of Composer just for the current project. Navigate to your project directory and run this:
$ curl -sS https://getcomposer.org/installer | php
Keep in mind that piping any download directly to a script interpreter (sh, ruby, php, etc...) is a security risk, so do read the install code and ensure you're comfortable with it before running any command like this.
For convenience sake (if you prefer typing composer install over php composer.phar install, you can use this command to install a single copy of composer globally:
$ mv composer.phar /usr/local/bin/composer
$ chmod +x composer
You may need to run those with sudo depending on your file permissions.
Articles API functionality. You can take the articles from this website to yours. With this basic configs.
http://ci.donvercety.biz/articles/json
http://ci.donvercety.biz/article/json/get/$id
http://ci.donvercety.biz/articles/json/5/0
http://ci.donvercety.biz/articles/json/count
error_reporting(E_ALL);
ini_set('display_errors', 1);
Now without having to create a plugin you can easily apply a sort. Below is the snippet we used to sort pages by title.
{% assign sorted_pages = (site.pages | sort: 'title') %}
{% for page in sorted_pages %}
<li class="cardmenu-item">
<a href="{{ page.url }}">{{ page.title }}</a>
</li>
{% endfor %}
When we render a specific index page we have a need to show pages by a specific layout or filter pages by layout.
{% assign tutorials = (site.pages | where: "layout" , "java") %}
{% for page in tutorials %}
// do some work
{% endfor %}
Author: Published November 24, 2014
Lukas White
In a recent series of articles I looked in detail at Apache’s SOLR and Solarium.
To recap; SOLR is a search service with a raft of features – such as faceted search and result highlighting – which runs >as a web service. Solarium is a PHP library which allows you to integrate with SOLR – whether local or remote – >interacting with it as if it were a native component of your application. If you’re unfamiliar with either, then my >series is over here, and I’d urge you to take a look.
In this article, I’m going to look at another part of SOLR which warrants its own discussion; Geospatial search.
Read more at sitepoint.com