Download the PHP package itech-world/sulu-article-twig-extension-filter-bundle without Composer

On this page you can find all versions of the php package itech-world/sulu-article-twig-extension-filter-bundle. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package sulu-article-twig-extension-filter-bundle

Article Twig Extension Filter Bundle for Sulu

Developed by Steeven THOMAS

GitHub license Sulu compatibility

ArticleTwigExtensionFilterBundle extends the Sulu CMS to enable article retrieval in TWIG without ElasticSearch

📂 Requirements

🛠️ Features

📝 Installation

Composer

Symfony Flex

If you don't use Symfony Flex, you can add the bundle to your config/bundles.php file:

Instructions

Retrieve an item using its UUID

Use sulu_article_load_by_uuid. Possible parameters:

Count the number of published articles

Use sulu_article_count_published. Possible parameters:

Retrieve the latest recent articles

Use sulu_article_load_recent. Possible parameters:

Retrieve the latest recent articles with pagination

Use sulu_article_load_recent_paginated. Possible parameters:

Returned Data Structure

All functions return articles as arrays with the following properties:

Property Type Description
uuid string Unique identifier of the article
id int Database ID
title string Article title
description string Excerpt description (from "Excerpt & Taxonomies" tab)
excerptTitle string Excerpt title (from "Excerpt & Taxonomies" tab)
excerptMore string "Read more" text (from "Excerpt & Taxonomies" tab)
url string|null Article URL
template string|null Template key used
stage string Publication stage (live, draft)
locale string Article locale
published DateTime|null Publication date
workflowPlace string Workflow status
categories Collection Categories (from "Excerpt & Taxonomies" tab)
tags Collection Tags (from "Excerpt & Taxonomies" tab)
created DateTime Creation date
changed DateTime Last modification date
content array All template data (custom fields from your XML template)

Examples of usage

Create a templates/articles.html.twig file with the following content:

Note : Replace article-template-key with the key of your XML template.

For pagination, you can create an AJAX route in a Controller and use ItechWorld\SuluArticleTwigExtensionFilterBundle\Service\ArticleService.

Example:

🐛 Bug and Idea

See the open issues for a list of proposed features (and known issues).

💰 Support me

You can buy me a coffee to support me this plugin is 100% free.

Buy me a coffee

👨‍💻 Contact

📘  License

This bundle is under the MIT License.


All versions of sulu-article-twig-extension-filter-bundle with dependencies

PHP Build Version
Package Version
Requires php Version ^8.2
sulu/sulu Version ^3.0
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package itech-world/sulu-article-twig-extension-filter-bundle contains the following files

Loading the files please wait ...