- Posts: 398
COMMUNITY FORUM
K2 Templating and css
- troponin
-
Topic Author
- Offline
- Platinum Member
www.brain-style.de/index.php?option=com_k2&view=itemlist&layout=category&task=category&id=50
Items in it ;)
...and this is for the Showcase
www.brain-style.de/index.php?option=com_k2&view=itemlist&layout=category&task=category&id=52
Please Log in or Create an account to join the conversation.
- Jiliko.net
-
- Offline
- Platinum Member
- Posts: 567
I know why...Im' checking my code.
Olivier
Please Log in or Create an account to join the conversation.
- Jiliko.net
-
- Offline
- Platinum Member
- Posts: 567
The plugin is now v1.1
Olivier
Please Log in or Create an account to join the conversation.
- troponin
-
Topic Author
- Offline
- Platinum Member
- Posts: 398
It works ! Thumbs up
by the way - dont let me die stupid - what was the "Feature;)"
Olivier Nolbert said:I've modified the test in the category Display event and tested it on test website and it seems to work now. The plugin is now v1.1
Olivier
Please Log in or Create an account to join the conversation.
- Jiliko.net
-
- Offline
- Platinum Member
- Posts: 567
I must confess the feature was a bug... :-)
Olivier
Troponin said:make it final Version ;) It works ! Thumbs up
by the way - dont let me die stupid - what was the "Feature;)"
Olivier Nolbert said:I've modified the test in the category Display event and tested it on test website and it seems to work now. The plugin is now v1.1
Olivier
Please Log in or Create an account to join the conversation.
- Simon Wells
-
- Offline
- Platinum Member
- Posts: 955
I then tried those two files and the k2.css took effect, which in my eyes it should not have done, as it should be controlled by my custom template.
Troponin said:Simon Wells said:To confirm this point a bit more, ... UPDATE: I just added: div.subCategory a.subCategoryImage img {float:left;display:block;background:#fff;padding:4px;border:1px solid #ddd;margin:0 8px 0 0;}
to components/com_k2/css/style.css, result, no change.
to /components/com_k2/css/k2.css, then sub cat image layout changes.
Any ideas?
Correct me if i'm wrong:
I thought the custom should be placed in %Joomlatemplate%/html/com_k2/templates/%k2template%/%k2template%_style.css
Please Log in or Create an account to join the conversation.
- Simon Wells
-
- Offline
- Platinum Member
- Posts: 955
Can I advise to include a version number in the xml file please.
Olivier Nolbert said:@Troponin
I must confess the feature was a bug... :-)
Olivier
Troponin said:make it final Version ;) It works ! Thumbs up
by the way - dont let me die stupid - what was the "Feature;)"
Olivier Nolbert said:I've modified the test in the category Display event and tested it on test website and it seems to work now. The plugin is now v1.1 Olivier
Please Log in or Create an account to join the conversation.
- Thomas Gebhardt
-
- Offline
- New Member
- Posts: 4
does your plugin also work for the new version 2.2? I do exactly, what is described here - but unfortunality nothing happened. So what have i done?
1. I installed the plugin (v1.1) und publish it
2. I created the folder structure: /components/com_k2/templates/blog
3. I copy the original k2 template files category.php - last_item.php into the folder blog
4. I created the folder structure: /templates/fadc/html/com_k2/blog
fadc is my joomla-template
5. I open the original k2.css and changed in line 333 the div.catItemHeader h3.catItemTitle to background-color:#0f0 to see the difference to the K2 standard template
6. I renamed the file in blog_style.css and saved it in the folder /templates/fadc/html/com_k2/blog
7. I go into the k2 Backend and assign my category "logbuch" the template blog
here is the category: www.flugzeuge-auf-dem-cover.de/logbuch
nothing happened. So I looked with web-developer what css-file is loaded. It is: flugzeuge-auf-dem-cover.de/components/com_k2/css/k2.css
Whats going wrong?
Thanks everyone for help!
Thomas
Olivier Nolbert said:I've modified the test in the category Display event and tested it on test website and it seems to work now. The plugin is now v1.1 Olivier
Please Log in or Create an account to join the conversation.
- troponin
-
Topic Author
- Offline
- Platinum Member
- Posts: 398
in Zeile 4 stimmt deine Orner Struktur nicht. Es muss heissen :
/templates/fadc/html/com_k2/templates/blog
Müsste dann funktinieren.
Please Log in or Create an account to join the conversation.
- Thomas Gebhardt
-
- Offline
- New Member
- Posts: 4
vielen Dank für deine Hilfe.
ich habe jetzt den Pfad geändert auf /templates/fadc/html/com_k2/templates/blog
in diesem Verzeichnis liegt nur die Datei blog_style.css
leider funzt es immer noch nicht. Kann das vielleicht mit dem Namen des original css-files zusammenhängen? Bei der Version K2.1 hieß sie noch style.css - jetzt in der neuen Version k2.css
Troponin said:Hey Thomas,
in Zeile 4 stimmt deine Orner Struktur nicht. Es muss heissen :
/templates/fadc/html/com_k2/templates/blog
Müsste dann funktinieren.
Please Log in or Create an account to join the conversation.
- troponin
-
Topic Author
- Offline
- Platinum Member
- Posts: 398
4. I created the folder structure: /templates/fadc/html/com_k2/blog
fadc is my joomla-template
5. I open the original k2.css and changed in line 333 the div.catItemHeader h3.catItemTitle to background-color:#0f0 to see the difference to the K2 standard template
6. I renamed the file in blog_style.css and saved it in the folder /templates/fadc/html/com_k2/blog
7. I go into the k2 Backend and assign my category "logbuch" the template blog
....
Mach nochmal folgendes :
zu 1) im Plugin keep k2 Css auf nein
zu 2) löschen (K2 schaut mit dem plugin im template-Verzeichnis von Joomla!) aber local sichern, ne ;)
zu 3) sicherstellen, dass die Dateien aus drei jetzt in 4 liegen ( wie schon von Dir geändert 'templates/blog')
zu 5) nicht böse gemeint Fehler im css Tag ? alles richtig geschrieben.
6 und 7 ist auf jeden fall richtig. Auch unter 2.2 muss die custom css: Ordnername_style.css heissen.
Please Log in or Create an account to join the conversation.
- Thomas Gebhardt
-
- Offline
- New Member
- Posts: 4
folgende Konstellation habe ich jetzt:
1. Plugin keep k2 Css steht auf nein
2. das blog-Verzeichnis (/components/com_k2/templates/blog) habe ich gelöscht
3. Verzeichnis /templates/fadc/html/com_k2/templates/blog siehe Bild blog.jpg
4 css tag siehe Bild blog_style_css.jpg
nachdem ich das jetzt geändert habe, habe ich das Problem, dass ich im K2 Backend meiner Kategorie Logbuch das Template Blog nicht mehr zuordnen kann - siehe Bild backend_k2.jpg
oder sehe ich vor lauter Bäume den Wald nicht?
Troponin said:Thomas said:Hi Olivier, ... 1. I installed the plugin (v1.1) und publish it 2. I created the folder structure: /components/com_k2/templates/blog 3. I copy the original k2 template files category.php - last_item.php into the folder blog 4. I created the folder structure: /templates/fadc/html/com_k2/blog fadc is my joomla-template 5. I open the original k2.css and changed in line 333 the div.catItemHeader h3.catItemTitle to background-color:#0f0 to see the difference to the K2 standard template
6. I renamed the file in blog_style.css and saved it in the folder /templates/fadc/html/com_k2/blog
7. I go into the k2 Backend and assign my category "logbuch" the template blog
....
Mach nochmal folgendes :
zu 1) im Plugin keep k2 Css auf nein
zu 2) löschen (K2 schaut mit dem plugin im template-Verzeichnis von Joomla!) aber local sichern, ne ;)
zu 3) sicherstellen, dass die Dateien aus drei jetzt in 4 liegen ( wie schon von Dir geändert 'templates/blog')
zu 5) nicht böse gemeint Fehler im css Tag ? alles richtig geschrieben.
6 und 7 ist auf jeden fall richtig. Auch unter 2.2 muss die custom css: Ordnername_style.css heissen.
Please Log in or Create an account to join the conversation.
- Thomas Gebhardt
-
- Offline
- New Member
- Posts: 4
JUCHUUU - jetzt G E H T 'S - - - - - - - -> Tausend DANK!!!!!
du hattest vollkommen recht. Der Fehler war: ich hatte noch ein zweites Joomla-template (zum testen). Dieses hatte ich aktiviert - Asche über mein Haupt!
Troponin said:Thomas said:Hi Olivier, ... 1. I installed the plugin (v1.1) und publish it 2. I created the folder structure: /components/com_k2/templates/blog 3. I copy the original k2 template files category.php - last_item.php into the folder blog 4. I created the folder structure: /templates/fadc/html/com_k2/blog fadc is my joomla-template 5. I open the original k2.css and changed in line 333 the div.catItemHeader h3.catItemTitle to background-color:#0f0 to see the difference to the K2 standard template
6. I renamed the file in blog_style.css and saved it in the folder /templates/fadc/html/com_k2/blog
7. I go into the k2 Backend and assign my category "logbuch" the template blog
....
Mach nochmal folgendes :
zu 1) im Plugin keep k2 Css auf nein
zu 2) löschen (K2 schaut mit dem plugin im template-Verzeichnis von Joomla!) aber local sichern, ne ;)
zu 3) sicherstellen, dass die Dateien aus drei jetzt in 4 liegen ( wie schon von Dir geändert 'templates/blog')
zu 5) nicht böse gemeint Fehler im css Tag ? alles richtig geschrieben.
6 und 7 ist auf jeden fall richtig. Auch unter 2.2 muss die custom css: Ordnername_style.css heissen.
Please Log in or Create an account to join the conversation.
- Simon Wells
-
- Offline
- Platinum Member
- Posts: 955
What was the problem?
Can you let us know?
Good job, if you got it fixed.
Thomas said:S O R R Y Troponin,
JUCHUUU - jetzt G E H T 'S - - - - - - - -> Tausend DANK!!!!!
du hattest vollkommen recht. Der Fehler war: ich hatte noch ein zweites Joomla-template (zum testen). Dieses hatte ich aktiviert - Asche über mein Haupt!
Troponin said:Thomas said:Hi Olivier, ... 1. I installed the plugin (v1.1) und publish it 2. I created the folder structure: /components/com_k2/templates/blog 3. I copy the original k2 template files category.php - last_item.php into the folder blog 4. I created the folder structure: /templates/fadc/html/com_k2/blog fadc is my joomla-template 5. I open the original k2.css and changed in line 333 the div.catItemHeader h3.catItemTitle to background-color:#0f0 to see the difference to the K2 standard template 6. I renamed the file in blog_style.css and saved it in the folder /templates/fadc/html/com_k2/blog
7. I go into the k2 Backend and assign my category "logbuch" the template blog
....
Mach nochmal folgendes :
zu 1) im Plugin keep k2 Css auf nein
zu 2) löschen (K2 schaut mit dem plugin im template-Verzeichnis von Joomla!) aber local sichern, ne ;)
zu 3) sicherstellen, dass die Dateien aus drei jetzt in 4 liegen ( wie schon von Dir geändert 'templates/blog')
zu 5) nicht böse gemeint Fehler im css Tag ? alles richtig geschrieben.
6 und 7 ist auf jeden fall richtig. Auch unter 2.2 muss die custom css: Ordnername_style.css heissen.
Please Log in or Create an account to join the conversation.
- troponin
-
Topic Author
- Offline
- Platinum Member
- Posts: 398
Like you know, it should be /templates/fadc/html/com_k2/templates/blog
Please Log in or Create an account to join the conversation.
- Oceanwatcher
-
- Offline
- Elite Member
- Posts: 175
Here is what I had to add to the links to make it work:
Old link: ../images/system/feed-icon-14x14.gif
New link: ../../../../../../components/com_k2/images/system/feed-icon-14x14.gif
Any easier way to solve this without having to edit any .php files?
On the other hand:
Is this really needed anymore?
According to Fotis, it should work by just copying the k2.css file to the sub-template folder and when K2 see the file there it will load that one instead of the original K2.css? (going off to test it now...)
Please Log in or Create an account to join the conversation.
- troponin
-
Topic Author
- Offline
- Platinum Member
- Posts: 398
If you dont want to edit the css inline links - do the following:
Just copy the image folder into the template/yourJOOMLA!Template/html/com_k2/templates folder.
greets
Please Log in or Create an account to join the conversation.
- Simon Wells
-
- Offline
- Platinum Member
- Posts: 955
Here is a
screenshot of how I have K2Joom.com configured at the moment. This is using Avanti template supplied by joomlaBamboo.com, with a couple of my own micro themes too.
It was satisfying to see that JB.com did the same as I had and pulled in the original /images folder preserving the relative links to images.
Troponin said:K2 dont look into the subtemplatefolder for css. it just looks in css folder of the Joomla! K2 Template. If you dont want to edit the css inline links - do the following:
Just copy the image folder into the template/yourJOOMLA!Template/html/com_k2/templates folder.
greets
Please Log in or Create an account to join the conversation.
- Jiliko.net
-
- Offline
- Platinum Member
- Posts: 567
I wasn't following that discussion...shame on me !
I read it and reply if necessary...
Olivier
Thomas said:Hi Olivier,
does your plugin also work for the new version 2.2? I do exactly, what is described here - but unfortunality nothing happened. So what have i done?
1. I installed the plugin (v1.1) und publish it
2. I created the folder structure: /components/com_k2/templates/blog
3. I copy the original k2 template files category.php - last_item.php into the folder blog
4. I created the folder structure: /templates/fadc/html/com_k2/blog
fadc is my joomla-template
5. I open the original k2.css and changed in line 333 the div.catItemHeader h3.catItemTitle to background-color:#0f0 to see the difference to the K2 standard template
6. I renamed the file in blog_style.css and saved it in the folder /templates/fadc/html/com_k2/blog
7. I go into the k2 Backend and assign my category "logbuch" the template blog
here is the category: www.flugzeuge-auf-dem-cover.de/logbuch
nothing happened. So I looked with web-developer what css-file is loaded. It is: flugzeuge-auf-dem-cover.de/components/com_k2/css/k2.css
Whats going wrong?
Thanks everyone for help!
Thomas
Olivier Nolbert said:I've modified the test in the category Display event and tested it on test website and it seems to work now. The plugin is now v1.1 Olivier
Please Log in or Create an account to join the conversation.
- GreenDome
-
- Offline
- Premium Member
- Posts: 93
I'm currently testing this plug-in, is it true that you cant use the option "Inherit parameter options from category"?
When i use it for a category it also inherits css file too. Which i don't want it to do as my categories need to be same, i just want to change the color options (i.e. font color, H1, H2, H3 and background color etc) for each category via the individual css files.
Thank you,
GD
Please Log in or Create an account to join the conversation.