custom K2 layout overrides

Community fouces Joomla template to build a music magazine website with JomSocial support.
GK User
Wed Sep 05, 2012 7:23 am
I need to control the rendering of some custom K2 fields. From what I can tell, I need to modify the layout files in

Code: Select all
templates/gk_musicity/html/com_k2/templates/default/


Now in several other discussions it is suggested that we make a copy, modify the files and use these instead in another folder:

Code: Select all
templates/gk_musicity/html/com_k2/templates/myk2layout/


But it is not explained how we configure the template to use these new layout files - where do I specify that it should use the files myk2layout and not the ones in the default folder?
User avatar
Fresh Boarder

GK User
Wed Sep 05, 2012 10:14 am
You don't need to specify this anywhere the K2 will use overrided layout automatically but you can't create your own names, the files need to be in 'default' subdirectory to override default K2 layout. My advise is to copy template files to hard disk and make custom changes - then you always have copy.
User avatar
Platinum Boarder

GK User
Wed Sep 05, 2012 11:37 am
Ah - so you can't specify a layout override then. It would be useful with that option, as a future upgrade might overwrite my "hack" now.. :-/
User avatar
Fresh Boarder

GK User
Thu Sep 06, 2012 8:53 am
It not depends of us but from Joomla!, the only way is to merge changes for this few files when you will be update your template.
User avatar
Platinum Boarder


cron