Keyword

Sub Template set up

  • Neil Boddie
  • Neil Boddie's Avatar Topic Author
  • Offline
  • Senior Member
More
12 years 5 months ago #64795 by Neil Boddie
Sub Template set up was created by Neil Boddie
To create the sub-template I have done the following.

Note, I am using beez_20 template as the main template

COPY the templates folder found in /components/com_k2/.
PASTE it into /templates/beez_20/html/
Rename the templates folder com_k2
Should now read templates/beez_20/html/com_k2/
Rename the Default folder found inside com_k2 folder to your new sub-template name
Eg: from /templates/beez_20/html/com_k2/ default
to /templates/beez_20/html/com_k2/your new sub -template name


I only want to change the css within the sub-template when chosen from the category item layout drop down.

To achieve this I did the following

Installed the CSS4K2 plugin

Copied the components/com_k2/css/k2.css file
Posted it to /templates/beez_20/html/com_k2/your new sub -template name/
Eg /templates/beez_20/html/com_k2/your new sub -template name/k2.css

Rename the newly pasted file k2.css located inside your sub-template to subtemplatename_style.css

If you called your sub-template "blog" then your new css file would read

/templates/beez_20/html/com_k2/blog/blog_style.css

Whew following this so far and now the results.

The sub-template shows in category item layout drop down, and it is being selected ok.

BUT (css4k2 published)

Picks up the style changes ok but this is showing above the TITLE in the edit category(backend)

( ! ) Notice: Undefined property: JSimpleXMLElement::$params in C:\wamp\www\mysite\libraries\joomla\html\parameter.php on line 398
Call Stack
# Time Memory Function Location
1 0.0006 697056 {main}( ) ..\index.php:0
2 0.0708 8330984 JAdministrator->dispatch( ) ..\index.php:46
3 0.0732 8851608 JComponentHelper::renderComponent( ) ..\application.php:153
4 0.0783 8858144 JComponentHelper::executeComponent( ) ..\helper.php:357
5 0.0787 8989848 require_once( 'C:\wamp\www\mysite\administrator\components\com_k2\admin.k2.php' ) ..\helper.php:388
6 0.0870 10485600 JController->execute( ) ..\admin.k2.php:123
7 0.0870 10485680 K2ControllerCategory->display( ) ..\controller.php:754
8 0.0870 10485688 JController->display( ) ..\category.php:20
9 0.0916 11437824 K2ViewCategory->display( ) ..\controller.php:715
10 0.1240 13461560 JDispatcher->trigger( ) ..\view.html.php:71
11 0.1240 13462312 JEvent->update( ) ..\dispatcher.php:161
12 0.1240 13463008 call_user_func_array ( ) ..\event.php:71
13 0.1240 13463040 K2Plugin->onRenderAdminForm( ) ..\event.php:0
14 0.1250 13672600 K2Parameter->__construct( ) ..\k2plugin.php:34
15 0.1258 13731344 JParameter->loadSetupFile( ) ..\k2parameter.php:55

This is also showing 4 times in a column above the TITLE in the edit item also(backend)

Whats happening with this, has anyone come across this and more important how do I fix ithttp://getk2.org/components/com_kunena/template/getK2Community/images/emoticons/cheerful.png

Please Log in or Create an account to join the conversation.

More
12 years 5 months ago #64796 by Simon Wells
Replied by Simon Wells on topic Re: Sub Template set up
Neil,
I would visit the site you got css4k2 and post a question there.
I do suspect that this issue could be resolved in the next release of css4k2.

All the steps you have done in creating the K2 template over ride are correct.

Simon

Please Log in or Create an account to join the conversation.


Powered by Kunena Forum