Download the PHP package thelia/tabs-module without Composer

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

Tabs

Attach custom content tabs — a title and a rich description — to products, contents, categories and folders. Tabs are managed from the back office and rendered in the front office through theme hooks or the API.

Installation

Drop the module in local/modules/Tabs, then activate it:

Activation creates the item_associated_tab table (see Migrating from 4.x if the module was already installed).

Back office

A Tabs association CRUD panel is rendered in the Modules tab of the product, content, category and folder edition pages. From there an administrator can:

Tabs are translated: the title and description are saved against the language currently selected in the edition language switcher.

Front office

Theme hooks

Tabs\Hook\Theme\TabsThemeHook renders the tabs automatically on the four matching hooks:

Hook Item
product.details.bottom product
category.bottom category
folder.bottom folder
content.bottom content

The markup lives in templates/theme-hook/tabs.html.twig (a <details> accordion with TabsModule-* classes) and can be overridden by the theme.

Only visible tabs are rendered, ordered by position.

get_tabs() Twig function

To render tabs yourself, call the get_tabs() function. It takes the same parameters as the /api/front/tabs collection endpoint:

itemType is one of product, content, category, folder.

API

The Tab resource is exposed on two endpoints:

Endpoint Operations Notes
/api/admin/tabs GET, POST, PATCH, DELETE full CRUD
/api/front/tabs GET read-only, invisible tabs filtered out

Available filters: id, itemType, itemId (search), visible (boolean), order[id], order[position] (order).

The front endpoint is restricted to visible tabs by Tabs\Api\Extension\VisibleTabQueryExtension, whatever the visible filter asks for.

Data model

A single polymorphic table holds every tab:

Migrating from 4.x

Config/update/5.0.0.sql drops the four former per-type tables (product_associated_tab, content_associated_tab, category_associated_tab, folder_associated_tab and their _i18n counterparts) and creates the polymorphic one.

This is deliberate: 4.x could not create a tab at all — position was NOT NULL with no default and no code ever set it — so there is no data to carry over.

License

GPL-3.0+ — see LICENSE.txt.


All versions of tabs-module with dependencies

PHP Build Version
Package Version
Requires thelia/installer Version ~1.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 thelia/tabs-module contains the following files

Loading the files please wait ...