Joomla 2.5 overriding /com_content/helpers/icons.php - joomla

how to override this file in my own template file in Joomla 2.5 ?
/com_content/helpers/icon.php

The file isn't a view - so you can't override it - via the template.
This doc will provide clues:
http://docs.joomla.org/How_to_override_the_component_mvc_from_the_Joomla!_core
Can use this plugin to override

Related

how does my custom extension support config autocompletion in IDEA?

i add META-INF/quarkus-config-roots.list in runtime module and put my config class fullpath in it.
it is invalid.is there any document about it?

Can't create Prism pages using "prism template pack"

When creating prism pages in Xamarin Forms app using the prism template pack I get the following error.
The parameter is incorrect.(Exception from HRESULT: 0x80070057
(E_INVALIDARG)
I am using VS2015, Prism Template Pack 1.7 and here's my project structure
My mistake was trying to create 'Prism' pages before modifying the app class to inherit from 'PrismApplication'.
I have just noticed that when using the template pack it automatically registers page for navigation within the 'RegisterTypes' method in the App class.
Adding to Muhammad's answer above, i also had to change the constructor to the following after inheriting from PrismApplication
public App(IPlatformInitializer initializer = null) : base(initializer)
{
}
And also had to change the Application to PrismApplication in App.xaml file also.

Filter/Limit Liferay portlet list

I would like to know if there is a way to filter/limit the portlets (let say a category/set of portlets) that are allowed to add in a specific page other than using permissions/roles ?
Regards.
yes you can filter the portlet list by customizing liferay-display.xml file.
build.xml
/docroot/
/css/
/js/
/WEB-INF/
/src/ (not created by default)
liferay-display.xml
liferay-plugin-package.properties
liferay-portlet.xml
portlet.xml
web.xml
icon.png
view.jsp

auto-loading the doctrine 2 with codeigniter 2.1.0

i've a problem in auto-loading the doctrine 2 with codeigniter 2.1.0,
i was following this tutorial
http://www.phpandstuff.com/articles/codeigniter-doctrine-from-scratch-day-1-install-and-setup
i was supposed to open the autoload.php file and load the doctrine like this :
$autoload['plugin'] = array('doctrine');
but the problem is that there is no $autoload['plugin'] = array(); in my autoload.php
so how to load the doctrine ?
That phpandstuff article is too old and for doctrine1. Use this for CI2 and Doctrine2
https://github.com/rubensarrio/codeigniter-hmvc-doctrine
you need to setup a library class and setup doctrine classloader.
If I'm right since the version 2.0 of CodeIgniter the plugin has been removed and has been added the helper class which is almost the same thing.
I thin you should transform your plugin in a helper:
yourplugin_pi.php => yournewhelper_helper.php
and then you can add it in the autoload file in the helper section:
http://codeigniter.com/user_guide/installation/upgrade_200.html

How to configure a custom SiteMapNode for a sitemap?

I created a class which inherits from SiteMapNode and overrode the Title property of it. However how and where do I configure it so that my sitemap (and custom sitemapprovider) takes this custom SiteMapNode implementation instead of the default one?
Apparantly this should be done by creating a custom sitemapprovider which inherits from StaticSiteMapProvider instead of XmlSiteMapProvider.

Resources