Generated URL with token – The security token did not match

I´m trying to make a link that act as the “save 2 copy” button on the edit page. On the main page for the item, I am creating the link acording to this documentation: https://docs.joomla.org/How_to_add_CSRF_anti-spoofing_to_forms <a href=”<?php echo JRoute::_( ‘index.php?option=com_pakker&view=jj_pakke&task=jj_pakke.save2copy&id=1&’. JSession::getFormToken() .’=1′ ); ?>”> Which generates links like: http://mysite.com/index.php/jj_pakke/1?task=jj_pakke.save2copy&55cdb8304fef2c8a80be2620d18ae367=1 The error i´m getting security token…

how to add custom filters for joomla

Does anyone know how to add custom filters for the Joomla module? In my helper.php I have this code. but doesn’t work public function __construct($config = array()) { if(empty($config[‘filter_fields’])) { $config[‘filter_fields’] = array( ‘value’, ‘value’ ); } parent::__construct($config); } public function populateState($ordering = null, $direction = null) { $search = $this->getUserStateFromRequest($this->context.’.filter.search’, ‘filter_search’); $this->setState(‘filter.search’, $search); parent::populateState(‘id’,…