Search found 11 matches

by kristoftorfs
Thu Aug 06, 2015 2:15 am
Forum: [locked] CMSMS 2.0 Beta
Topic: Bug in CMSModule class
Replies: 1
Views: 12348

Bug in CMSModule class

Call to undefined method ModuleOperations::GetModuleHelp() in /vagrant/web/lib/classes/class.CMSModule.php on line 483.

Happens after each install when opening the Module Manager (RC1).
by kristoftorfs
Wed Feb 11, 2015 3:42 pm
Forum: Module Developers
Topic: Registering Smarty plugins for both frontend and admin
Replies: 3
Views: 11909

Re: Registering Smarty plugins for both frontend and admin

Okay, thanks.

But why is the $usage argument in CMSModule::RegisterSmartyPlugin then?

It doesn't seem like it's being used...
by kristoftorfs
Wed Feb 11, 2015 9:34 am
Forum: Module Developers
Topic: Registering Smarty plugins for both frontend and admin
Replies: 3
Views: 11909

Registering Smarty plugins for both frontend and admin

When I register a Smarty plugin in my module installation the plugin works perfectly on the frontend, but when I try to use them in the admin interface it keeps giving me an "unknown tag" error. I tried to set the $usage argument of RegisterSmartyPlugin to 0, 1 and 2, but neither one of th...
by kristoftorfs
Wed Feb 11, 2015 8:59 am
Forum: Developers Discussion
Topic: Registering Smarty filters
Replies: 1
Views: 2976

Re: Registering Smarty filters

Found a work-around by using the SmartyPreCompile event.

However, I would like to get some feedback to tell me if this is actually the right way to do this?
by kristoftorfs
Wed Feb 11, 2015 8:02 am
Forum: Developers Discussion
Topic: Registering Smarty filters
Replies: 1
Views: 2976

Registering Smarty filters

Hi, I want to register a Smarty (pre)filter for my module. For regular Smarty plugins I just call RegisterSmartyPlugin in my module Install method, but this doesn't seem to work for filters. Where would be the best place to (persistently) register the filter and how should I go about this? Do note t...
by kristoftorfs
Mon Sep 22, 2014 6:01 am
Forum: Closed Issues
Topic: [closed] Admin menu items
Replies: 6
Views: 4707

Re: [open] Admin menu items

I've been looking into this, but it seems that the way the admin menu system currently works, it is nearly impossible to get this working without altering too much of the existing code.

Guess I'll just have to rewrite my module to use different actions somehow.
by kristoftorfs
Thu Sep 04, 2014 5:56 pm
Forum: Closed Issues
Topic: [closed] Admin menu items
Replies: 6
Views: 4707

Re: Admin menu items

Okay, I'll get started on it tomorrow. Might take me a few days as these are pretty pretty busy times for me. At first glance the changes shouldn't be too evasive as I simply plan to simply expand the functionality of the CmsAdminMenuItem class. Should I notify you in this post when I'm done, or som...
by kristoftorfs
Thu Sep 04, 2014 3:09 pm
Forum: Closed Issues
Topic: [closed] Admin menu items
Replies: 6
Views: 4707

Re: Admin menu items

Can i fix this myself, and pass the changes on to you for revision? If I have to make changes to the CMS itself, I would prefer they would end up in the official release.
by kristoftorfs
Thu Sep 04, 2014 1:36 pm
Forum: Closed Issues
Topic: [closed] Admin menu items
Replies: 6
Views: 4707

[closed] Admin menu items

Hi, I'm having an issue with the admin menu items. I have a couple of menu items in my module which all redirect to the same module action, but with a different parameter. Let's take the following menu items as an example: action=myaction,myparam=firstparam action=myaction,myparam=secondparam action...
by kristoftorfs
Wed Sep 03, 2014 2:08 pm
Forum: Closed Issues
Topic: [fixed] Typo in class.CmsLayoutTemplate.php
Replies: 1
Views: 1532

[fixed] Typo in class.CmsLayoutTemplate.php

On line 293:

Code: Select all

if( (int)$y < 1 )	throw new CmsInvalidDatException('Invalid data in design list.  Expect array of integers');
This should of course be CmsInvalidDataException.
by kristoftorfs
Wed Sep 03, 2014 11:56 am
Forum: Closed Issues
Topic: [fixed] Setting custom admin title doesn't work
Replies: 1
Views: 1473

[fixed] Setting custom admin title doesn't work

It appears that setting a custom title in the administrator interface is not working. I used the following code in a module action, and it doesn't change the title at all:

Code: Select all

/** @var CmsAdminThemeBase $theme */
$theme = CmsAdminThemeBase::GetThemeObject();
$theme->SetTitle('Test title');

Go to advanced search