Using Joomla K2 Joomla Framework - joomla

I am quite new to Joomla, especially the K2 Framework. I would like to make a neat magazine website in Joomla. What I have done is, I have already imported all contents from Joomla! Content into K2.
What I need to do now is to arrange my categories and their articles like there are in this link or any other well arranged magazine website.
I do not know how to go about creating sub-templates and what they would look like. I have read several documents including the documentation but I don't get them so well to pave my ways
Anybody who knows what I need please help.

Maybe you must override the k2 module. So you must make a lot of module position and use k2 content module to show different layout in same page.
You must download K2 template override package,
follow this link to download: http://getk2.org/documentation/tutorials/77-k2-template-override-package-comparison
You can use k2 content module.
if you want creating sub-template for k2 content module, you must copy default folder on the /template/Your-template/html/mod_k2_content/default and you must rename the new folder.
After renaming the new folder you can check the sub-template. Add the k2 content module from your admin page and you will see select sub-template option, click it and you will see new sub-template
The sub-template name same with the name of new folder. And if you want to change style you can edit default.php in the new folder. :)

If you want to build something similar to this website you will need to make use of modules that allow you to display K2 content.
There are far too many to mention, but K2 itself installs K2 Content and K2 Tools. Try enabling those modules and experimenting with them. They offer a lot of options to display K2 items in various ways.
Source: I've built my fair share of K2 powered Joomla sites. :)

You need to create overrides of K2 component and its module.
Copy the component files from
components/com_k2/templates and paste it to the following path templates/{yourtemplate}/html/com_k2. Here, you can modify all the files and their layout as per your requirement or design.
Copy the module files from modules/mod_k2_tools/default folder and paste it the path templates/{yourtemplate}/html/mod_k2_tools . Similarly, you can copy other modules of k2 as per your need. The other modules are as:
mod_k2_comments
mod_k2_content
mod_k2_user
mod_k2_users
This way, you can create your own layout for the component and during any Joomla update it will remain as it is. Refer the following links for more details:
https://docs.joomla.org/Layout_Overrides_in_Joomla
https://getk2.org/documentation/tutorials/174-templating-with-k2-and-the-concepts-of-sub-templates
Hope this helps!

Related

Can I make an Archive Page Template in Joomla! 1.5?

I am not pertaining to the category list of archives, but for the ARTICLE PAGE itself once it is archived.
Like a "single-{post_type}.php" on a Wordpress template where {post_type} is "archive".
Thanks for helping.
Yes you can,
Joomla archive article uses a separate layout in com_content component.
If you're planning to create a custom styles for archive articles you just need to do template override for com_content.
In Joomla articles are managing with a component called com_content.
you have to do a copy of components/com_content/views/archive/ files to your template folder. templates/your_templates/html/com_content/views/archive/
This way you can create custom styles for the archive articles. Also Please consider an update for your Joomla Version 1.5 is already dead.
Hope its helps..

How can I add PHP to a Joomla menu item?

Here's what I'm trying to do:
In Joomla 3.1, I'm using the K2 component to build a full content-driven news website.
All is well, but I just don't like the K2 Login module, and therein lies the rub. That module automatically generates two key links:
• Add Item
• My Page
I want to unpublish the login module and add both of these links to a standard Joomla menu. It's easy to add the "add item" link because it's essentially static.
But the "My Page" link is dynamic. I've found the PHP code that generates it:
<?php echo JText::_('My Page'); ?>
But I don't know how to make a plain old Joomla menu item -- as in, one that I add through the menu manager -- to generate that code.
Note: It's important that I be able to use the Joomla menu structure because I'm also using Joomla's access control to hide or show these buttons. Meaning, I've added a "contributor" usergroup, and I only want them to see these links.
Any bright ideas would be much appreciated! Thank you!
You should go to the template you are currently using, in their you create a html folder.
In that folder you create a mod_menu folder.
Than you got your Joomla root > modules > mod_menu.
And copy files which are inside and drop them in the html > mod_menu folder.
Now you can edit the mod_menu to your favors with a rewrite.
http://docs.joomla.org/How_to_override_the_output_from_the_Joomla!_core
Hope this helps you.

Add component into Article?

I need to add a component into my Joomla articles.example(i have create a article in joomla ..in this article i needed added image gallery.. that gallery functions are in one joomla component..) how to create it?
There are a couple of ways to do this. First, the easiest is to get a plugin specifically designed to do this. I prefer Simple Image Gallery Pro. There is a free version as well http://extensions.joomla.org/extensions/photos-a-images/photo-gallery/1468. With this plugin, you simply upload your images to a folder for the gallery you wish to create, then reference that folder in the article you want the gallery to appear in with {gallery}myphotos{/gallery}
You can also replace the Joomla article with the extension K2. It has galleries within content items built in. It uses Simple Image Gallery and is written by the same developers.
Last, you can also use a plugin that allows you to load components within an article - http://extensions.joomla.org/extensions/2723/details.
EDIT
I forgot one. Last, last some of the good image gallery components also come with modules that allow you to display galleries in a module position. You would need to have a menu item or advance module manager in order to assign the module to the correct article, but it would give you a lot of flexibility in where you place the gallery.

How to automatically generate a menu item when creating a K2 content?

Is there a way to automatically generate a menu item when creating a K2 content?
Might not be exactly what you're after but you could just use the K2 content module to display a 'menu' by overriding it and outputting an HTML unordered list?
I don't know of a K2 specific extension to do it, but it would be pretty simple to modify a Joomla Section/Category/Article based extension to work with K2.
This extension looks like it would be a good candidate- http://extensions.joomla.org/extensions/structure-a-navigation/menu-systems/tree-menus/11452
The other option would be to fake a menu by using the K2 content module in a CSS styled list.
I found this one and i'm totally happy with it! Work with both normal joomla articles and k2 ones!
http://www.nonumber.nl/extensions/addtomenu
You can maybe try JLinker Mass Menu Link Generator: http://www.jlinker.com
It works with Joomla 2.5 and Joomla 3.x, it's free and it allows you to generate links for Joomla articles and categories. There are also extensions to generate links for K2 and Virtuemart.

How to have custom sidebar content per article in Joomla?

I'm in the process of porting an existing website to Joomla. Most pages of this website consist of a main content area and a sidebar containing additional items relating to the main content, such as (in-page) links, images, additional information, etc.
In Joomla, the main page content would probably be an article, but I'm not sure what would be the best way to create the sidebar content in Joomla.
Examples of pages-with-sidebar:
http://www.aikikan.nl/en_watisaikido
http://www.aikikan.nl/dojo?id=2
I'm creating a custom template for this website, so any solutions that require modifying the template are fine as well. What would be the best way to set this up?
Keep the content of each sidebar in an article and then assign it to a module by means of the article-as-module extension. You can then control the scope for each module (i.e. choose menu postions for which it will be shown) in the admin interface.
There is an extension called meta mod which is perfect for this sort of thing. It allows you to show modules based on any condition you can evaluate with PHP

Resources