Download the PHP package se7enxweb/eztags without Composer

On this page you can find all versions of the php package se7enxweb/eztags. 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 eztags

eZ Tags LS

eZ Tags LS brings real taxonomy management to Exponential. Tags live in a tree, can have synonyms and translations, and are attached to content through the eztags datatype, which editors fill with autocomplete, a select list or a tree. It is for site builders who need categories, keywords or folksonomies that are easier to manage than the kernel's ezkeyword datatype, and for developers who want to list, filter and link content by tag in templates.

Contents

What you get

Requirements

Installation

With Composer

From the root of your Exponential installation:

The Exponential legacy installer puts the extension in extension/eztags. Continue with step 2 below.

By hand

  1. Download a release from https://github.com/se7enxweb/eztags/releases and unpack it so that the files are in extension/eztags/ (extension/eztags/ezinfo.php must exist).

  2. Activate the extension in settings/override/site.ini.append.php:

    or in the administration under Setup > Extensions.

  3. Create the tables, with the schema file for any supported database:

    or with the SQL file of your database (sql/mysql, sql/postgresql, sql/sqlite):

  4. Regenerate the autoload array and clear the caches:

  5. Let visitors see tags: give the Anonymous role the policy tags / view (and tags / read if your site uses the tag tree menu).

  6. Optional, faster tree menu: copy or symlink index_treemenu_tags.php next to index.php and add these rewrite rules before the general one:

  7. Optional, eZ Find: add these two fields inside <fields> of your Solr schema.xml (extension/ezfind/java/solr/ezp-default/conf/schema.xml for the bundled server), restart Solr and re-index:

The original notes, with older details, are in doc/INSTALL.md.

Configuration

Do not edit extension/eztags/settings/eztags.ini; put your changes in settings/override/eztags.ini.append.php or in a siteaccess. These are all the settings, with their defaults:

The extension also registers the datatype (content.ini), the taglink custom tag (content.ini, ezoe_attributes.ini), its ezjscore server functions ezjsctags and ezjsctagschildren (ezjscore.ini), the attribute filters (extendedattributefilter.ini), the Solr field mapping (ezfind.ini) and the admin tab (menu.ini).

Usage

1. Build the tag tree

Open the Tags tab in the administration. In the admin4 design it shows a tags icon (Icon=tags in [Topmenu_eztags] of settings/menu.ini.append.php). The tab opens the dashboard (tags/dashboard) with the tags at the root of the tree and the tabs Latest tags, Latest content and Tags search.

2. Add a tags attribute to a class

In Setup > Classes, edit a class (for example Article), add an attribute of the type Tags and choose:

3. Tag content

When editors edit an object of that class, they type into the tags field and pick suggestions, or add new tags in place (if they may add tags there), or choose from the select list or the tree, depending on the edit view.

4. Show tags on the site

The bundled view template of the datatype links each tag to its tag page and adds the keywords to the page's meta keywords. In your own templates:

The attribute content also has tag_ids, keywords, keyword_string, meta_keyword_string, parent_string and tags_count.

A tag page (tags/view/<path>) renders design:tags/view.tpl with the variable $tag; override that template in your site design to change it. A tag has, among others, keyword, url, parent, children, children_count, related_objects, related_objects_count, synonyms, main_tag, is_synonym, path, icon and translations.

Template reference

Fetch functions

More examples are in doc/USAGE.md.

Content by tag: attribute filters

Filter ID Matches content that has
TagsAttributeFilter at least one of the tags in tag_id
TagsAttributeAndFilter all of the tags in tag_id
TagsAttributeAndMultipleFilter at least one tag of every group: tag_id is an array of groups, e.g. array( array( 1, 2 ), array( 3 ) )
TagsTreeAttributeFilter a tag anywhere below parent_tag_id (an ID or an array); exclude_parent leaves out the parent tag itself, type 'and' requires every parent

The tag filters take include_synonyms (synonyms count unless you pass false()) and language.

Template operators

sort_by of the cloud sorts by keyword or count, true() ascending; the optional post_sort_by (keyword, keyword_reverse, count, count_reverse) sorts the result again. latest_tags( 10 ) still works but is deprecated: use fetch( tags, latest_tags, ... ).

Rich text

The custom tag taglink (attribute tag, the tag ID, plus optional id, title, target and class) links a piece of text to a tag page.

Permissions

The module tags has these policy functions (module.php):

Function Views Use
read treemenu The tag tree menu.
view view Tag pages on the site; give it to Anonymous.
dashboard dashboard The admin tab; the tab is only shown with it.
id id, list_objects A tag's admin page and its content.
search search Searching tags in the admin.
add add Adding tags; can be limited to a tag subtree (limitation Tag).
addsynonym, editsynonym, deletesynonym same names Managing synonyms.
edit edit, movetags, translation Editing, moving and translating tags.
delete delete, deletetags Deleting tags.
makesynonym, merge same names Turning a tag into a synonym, merging tags.

Editors who may add new tags while editing content need add for the subtree of the attribute.

Scripts

Convert an ezkeyword attribute to an eztags attribute of the same class. The keywords become tags below --parent-tag-id. The script updates the published versions in place, so clear the caches and re-index afterwards:

update/common/scripts holds the scripts that older upgrades call for (see doc/UPGRADE.md). eZ Tags has no cron jobs.

Upgrading

  1. Replace extension/eztags with the new release (composer update se7enxweb/eztags, or unpack the archive over it).
  2. Read the release notes on https://github.com/se7enxweb/eztags/releases. Upgrades from versions before 2.2 have database steps, described in doc/UPGRADE.md (update/database/<mysql|postgresql>).
  3. Regenerate the autoloads and clear the caches (installation step 4).

Known limits

Troubleshooting

Contributing

Bug reports and pull requests are welcome at https://github.com/se7enxweb/eztags. Please state the Exponential and PHP versions and how to reproduce the problem.

License and credits

eZ Tags is licensed under the GNU General Public License v2.0 (or any later version), see LICENSE.

eZ Tags was created by Netgen for eZ Publish, whose legacy line its creator later discontinued, with contributions from the eZ Community; Netgen continued it for newer platforms as the Netgen Tags Bundle. The history of the early versions is in doc/CHANGELOG.md, and a user manual of that time is in doc/eztags-user-manual.pdf. 7x and the Exponential Foundation maintain eZ Tags for Exponential.


All versions of eztags with dependencies

PHP Build Version
Package Version
Requires php Version >=7.4
se7enxweb/ezpublish-legacy-installer Version *
se7enxweb/expui Version ^1.0.0.1
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 se7enxweb/eztags contains the following files

Loading the files please wait ...