Keyword

K2 Templating and css

  • troponin
  • troponin's Avatar Topic Author
  • Offline
  • Platinum Member
More
14 years 10 months ago #76909 by troponin

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

More
14 years 10 months ago #76910 by Jiliko.net
Replied by Jiliko.net on topic K2 Templating and css
Ok,

I know why...Im' checking my code.

Olivier

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

More
14 years 10 months ago #76911 by Jiliko.net
Replied by Jiliko.net on topic K2 Templating and css
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
Attachments:

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

  • troponin
  • troponin's Avatar Topic Author
  • Offline
  • Platinum Member
More
14 years 10 months ago #76912 by troponin
Replied by troponin on topic K2 Templating and css
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.

More
14 years 10 months ago #76913 by Jiliko.net
Replied by Jiliko.net on topic K2 Templating and css
@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.

More
14 years 10 months ago #76914 by Simon Wells
Replied by Simon Wells on topic K2 Templating and css
Yes you are right but when I made the change to that custom location it did not work
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.

More
14 years 10 months ago #76915 by Simon Wells
Replied by Simon Wells on topic K2 Templating and css
Congrats, I am happy to say, it is using the css from my custom template now.
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.

More
14 years 10 months ago #76916 by Thomas Gebhardt
Replied by Thomas Gebhardt on topic K2 Templating and css
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.

  • troponin
  • troponin's Avatar Topic Author
  • Offline
  • Platinum Member
More
14 years 10 months ago #76917 by troponin
Replied by troponin on topic K2 Templating and css
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.

More
14 years 10 months ago #76918 by Thomas Gebhardt
Replied by Thomas Gebhardt on topic K2 Templating and css
Hallo Troponin,

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.


Powered by Kunena Forum