/
MenuHelper improvements [5.3.0-B1]

MenuHelper improvements [5.3.0-B1]

Imported From: http://groups.google.com/group/in-portal-dev/browse_thread/thread/45965d8b59d75f49#

Right now we have nice <inp2:st_CachedMenu .../> tag, that prints every menu on website without doing a database query. This works good, however in some projects I came across situations where a new database field (e.g. extra css class name) was added to a page (category) and this field needs to be used during menu printing.

This requires to override 2 methods in MenuHelper class.

I'm proposing to create an array (as a property of MenuHelper class), where mapping is created between Categories database table fields and parameter names, used to retrieve their values from template.

Here is an example array:

Array (
	'parent_path' => 'ParentPath',
	'icon' => Array ('Icon', 'resize:100x100'),
);

Then these parameters would be used with GetField method.

Error rendering macro 'jira' : Unable to locate Jira server for this macro. It may be due to Application Link configuration.