Keyword

K2 Tools - Tag cloud - Styling

  • BBC
  • BBC's Avatar Topic Author
  • Offline
  • Platinum Member
More
12 years 1 month ago #113039 by BBC
K2 Tools - Tag cloud - Styling was created by BBC
Used search, found nothing.


I dont know if im just stupid and dont see something in the front of my eyes, or is it some bug with module, CSS.

- Activated K2 Tools module, used Tag cloud function.
- I see in source code that my template override CSS is called (for test purpose i started with k2.css core code in my override)

- None of "tag" classes in CSS have any impact on Tag cloud, no matter how i change them.
- Firebug doesnt even show these classes in CSS, they are as non existent. (Module/s near Tag cloud use normally CSS code) I mean on the same subpage.

- K2 tools module has not template override, i know that. But all classes for modules are in k2.css (or override css). Everything else works except Tag cloud. No styling at all, nothing in Firebug.


How to style Tag Cloud without touching core tags.php file (made/rename classes) ?
How to style Tag cloud without inventing new classes in k2.css (or override css) ?

K2 = 2.6.6 version
Joomla 3.1.1 version.

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

  • Krikor Boghossian
  • Krikor Boghossian's Avatar
  • Offline
  • Platinum Member
More
12 years 1 month ago #113040 by Krikor Boghossian
Replied by Krikor Boghossian on topic Re: K2 Tools - Tag cloud - Styling
Hello there,

K2 Tools does have an override. Try looking for the modules/k2_tools/tmpl folder. Each view has it's own .php file you can override.

Furthermore in your k2.css look for div.k2TagCloudBlock it should at line 980 in your default k2.css.

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

  • BBC
  • BBC's Avatar Topic Author
  • Offline
  • Platinum Member
More
12 years 1 month ago #113041 by BBC
Replied by BBC on topic Re: K2 Tools - Tag cloud - Styling
Thanks for fast answer.

K2 Tool has not option to chose template, so override works only once ? But i dont think it is important here.

I have div.k2TagCloudBlock in my CSS. CSS is called in page. But it is non existent for Tag Cloud.

In whole Tag cloud module (K2 tools) i have only this:

<div id="k2ModuleBox161" class="k2TagCloudBlock">

and inside tags "a title" , nothing more.

When i preview right side in Firebug i dont see any K2 class, despite k2.css is called on page.

Dont have K2 tools override folder, dont want to complicate problem until i solve it.

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

  • Krikor Boghossian
  • Krikor Boghossian's Avatar
  • Offline
  • Platinum Member
More
12 years 1 month ago #113042 by Krikor Boghossian
Replied by Krikor Boghossian on topic Re: K2 Tools - Tag cloud - Styling
I get what you mean, you can override the module but you can't choose any template.

I 'll need a URL for this one.

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

  • BBC
  • BBC's Avatar Topic Author
  • Offline
  • Platinum Member
More
12 years 1 month ago #113043 by BBC
Replied by BBC on topic Re: K2 Tools - Tag cloud - Styling
I really dont understand it.

K2 content module use K2 CSS absolutely OK. K2 tools module not, they are on the same page. Only difference is sidebar/column (tags), middle area (K2 content modules).

I tried one of default Joomla templates, same problem.

If i in K2 CSS add:

#k2ModuleBox161 {some style here}

even this is not respected.

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

  • BBC
  • BBC's Avatar Topic Author
  • Offline
  • Platinum Member
More
12 years 1 month ago #113044 by BBC
Replied by BBC on topic Re: K2 Tools - Tag cloud - Styling

Krikor Boghossian wrote: I get what you mean, you can override the module but you can't choose any template.

I 'll need a URL for this one.



It is localhost unfortunately.

Override is not important here, problem is of another nature. Even when i make so that page picks default k2.css it is the same.

You maybe miss me, i dont want to override K2 tools (Tag cloud). I want it to start using K2 CSS classes that is called in page. It is called, i see it in source code, i see it in other K2 modules. (have 4 pieces more on the same page).

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

  • Krikor Boghossian
  • Krikor Boghossian's Avatar
  • Offline
  • Platinum Member
More
12 years 1 month ago #113045 by Krikor Boghossian
Replied by Krikor Boghossian on topic Re: K2 Tools - Tag cloud - Styling
Are you sure this is not a cache issue?
Plus this has happened to me a lot of times, double check the path of your k2.css file and open it in your browser to see if the changes are actually there.

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

  • BBC
  • BBC's Avatar Topic Author
  • Offline
  • Platinum Member
More
12 years 1 month ago #113046 by BBC
Replied by BBC on topic Re: K2 Tools - Tag cloud - Styling
Joomla cache is not activated, browser cleared. Paths seem OK.

I open css with Notepad and see that it is not DW that tricks me, all changed are saved. Nothing in Firebug.

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

  • BBC
  • BBC's Avatar Topic Author
  • Offline
  • Platinum Member
