Skip to content

Latest commit



36 lines (28 loc) · 1011 Bytes

File metadata and controls

36 lines (28 loc) · 1011 Bytes

Link Generator

The Link Generator creates a valid detail and back link for each entry.

Pimcore Link Generator

If you want to use the default Pimcore Link Generator, just implement it like described in the link. If no default Link Generator Service has been defined, the News Bundle will proceed with the internal Class.

Create a custom generator

Just override the build in generator:

        NewsBundle\Generator\LinkGenerator: AppBundle\Generator\AppLinkGenerator

And set up your new class:


namespace AppBundle\Generator;

use NewsBundle\Model\EntryInterface;
use NewsBundle\Generator\LinkGenerator;

class AppLinkGenerator extends LinkGenerator
    public function generateDetailLink(EntryInterface $entry, $additionalUrlParams = [])
        $absPath = 'your_overridden_abs_path_to_entry';
        return $absPath;