Skip to content

Latest commit

 

History

History
95 lines (56 loc) · 3.61 KB

INSTALL.md

File metadata and controls

95 lines (56 loc) · 3.61 KB

eZ Tags extension installation instructions

Requirements

  • eZ Publish 4.3+
  • eZ JSCore

Optional extensions

  • eZ Find (used for tags suggestion, related tags feature and tag cloud over Solr)

Upgrade

If upgrading the extension, see upgrading instructions

Installation

IMPORTANT NOTE: There is a bug in eZ Image Editor 1.1 extension (ezie, released with eZ Publish 4.4) that prevents eZ Tags datatype from functioning if your site is using jQuery version 1.4.3 and above. This bug is fixed in extension version 1.2 (released with eZ Publish 4.5). To fix this, upgrade the extension to 1.2, or downgrade your jQuery to 1.4.2.

Bug fix commit is located here

Enable admin2 design in your eZ Publish Legacy installation

Since eZ Publish 5.0 and merging and renaming of admin2 design into admin, admin2 is no longer turned on in clean installs of eZ Publish. For backwards compatibility with eZ Publish 4.x, admin2 design in eZ Tags cannot be renamed to admin. To use eZ Tags in eZ Publish 5.x, please make sure to set the admin2 design as the main design for your administration siteaccess by setting the following configuration in site.ini.append.php

[DesignSettings]
SiteDesign=admin2
AdditionalSiteDesignList[]=admin

Unpack/unzip

Unpack the downloaded package into the extension directory of your eZ Publish installation.

Create SQL tables in your eZ Publish database

Extension requires two additional tables to be added to your database. Use the following command from your eZ Publish root folder, replacing user, password, host and database with correct values and removing double quotes

mysql -u "user" -p"password" -h"host" "database" < extension/eztags/sql/mysql/schema.sql

Activate extension

Activate the extension by using the admin interface ( Setup -> Extensions ) or by prepending eztags to ActiveExtensions[] in settings/override/site.ini.append.php:

[ExtensionSettings]
ActiveExtensions[]=eztags

Regenerate autoload array

Run the following from your eZ Publish root folder

php bin/php/ezpgenerateautoloads.php --extension

Or go to Setup -> Extensions and click the "Regenerate autoload arrays" button

Clear caches

Clear all caches (from admin 'Setup' tab or from command line).

Speedup ajax calls

  1. Copy or symlink index_treemenu_tags.php from this extension to the root folder of eZ Publish (next to index.php)

  2. Add the following rewrite rule:

.htaccess

RewriteRule tags/treemenu/? index_treemenu_tags.php
RewriteRule ^index_treemenu_tags\.php - [L]

Virtual Host mode

RewriteRule tags/treemenu/ /index_treemenu_tags.php [L]

Allow anonymous users access to tags

For anonymous users to be able to see tags on your site, grant access to view function of tags module to Anonymous role

OPTIONAL: Configure eZ Find schema for eZ Tags extension

eZ Find is used for tag suggestions, tags cloud over Solr and fetching of related tags. eZ Find is NOT REQUIRED to be enabled if you will not use these features. However, if you wish to use them, you'll need to activate eZ Find and patch the schema.xml file inside eZ Find extension with lines below.

Edit the file extension/ezfind/java/solr/conf/schema.xml, add the following inside <fields> element and then restart Tomcat/Jetty:

<field name="ezf_df_tags" type="lckeyword" indexed="true" stored="true" multiValued="true" termVectors="true"/>
<field name="ezf_df_tag_ids" type="sint" indexed="true" stored="true" multiValued="true" termVectors="true"/>