Keyword

Update on my sub-template Problem

  • Neil Boddie
  • Neil Boddie's Avatar Topic Author
  • Offline
  • Senior Member
More
12 years 6 months ago #64659 by Neil Boddie
Update on my sub-template Problem was created by Neil Boddie
Ok lets have another go at this (William I am sorry but I really need this to work) the whole point of me starting with k2 was to use the sub-template and it is described in the tuts as simple.

Template Overrides sourced from

api.ning.com/files/UF1TdJwUK*I6-04rl1MagDqi*2n1Qk7ENg-smXU75EdWzxIyGkVnvfaJUJWMZzppL4OGY2JOgqSMoT-jkksp2ihr8V7XOvdl/k2_Options.pdf

“I found an article that said to override the default k2.css files copy the following 3 files from
components/com_k2/css/ to your templates css folder:

• K2.css
• K2_ie6.css
• K2_ie7.css


To create your own templates for k2 do the following:

1. Create a folder com_k2 in templates/YOURTEMPLATE/html/
2. Go to components/com_k2/
3. Copy the templates folder
4. Paste that folder into templates/YOURTEMPLATE/html/com_k2/
5. To create new views/templates go to templates/YOURTEMPLATE/html/com_k2/templates/
6. Copy/paste the default folder within the templates folder and rename it e.g. blog, catalogue
7. This template will now be available within the drop down Layout Template box within the Categories >
Category Item Layout area of k2
8. Edit the files contained within your new folder to get the layout view you require.
9. You can make an unlimited number of templates/layouts using this method”

What is really happening:

From Firebug:

Localhost/mysite/templates/beez-20/html/com_k2/templates/catalog (catalog is the name of the sub-template)

The k2.css file has been installed in the following folder

localhost/mysite/templates/beez_20/css/k.2.css

When catalog is selected for category we get in Firebug when inspect an element:

localhost/mysite/templates/beez_20/css/k.2.css

When Default is selected For category we still get

localhost/mysite/templates/beez_20/css/k.2.css

So if there is no /default/ folder inside com_k2 why is k2.css still picking up from beez_20,
I know you experts do this all the time so I would be grateful if someone could take the time and have a look.
Is there a .php file that needs to be changed but every tut that Ihave seen says no and I have just Watched Fotis giving a
talk on one of his you tube vids and he made sound so simple and yet is does'nt work for me Grrrrrrrrrrrr

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

More
12 years 6 months ago #64660 by william white
Replied by william white on topic Re: Update on my sub-template Problem
Does your subtemplate work?
if so, then
get css4k2 from jiliko.net or at k2joom.com (free i think)
put a copy of k2.css into
root/tempates/yourtemplate/html/com_k2/yourtemplatename/
rename the file to yourtemplatename_style.css
now you can change that css file and it will apply when you are using that override
If you cannot get it to work email me with access

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


Powered by Kunena Forum