Keyword

Hide a few icons In the "Quick K2 icons"

  • Django
  • Django's Avatar Topic Author
  • User
More
9 years 5 months ago #149296 by Django
Hi

How can I hide a few icones in the admin "Quick K2 icons" ?

I would like to remove the last lihne : K2 documentation - Extend K2 - K2 community - JoomlaReader.

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

  • Krikor Boghossian
  • Krikor Boghossian's Avatar
  • User
More
9 years 5 months ago #149311 by Krikor Boghossian
Replied by Krikor Boghossian on topic Hide a few icons In the "Quick K2 icons"
Hello,

It is possible to override the mod_k2_quickicons module in the administrator template.
You can follow the exact same method as with the frontend modules.

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

  • Django
  • Django's Avatar Topic Author
  • User
More
9 years 5 months ago - 9 years 5 months ago #149326 by Django
Replied by Django on topic Hide a few icons In the "Quick K2 icons"
Thanks krikor

That's what I did, in /administrator/modules/mod_k2_quickicons/tmpl/default.php.

I removed a few parts of the code concerning the icons I don't want to display.

( I try to send this message without the code I added first, because I get the message :
"Spam attempt detected. The message has been rejected. ")

The end of this file is :
<div style="clear: both;"></div>
  <?php endif; ?>
</div>

But, after this modification, I have a blank page instead of the admin.

2 surprises too :
- I have no link for K2 in the admin menu , just the Quickicons
- I installed the french language for K2, but it stays in english (the rest of the admin is in french)

Joomla 2.5.28.
Last edit: 9 years 5 months ago by Django.

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

  • Django
  • Django's Avatar Topic Author
  • User
More
9 years 5 months ago - 9 years 5 months ago #149328 by Django
Replied by Django on topic Hide a few icons In the "Quick K2 icons"
Finally, I could make it working ... but I don't know why.

I just kept the
<div class="icon-wrapper">

</div>

If you have and idea why I have no link to K2 in the admin menu, and why the french language file is not found by K2 ...
Last edit: 9 years 5 months ago by Django.

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

  • Krikor Boghossian
  • Krikor Boghossian's Avatar
  • User
More
9 years 5 months ago #149354 by Krikor Boghossian
Replied by Krikor Boghossian on topic Hide a few icons In the "Quick K2 icons"
Is is possible that you broke some PHP code?
An end/ if possibly? Enabling error reporting can be really helpful.

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

  • Django
  • Django's Avatar Topic Author
  • User
More
9 years 5 months ago #149359 by Django
Replied by Django on topic Hide a few icons In the "Quick K2 icons"
The problem of no link in the admin menu and french language file not working were already there before I made modifications in the Quiicons module file. So I didn't break any php file.

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

  • Krikor Boghossian
  • Krikor Boghossian's Avatar
  • User
More
9 years 5 months ago #149361 by Krikor Boghossian
Replied by Krikor Boghossian on topic Hide a few icons In the "Quick K2 icons"
Can you try reinstalling the language pack?
Also you can send PHP via a Github gist.

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

  • Django
  • Django's Avatar Topic Author
  • User
More
9 years 5 months ago #149385 by Django
Replied by Django on topic Hide a few icons In the "Quick K2 icons"
After re-install of the FR file, K2 speaks french ! Thanks Krikor.

Still no link to K2 in the menu, but this is less important, because we have the quick icons.

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

  • Krikor Boghossian
  • Krikor Boghossian's Avatar
  • User
More
9 years 5 months ago #149387 by Krikor Boghossian
Replied by Krikor Boghossian on topic Hide a few icons In the "Quick K2 icons"
Reinstalling K2 fixes this issue. Just make sure that you created overrides for the quickstart icons module.

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

  • Django
  • Django's Avatar Topic Author
  • User
More
9 years 5 months ago #149389 by Django
Replied by Django on topic Hide a few icons In the "Quick K2 icons"
And it will not delete the 2 items I already made, I suppose ?

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

  • Krikor Boghossian
  • Krikor Boghossian's Avatar
  • User
More
9 years 5 months ago #149404 by Krikor Boghossian
Replied by Krikor Boghossian on topic Hide a few icons In the "Quick K2 icons"
If you did not use overrides, just like the frontend, your edits will be lost. It is the exact the same method but instead of the frontend template you add the overrides to the isis (what a terrible name) template.

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

  • Django
  • Django's Avatar Topic Author
  • User
More
9 years 5 months ago #149409 by Django
Replied by Django on topic Hide a few icons In the "Quick K2 icons"
I'm afraid I don't know in which file I can put this override.

And this site is under Joomla 2.5, so the template is Bluestork.

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

  • Krikor Boghossian
  • Krikor Boghossian's Avatar
  • User
More
9 years 5 months ago #149411 by Krikor Boghossian
Replied by Krikor Boghossian on topic Hide a few icons In the "Quick K2 icons"
It's the exact same method.
You need to do what you normally do with eg: mod_k2_content with /administrator/modules/mod_k2_quickicons.

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

  • Django
  • Django's Avatar Topic Author
  • User
More
9 years 5 months ago #149412 by Django
Replied by Django on topic Hide a few icons In the "Quick K2 icons"
I think I already did this kind of override, but I don't remember how. Il will study that later.

Thanks for your help Krikor.

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

  • Krikor Boghossian
  • Krikor Boghossian's Avatar
  • User
More
9 years 5 months ago #149414 by Krikor Boghossian

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


Powered by Kunena Forum