Giter Club home page Giter Club logo

k2-show-category-language-in-dropdown's Introduction

Joomla & K2

Show category language in Dropdown (admin template override)

If you ever done a K2 site with multi-language, especially one where the category names are written the same in all languages, this will help a lot.

Examples of categories would be "posts", or the name of the company or division, etc.

Just go to extensions -> templates -> templates, select "Administrator" in the template area dropdown, and click the title of the template you are using (most likely "isis"). Now go to the tab "create override", and under components, click com_k2, then click on "item". Repeat the process for "items".

Now FTP to the folder /administrator/templates/YOUR_TEMPLATE/html/com_k2 and you will see two folders, "item" and "items", with a "default.php" file on each.

Edit the file at the folder "item" and place the code from the "item.php" file from this repository at the very end of the file. Repeat the same for "items".

Warning: This is very crude code, from a non-programmer just needing to solve a problem. It does solve the problem in a very simple way, but if anyone can do better and cleaner code, your contribution will be gladly accepted.

k2-show-category-language-in-dropdown's People

Watchers

Saurabh Shah avatar James Cloos avatar Alex Stylianos avatar Jonathan Shroyer avatar Jonathan avatar JoeJoomla avatar Gaurav Jain avatar Eoin avatar Brian Peat avatar

k2-show-category-language-in-dropdown's Issues

Added to K2 core (from v2.10+)

Just a heads up that this is already part of K2 core (from v2.10+).

Example: https://jmp.sh/4NDEc9L

It's rendered server-side so it will appear anywhere you have a category dropdown. Categories assigned to all languages won't display something next to their name.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.