All Projects → pixelandtonic → matrix_url_title

pixelandtonic / matrix_url_title

Licence: other
Unique URL Title celltype for Matrix on EE2

Programming Languages

PHP
23972 projects - #3 most used programming language
javascript
184084 projects - #8 most used programming language

Projects that are alternatives of or similar to matrix url title

cp css js
Allows you to add custom CSS and JS to the Control Panel pages
Stars: ✭ 17 (+54.55%)
Mutual labels:  expressionengine
SEO-Lite
A one calorie SEO module for ExpressionEngine
Stars: ✭ 33 (+200%)
Mutual labels:  expressionengine
ExpressionEngine-User-Guide
The source for the HTML ExpressionEngine user guides found at https://docs.expressionengine.com
Stars: ✭ 17 (+54.55%)
Mutual labels:  expressionengine

Matrix URL Title celltype

This celltype for Matrix on EE2 gives you the ability to create unique “URL Titles” within your Matrix fields.

Requirements

Installation

  • Upload the ee2/third_party/matrix_url_title folder to system/expressionengine/third_party/
  • Upload the themes/third_party/matrix_url_title folder to themes/third_party/
  • Enable Matrix URL Title in Add-Ons → Fieldtypes

Usage

Here’s how you can give a URL Title to one of your Matrix fields:

  • Edit your Matrix field in Admin → Channel Administration → Custom Channel Fields
  • Click the “+” button beside your Matrix Configuration
  • Set your new column’s Cell Type to “Matrix URL Title”
  • Give your new column a name, such as “matrix_url_title”
  • If you want your URL Title value to be automatically generated based on the value of another column, enter the “title” column’s Col Name into the “Title Col Name” setting

Creating a “Single Row Page” using your URL Title

In ExpressionEngine, a “Single Entry Page” is where the first URL segment that doesn’t map to a template group or template name, does match an entry’s URL Title. ExpressionEngine will automatically return just that one entry within your {exp:channel:entries} tags. (To get any other entries out of the tag, you have to add dynamic="no".)

Matrix doesn’t have any sort of automatic “Single Row Page” display mode yet, but you can get it working yourself using Matrix’s search:col_name= parameter.

Let’s say that your URL structure is like so: /gallery/entry_url_title/matrix_row_url_title/

In that case, {segment_3} is going to be set to your Matrix URL Title. So to filter your Matrix row by whatever was entered into that URL segment, you’d do this:

{matrix_field search:url_title_col_name="{segment_3}" limit="1"}
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].