More
12 years 1 month ago #113047 by BBC
Replied by BBC on topic Re: K2 Tools - Tag cloud - Styling
Seems as bug in K2 - Css4K2 plugin. It is not ready for Joomla 3.

Why is it not in the core ? More than 7 billion people in this world and such important K2 thing depend on only one person.

Next question and search for answer is what K2 - Css4K2 plugin does so that K2 modules in one positiona are styled, modules in another position not, on the same subpage ?

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

  • BBC
  • BBC's Avatar Topic Author
  • Offline
  • Platinum Member
More
12 years 1 month ago #113048 by BBC
Replied by BBC on topic Re: K2 Tools - Tag cloud - Styling
Here is answer maybe, article not so old.
But i have no clue where to put this part of code.

y-designs.com/support/tutorials/how-to-inject-css-prior-to-the-css4k2-system.html#.UZDyaT7iNGE

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

  • BBC
  • BBC's Avatar Topic Author
  • Offline
  • Platinum Member
More
12 years 1 month ago - 12 years 1 month ago #113049 by BBC
Replied by BBC on topic Re: K2 Tools - Tag cloud - Styling
I dont know what is happening.

Things i am 100% sure for:

- Override CSS is loaded, and path is OK, all changes in code respected.
- Default k2.css is not loaded, never doesnt matter how i play with options (it is good because i want it that way to exclude conflict between classes)

I just moved my Tag module to same place where other 4 K2 Content modules are and even those 4 lost a little bit of its styling. Not completely, some half-half results. And of course Tag module still doesnt pick classes from K2 CSS (same CSS those 4 K2 content modules use all the time)

I have to ask again. Is it even theoretically possible for modules to pick some parts of CSS, ignore other parts in same file ?
I beleive it is not, but such effects i get.

I mean modules HTML part of code is OK, CSS is OK. What is wrong.


Template it is not, i checked with one of the Joomla default.

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

  • BBC
  • BBC's Avatar Topic Author
  • Offline
  • Platinum Member
More
12 years 1 month ago #113050 by BBC
Replied by BBC on topic Re: K2 Tools - Tag cloud - Styling
JS conflicts is it not. I disabled all modules that call JS scripts, disabled/enabled K2 JS. Plus implemented this hack for K2 jQuery.

code.google.com/p/getk2/issues/detail?id=533

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

  • Krikor Boghossian
  • Krikor Boghossian's Avatar
  • Offline
  • Platinum Member
More
12 years 1 month ago #113051 by Krikor Boghossian
Replied by Krikor Boghossian on topic Re: K2 Tools - Tag cloud - Styling
Unfortunately I cannot help you with Css4K2. This plugins is not developed by us and I have never used it personally so I do not have any experience on it.

I am not sure you really need this plugin, why don't you try disabling this plugin and moving the k2.css file to your template's /css folder.

For different instances and views of the modules you can simply use the module class suffix.

As for the JS you can select from the backend to work with the remote 1.8 version ( although I think this has been fixed ).

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

  • BBC
  • BBC's Avatar Topic Author
  • Offline
  • Platinum Member
More
12 years 1 month ago #113052 by BBC
Replied by BBC on topic Re: K2 Tools - Tag cloud - Styling
I dont use is foremost for modules, but for K2 categories styling. Then also for modules too.

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

  • BBC
  • BBC's Avatar Topic Author
  • Offline
  • Platinum Member
More
12 years 2 weeks ago - 12 years 2 weeks ago #113053 by BBC
Replied by BBC on topic Re: K2 Tools - Tag cloud - Styling
I fixed it by simply moving small part of code for K2 Tags from my custom k2.css, to template.css.

But it should be fixed in some way. Both template.css and my custom k2.css (name_style.css) are called on homepage (with 100% correct paths), and classes from k2.css are not taken. So, so, so strange. I dont have any explanation for this.

I doubt now it is problem with Css4K2 plugin.

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

  • Krikor Boghossian
  • Krikor Boghossian's Avatar
  • Offline
  • Platinum Member
More
12 years 2 weeks ago #113054 by Krikor Boghossian
Replied by Krikor Boghossian on topic Re: K2 Tools - Tag cloud - Styling
I have read some great reviews about the Css4K2 plugin but I have never used it myself.

To be honest though, since the tag cloud is working without the plugin and it is working 100% correctly with the default templates I am sure the problem lies elsewhere.

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

  • BBC
  • BBC's Avatar Topic Author
  • Offline
  • Platinum Member
More
12 years 2 weeks ago - 12 years 2 weeks ago #113055 by BBC
Replied by BBC on topic Re: K2 Tools - Tag cloud - Styling
As i wrote i my new topic about related items, put also Css4K2 in K2 core. It is one php file with few lines of code. Anyway Jiilko doesnt charge for this plugin.

It is more than stupid to leave such important plugins in hands of only one man. All respect for Jiilko, but we wait to long to get versions of plugins for new versions of Joomla.

And i am talking about small plugins, nothing as many thousands lines of code.

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


Powered by Kunena Forum