Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
SimpleCatalog
#58
You have to hook into $controller method to customize it, as described here: http://get-simple.info/forums/showthread...3#pid63413. To be more exact, you have to hook in __renderFrontendItemList() instead. To do that, you should expand your extender like this:

PHP Code:
...
public function 
renderSection($sectionName$params = array())
{
    if(
$sectionName == 'FrontendItemList') {
        
$this->renderFrontendItemList($params);
        ...


Then you have to write renderFrontendItemList($args = null) method, that replaces the default __renderFrontendItemList($args = null), see controller.php.
Attention to the potential conflicts between Util of the IM and Util of the SimpleCatalog, if you want to call the SC Util methods you'll need to use namespace in your im_sc_extender.php e.g:

PHP Code:
use ImCatalog\Util as U

Then you call it like this:

PHP Code:
U::getResizedUrl(...); 

In order to show all the items of all your categories, you have to paste the code from the __renderFrontendItemList($args = null) method into your renderFrontendItemList($args = null) and then change it a bit.
So, your method must look something like this (not tested): https://gist.github.com/bigin/e6cfffe54e...9203a1a767
Reply


Messages In This Thread
SimpleCatalog - by Bigin - 2017-05-11, 04:45:35
RE: SimpleCatalog - by Riianna - 2017-05-11, 05:36:23
RE: SimpleCatalog - by Bigin - 2017-05-11, 05:48:01
RE: SimpleCatalog - by Riianna - 2017-05-11, 17:26:47
RE: SimpleCatalog - by Bigin - 2017-05-11, 17:36:20
RE: SimpleCatalog - by newdeepdan - 2017-05-19, 05:02:29
RE: SimpleCatalog - by Bigin - 2017-05-19, 06:15:54
RE: SimpleCatalog - by Bigin - 2017-05-19, 15:10:58
RE: SimpleCatalog - by Riianna - 2017-06-03, 19:38:52
RE: SimpleCatalog - by Bigin - 2017-06-03, 20:12:54
RE: SimpleCatalog - by Riianna - 2017-06-04, 04:44:32
RE: SimpleCatalog - by Bigin - 2017-06-04, 05:32:17
RE: SimpleCatalog - by usderofit - 2018-12-21, 00:11:48
RE: SimpleCatalog - by Bigin - 2018-12-21, 00:32:10
RE: SimpleCatalog - by Bigin - 2017-06-07, 18:17:50
RE: SimpleCatalog - by Riianna - 2017-06-11, 01:36:27
RE: SimpleCatalog - by Bigin - 2017-06-11, 14:37:11
RE: SimpleCatalog - by DeepSpace - 2017-09-13, 02:53:57
RE: SimpleCatalog - by Bigin - 2017-09-13, 03:54:01
RE: SimpleCatalog - by lakaroth - 2017-10-17, 00:16:29
RE: SimpleCatalog - by Bigin - 2017-10-17, 01:48:28
RE: SimpleCatalog - by usderofit - 2018-12-20, 03:27:12
RE: SimpleCatalog - by Bigin - 2018-12-20, 06:13:54
RE: SimpleCatalog - by usderofit - 2018-12-21, 00:49:09
RE: SimpleCatalog - by Bigin - 2018-12-21, 01:12:41
RE: SimpleCatalog - by usderofit - 2018-12-21, 01:27:21
RE: SimpleCatalog - by usderofit - 2018-12-21, 01:33:11
RE: SimpleCatalog - by Bigin - 2018-12-21, 01:33:25
RE: SimpleCatalog - by Bigin - 2018-12-21, 01:34:58
RE: SimpleCatalog - by usderofit - 2018-12-21, 01:38:34
RE: SimpleCatalog - by Bigin - 2018-12-21, 01:49:52
RE: SimpleCatalog - by usderofit - 2018-12-21, 03:07:19
RE: SimpleCatalog - by Bigin - 2018-12-21, 03:46:12
RE: SimpleCatalog - by usderofit - 2018-12-21, 04:19:10
RE: SimpleCatalog - by usderofit - 2018-12-21, 04:23:53
RE: SimpleCatalog - by Bigin - 2018-12-21, 04:39:55
RE: SimpleCatalog - by usderofit - 2018-12-21, 04:48:28
RE: SimpleCatalog - by Bigin - 2018-12-21, 04:56:31
RE: SimpleCatalog - by usderofit - 2018-12-21, 04:57:02
RE: SimpleCatalog - by Bigin - 2018-12-21, 05:00:38
RE: SimpleCatalog - by usderofit - 2018-12-21, 05:03:24
RE: SimpleCatalog - by usderofit - 2018-12-21, 05:05:25
RE: SimpleCatalog - by usderofit - 2018-12-21, 05:07:07
RE: SimpleCatalog - by Bigin - 2018-12-21, 05:09:19
RE: SimpleCatalog - by usderofit - 2018-12-21, 05:58:58
RE: SimpleCatalog - by usderofit - 2018-12-27, 00:00:14
RE: SimpleCatalog - by Bigin - 2018-12-28, 00:25:56
RE: SimpleCatalog - by usderofit - 2018-12-27, 03:15:21
RE: SimpleCatalog - by usderofit - 2018-12-28, 03:37:22
RE: SimpleCatalog - by Bigin - 2018-12-28, 04:12:10
RE: SimpleCatalog - by usderofit - 2018-12-28, 04:31:51
RE: SimpleCatalog - by Bigin - 2018-12-28, 06:23:04
RE: SimpleCatalog - by usderofit - 2018-12-28, 06:58:47
RE: SimpleCatalog - by Bigin - 2018-12-28, 18:06:34
RE: SimpleCatalog - by usderofit - 2018-12-28, 20:40:46
RE: SimpleCatalog - by Bigin - 2019-07-23, 05:18:58
RE: SimpleCatalog - by usderofit - 2019-07-23, 06:55:42
RE: SimpleCatalog - by Bigin - 2019-07-23, 14:08:22
RE: SimpleCatalog - by Muhammad Baidowi - 2020-01-03, 23:58:44
RE: SimpleCatalog - by Bigin - 2020-01-04, 00:43:48
RE: SimpleCatalog - by Stéphane - 2020-04-13, 20:53:21
RE: SimpleCatalog - by Bigin - 2020-04-13, 21:16:18
RE: SimpleCatalog - by Stéphane - 2020-04-13, 22:26:00
RE: SimpleCatalog - by Bigin - 2020-04-13, 23:07:57
RE: SimpleCatalog - by Stéphane - 2020-04-13, 23:20:40
RE: SimpleCatalog - by Bigin - 2020-04-13, 23:41:20
RE: SimpleCatalog - by Stéphane - 2020-04-13, 23:47:56
RE: SimpleCatalog - by Bigin - 2020-04-13, 23:53:43
RE: SimpleCatalog - by Stéphane - 2020-04-14, 00:14:45
RE: SimpleCatalog - by Bigin - 2020-04-14, 00:32:07
RE: SimpleCatalog - by Stéphane - 2020-04-14, 00:56:20
RE: SimpleCatalog - by Bigin - 2020-04-14, 03:05:03
RE: SimpleCatalog - by Stéphane - 2020-04-14, 03:22:24
RE: SimpleCatalog - by Bigin - 2020-04-14, 03:36:24
RE: SimpleCatalog - by Bigin - 2020-04-14, 03:40:01
RE: SimpleCatalog - by Bigin - 2020-04-14, 04:13:09
RE: SimpleCatalog - by Stéphane - 2020-04-14, 04:34:21
RE: SimpleCatalog - by Stéphane - 2020-04-14, 04:54:27
RE: SimpleCatalog - by Bigin - 2020-04-14, 05:04:32
RE: SimpleCatalog - by Stéphane - 2020-04-14, 05:24:34
RE: SimpleCatalog - by Bigin - 2020-04-14, 15:18:49
RE: SimpleCatalog - by Stéphane - 2020-04-14, 19:43:20
RE: SimpleCatalog - by Bigin - 2020-04-14, 20:07:40
RE: SimpleCatalog - by Stéphane - 2020-04-14, 20:24:44
RE: SimpleCatalog - by Stéphane - 2020-04-15, 18:06:35
RE: SimpleCatalog - by Bigin - 2020-04-15, 18:55:32
RE: SimpleCatalog - by Stéphane - 2020-04-15, 19:45:42
RE: SimpleCatalog - by Bigin - 2020-04-15, 20:45:19
RE: SimpleCatalog - by Stéphane - 2020-04-16, 03:56:56
RE: SimpleCatalog - by Stéphane - 2020-04-16, 05:32:28
RE: SimpleCatalog - by Bigin - 2020-04-16, 18:48:09
RE: SimpleCatalog - by Stéphane - 2020-04-16, 23:14:33
RE: SimpleCatalog - by Bigin - 2020-04-17, 00:59:09
RE: SimpleCatalog - by Stéphane - 2020-04-17, 03:08:17
RE: SimpleCatalog - by Bigin - 2020-04-17, 03:22:46
RE: SimpleCatalog - by Stéphane - 2020-04-17, 04:37:45
RE: SimpleCatalog - by Bigin - 2020-04-17, 18:07:06
RE: SimpleCatalog - by Stéphane - 2020-04-17, 20:20:08
RE: SimpleCatalog - by Stéphane - 2020-04-17, 22:12:14
RE: SimpleCatalog - by Bigin - 2020-04-17, 22:33:59



Users browsing this thread: 1 Guest(s)