Segment Checker

Introduction

The Segment Checker Module will preform some simple task on the URI segment.

With Segment Checker you can for example check if an value is present in the url, or check if the URI is empty after a specific value. But there is many more, see the list below for a full list of functions and check the documentation how those function works.

Function list

Installation

Prerequisites

Make sure your system meets the minimum requirements:

Installation Instructions

Update instructions

Empty After

This method will check if there is nothing comes after a specific segment

The Tag

{exp:segment_checker:empty_after}

Tag Parameters

Below are the Tag Parameters. Those parameters can be used in the tag described above

value

The value you want to check

value=""

Get Segment After

Get a specific segment after a value

The Tag

{exp:segment_checker:get_segment_after}

Tag Parameters

Below are the Tag Parameters. Those parameters can be used in the tag described above

value

The value to check

value="test"

which

A number that indicated how much segments after the value

which="3"

Get Segment Before

Get a specific segment before a value

The Tag

{exp:segment_checker:get_segment_before}

Tag Parameters

Below are the Tag Parameters. Those parameters can be used in the tag described above

value

The value to check

value="test"

which

A number that indicated how much segments after the value

which="3"

Has Not Value

This method will check if a value is not present in the URI

The Tag

{exp:segment_checker:has_not}

Tag Parameters

Below are the Tag Parameters. Those parameters can be used in the tag described above

value

The value that you want to check

value="test"

Has Value

This method will check if a value is present in the URI

The Tag

{exp:segment_checker:has}

Tag Parameters

Below are the Tag Parameters. Those parameters can be used in the tag described above

value

The value you want to check

value="test"

Not Empty After

This method will check if there comes more after a specific segment

The Tag

{exp:segment_checker:not_empty_after}

Tag Parameters

Below are the Tag Parameters. Those parameters can be used in the tag described above

value

The value to check

value=""

Changelog

1.0