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.
Related
I can create a standard Joomla template in my sleep, but recently I had a client come to me who wants a vertically scrolling, single page site. I whipped up an HTML/CSS mockup that functions beautifully but I have a question re: converting it to a Joomla template:
Do I just create a single article in Joomla that contains all of the content for the single page, and then create menu items that link to the section divs?
Many thanks,
Cynthia
yes I think that good , also you can make all items in "index.php" in template folder and make menu items link to divs by "#" plus ID .
you can add all items you want as module and you can use component in modules plugin lik :
http://extensions.joomla.org/extensions/core-enhancements/coding-a-scripts-integration/embed-a-include/18121
Hope that help you
You'd be better to insert the content via creating a bespoke module or component - putting code in the WYSIWYG area kind of defeats the point of using a CMS at all - someone with no coding skills has to be able to update the site and not accidentally delete the layout.
I'd perhaps question why it needs it to be in Joomla at all, though. It doesn't sound like it will be benefiting from many of its features.
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!
I am having urls displayed with category and article ids such as http://www.mysite.com/54-mycategory/59-myarticle. In order to remove the numbers, I had to manually create menu items for each article - which then successfully omits the numbers from the urls.
This is perhaps not the right way to create SEF urls as this requires extra work to create the menu items. Does anyone know of a better way to do this? I couldn't find any extensions that can do this effectively.
No, this is how Joomla default routing works in both 2.5 and 3.x versions.
You need to either create a menu item per each article, as you did, or install a 3rd party plugin to handle it.
In your case I guess that most SEF extensions in the Joomla Extension Directory will do. I had good experiences with SH404SEF (a very complete solution) and Simple Custom Router (a very basic plugin - intended for coders)
I need to make something like gallery of magazine covers in joomla, and after clicking one image, it should open a page, where viewer would see an image of cover (that he could open in full size) and table of contents with links to some articles. Administrator should also be able to (reasonably) easily add a new covers with content to a gallery. I'm more like a Drupal guy, so I'm asking Joomla guys - what would be the best/easiest way to achieve this (including using extensions etc)? :)
You should be able to do that within the standard Joomla framework. In this case -
Have a main category that each issue would be a subcategory of.
Each issue of the magazine would be a new category, the magazine cover would be the image for that category.
Add the content as articles in the appropriate category
Display the parent category to get the listing of each issue.
Clicking the category would then display a list of links to the articles within the category.
This can definitely be accomplished with the K2 extension, but you can probably do it within the Joomla category/article framework with some simple template overrides.
To suit your needs, you will be best off using a Photo Gallery component and changing the link from opening an iframe/full size image, to an article OR a Portfolio component which I think might be the easier option.
One of my personal favorites is BT Content Slider. I have used it on multiple pages and adapted the code to suit our own needs and it works like a charm. Would also recommend it for you too.
I am presently working on a Joomla website having ecommerce functionality. I am a beginner in joomla. I need to modify my virtuemart theme according to my own css and html. How is it possible?
Simply head into your_joomla_directory/components/com_virtuemart/themes/your_theme_folder/theme.css
theme.css edits virutemart elements only, you may also have to edit your main template css file to get the full desired effect.