COMMUNITY FORUM
Search Results (Searched for: k2 Tag)
- tintinrobari
26 May 2011 16:45
multisites + multicategories and tags? was created by tintinrobari
multisites + multicategories and tags?
Category: English K2 Community
My aim:
One db + Joomla + K2 categories/tags shared amongst multiple sites
e.g. article1 in category1 and category2 and tagged with tag1
site1 menuA shows article1 by selecting category1
site2 menuB shows article1 by selecting tag1 etc.
With extension JMS Multisites, only Joomla articles are shared but an article can only be in one category.
Real example: A Computer Shop client has a sale. This article goes in categories Town-Tech-ComputerShop-News (to dispay on ComputerShop's own site) and Computers-Sales (to display on a Technology site under sales), etc.
Can you suggest a work-around solution? Is Nooku working on this? Should I duplicate articles in different categories for now and smooth this out later? Thanks.
One db + Joomla + K2 categories/tags shared amongst multiple sites
e.g. article1 in category1 and category2 and tagged with tag1
site1 menuA shows article1 by selecting category1
site2 menuB shows article1 by selecting tag1 etc.
With extension JMS Multisites, only Joomla articles are shared but an article can only be in one category.
Real example: A Computer Shop client has a sale. This article goes in categories Town-Tech-ComputerShop-News (to dispay on ComputerShop's own site) and Computers-Sales (to display on a Technology site under sales), etc.
Can you suggest a work-around solution? Is Nooku working on this? Should I duplicate articles in different categories for now and smooth this out later? Thanks.
- Lefteris
25 May 2011 17:54
Is there a tool to allow k2 Items Screen to display tags against Items? was created by Lefteris
Is there a tool to allow k2 Items Screen to display tags against Items?
Category: English K2 Community
I'm wondering if anyone has come across anything that makes managing Tags easier? I am managing a site of 300+ pages and many of them are using tags. Trouble is, it's impossible to see (i) which items have been tagged and (ii) what tags are being used - without opening each individual Item!
- Chris Rowinski
24 May 2011 21:52
Beamsandstruts.com - K2 Powered was created by Chris Rowinski
Beamsandstruts.com - K2 Powered
Category: English K2 Community
Beams and Struts
www.beamsandstruts.com
I've been using K2 for a little while now but this was the first site where K2 was truly at the core. The site has become highly popular since it was launched a year ago and currently received almost 10,000 unique hits per month. There are other Joomla components / modules running on the site but K2 is the mother of them all :)
I fear, however, that it may be outgrowing either K2 or this newbie developer :) Would love to hear your feedback/suggestions on the site - I'm also looking around for a K2 developer to partner on this project as my time and availability are quickly diminishing.
Next Phase Projects:
- Archives section based on TAGS
Sorry for posting an ad in a feedback post, I'm more interested in thoughts / suggestions than anything else.
Cheers,
Chris
www.beamsandstruts.com
I've been using K2 for a little while now but this was the first site where K2 was truly at the core. The site has become highly popular since it was launched a year ago and currently received almost 10,000 unique hits per month. There are other Joomla components / modules running on the site but K2 is the mother of them all :)
I fear, however, that it may be outgrowing either K2 or this newbie developer :) Would love to hear your feedback/suggestions on the site - I'm also looking around for a K2 developer to partner on this project as my time and availability are quickly diminishing.
Next Phase Projects:
- Archives section based on TAGS
Sorry for posting an ad in a feedback post, I'm more interested in thoughts / suggestions than anything else.
Cheers,
Chris
- bwtDesign
23 May 2011 22:07
Replied by bwtDesign on topic Tags as a dropdown menu
Tags as a dropdown menu
Category: English K2 Community
Go to k2 global parameters and scroll about 2/3s of the way down. You'll see an option that says:
"Tagging System"
Choose "Selection-based tagging"
"Tagging System"
Choose "Selection-based tagging"
- Yamin Zakaria
22 May 2011 19:49
Make "Children Categories" vanish was created by Yamin Zakaria
Make "Children Categories" vanish
Category: English K2 Community
Hi
I was following another thread to make "children category" vanish under the main category.
community.getk2.org/forum/topics/remove-children-categories
As per the advice I edited the "category.php" file ('templates/"yourtemplate"/html/com_k2/templates/default/category.php') and edited out the line "itemListCategories" under h3 - but then all the items (everything) vanished under the main category.
So I went back into the category.php file removed the comments tag but still same situation. Can I resent this file somehow?
I know category.php also exists under the /home/domain/public_html/components....directory, can I use that copy it over the current the directory under 'templates/"yourtemplate"/html/com_k2/templates/default/category.php'
Regards
Yamin
I was following another thread to make "children category" vanish under the main category.
community.getk2.org/forum/topics/remove-children-categories
As per the advice I edited the "category.php" file ('templates/"yourtemplate"/html/com_k2/templates/default/category.php') and edited out the line "itemListCategories" under h3 - but then all the items (everything) vanished under the main category.
So I went back into the category.php file removed the comments tag but still same situation. Can I resent this file somehow?
I know category.php also exists under the /home/domain/public_html/components....directory, can I use that copy it over the current the directory under 'templates/"yourtemplate"/html/com_k2/templates/default/category.php'
Regards
Yamin
- Dora Micha
21 May 2011 23:15
Replied by Dora Micha on topic Accordion categories menu
Accordion categories menu
Category: English K2 Community
Hi, Alexandr, thank you for this great extension of K2Tools,
I have already managed to make your code to work for me (*), but i would like to ask you and of course anybody who could help, and as a further improvement of your work:
" How we can make this menu to stays open when the user loads a selected category"?
(*)This is what i use to make it work
1. Step is to replace the code as it mentioned before
2. Step Add to your index.php file in the <head> Tag the
<link href="<?php echo $this->baseurl ?>/templates/YourTemplate/css/style.css" rel="stylesheet" type="text/css" media="screen" />
and the style.css in your CSS Folder of your Template
3. Step in order to load JQuery i used the Plugin: SC JQuery
and i have put the code from menu.js
I have already managed to make your code to work for me (*), but i would like to ask you and of course anybody who could help, and as a further improvement of your work:
" How we can make this menu to stays open when the user loads a selected category"?
(*)This is what i use to make it work
1. Step is to replace the code as it mentioned before
2. Step Add to your index.php file in the <head> Tag the
<link href="<?php echo $this->baseurl ?>/templates/YourTemplate/css/style.css" rel="stylesheet" type="text/css" media="screen" />
and the style.css in your CSS Folder of your Template
3. Step in order to load JQuery i used the Plugin: SC JQuery
and i have put the code from menu.js
- Raad Umar
21 May 2011 19:52
Items from categories list (Menu) not shown was created by Raad Umar
Items from categories list (Menu) not shown
Category: English K2 Community
Hi everybody.I have a strange problem. I have published a website using the categories list (Menu) component. In one specific category there are 21 items published (The item counter also indicates 21 articles) but when I select this category only 17 are displayed.I first thought that something went wrong with one of the missing items. So I deleted it and rewrote it. Now this article is shown, but another article that was shown previously disappeared.These missing articles are still in the system and can be reached through any other way (Tag cloud for example)I don't know if it's related, but when this category is selected some articles are listed side by side while others are listed one over the other.Help would really be appreciatedThank you :-)About the system:PHP Built on: Linux websrv 2.6.32-30-server #59-Ubuntu SMP Tue Mar 1 22:46:09 UTC 2011 x86_64Database Version: 5.1.41-3ubuntu12.10Database Collation: utf8_general_ciPHP Version: 5.3.2-1ubuntu4.9Web Server: Apache/2.2.14 (Ubuntu)Web Server to PHP interface: apache2handlerJoomla! Version: Joomla! 1.5.22 Stable [ senu takaa ama woi ] 04-November-2010 18:00 GMT K2 Version: v2.4.1
- Christopher W
21 May 2011 19:44
Replied by Christopher W on topic Changes with K2 v2.5
Changes with K2 v2.5
Category: English K2 Community
K2 (2.4) and JOOMLA 1.6
Compatibility Intergration ISSUES:
Check
Result
System - K2
Not Installed - Enabled
User - K2
Not Installed - Enabled
Search - K2
Not Installed - Enabled
Third-party plugin information
Check
Result
AllVideos Plugin
Not Installed
Simple Image Gallery PRO Plugin
Not Installed
ISSUE 1 A/:
PODCAST MANGER:
Content Plugin - The content plugin allows users to add a podcast player directly into an article by adding {podcast title} into the article editor
ISSUE: WILL NOT ADD PODCAST PLAYER DIRECTLY INTO AN ARTICLE
Sub issue 1a): (this plug-in Podcast Manager functions similar to and like “joomslide: plug-in by Joomlaworks) (Question: does “joomslide module” work with Joomla 1.6?)
Not yet I guess? Bring it on, please… Dutchman!
(in K2? )- [In 1.6 joomla editor, without K2, the
It does not integrate into the article under K2 editor …
Podcast Manager is fuctioning playing on website out of modules, so it works with Joomla 1.6! Is the issue is integration to K2! I think so, …?
ISSUES:#1B)
1)K2 parameters box in catagories not working.
DESCRIPTION OF PROBLEM: parameters box:
K2 functionality issue with Joomla 1.6
ISSUES #2A)
2) CONTNET MODULE
CONTNET MODULE WILL NOT SAVE AND PUBLISH!
IT SHOWS GREEN PUBLISHED ICON, DOES NOT APPEAR, WILL NOT SELECT POSITION TO PAGE,
content module problem, it WILL NOT CHOOSE A POSITION.
DESCRIPTION OF PROBLEM:
2b)Add items will not select on item
item page appears
will not click it on and run it ...
RESULT of the following:
1)K2 parameters box in catagories not working.
DESCRIPTION OF PROBLEM: parameters box:
ISSUES #2
2) CONTNET MODULE
CONTNET MODULE WILL NOT SAVE AND PUBLISH!
IT SHOWS GREEN PUBLISHED ICON, DOES NOT APPEAR, WILL NOT SELECT POSITION TO PAGE,
content module problem, it WILL NOT CHOOSE A POSITION.
DESCRIPTION OF PROBLEM:
2b)Add items will not select on item
item page appears
will not click it on and run it ...
RESUTL
Podcast Manager Editor Plugin - Integrates into the “article editor” = [(now in (K2 /version 2.4)/ Joomla 1.6)] , it will not integrate) by adding a "Podcast" button, allowing the user to select a podcast to insert into an article,
K2 functionality issue with Joomla 1.6
Joomla issue
Front page Slide show plugin
Version: Latest - downloaded May 21, from Joomlaworks
Not interlining
Receive this
JInstaller: :Install: Cannot find XML setup file
Same for Simple Image Gallery Pro
K2: version (2.4?). Version downloades is DNL ( … are you comfortable working with product underdevelopement? Yes ! This version is installed and working, with issues
Minor issues. Joomlaworks does work with joomla,
(2.4)with JOOMLA 1.6 INSTALLED: Basic functionality result is positive!
However, iSSUES:#1K2 (2.4) and jOOMLA 1.6
K2 Users , there is no selection key
# (box) Name / usernam
No box to select user
Is this correct
Issue 1AAA)
Is this correct
Why does is say not installed but enables?
K2 Plugins
HOPE TO Provide ?
Compatibility Intergration ISSUES:
Check
Result
System - K2
Not Installed - Enabled
User - K2
Not Installed - Enabled
Search - K2
Not Installed - Enabled
Third-party plugin information
Check
Result
AllVideos Plugin
Not Installed
Simple Image Gallery PRO Plugin
Not Installed
ISSUE 1 A/:
PODCAST MANGER:
Content Plugin - The content plugin allows users to add a podcast player directly into an article by adding {podcast title} into the article editor
ISSUE: WILL NOT ADD PODCAST PLAYER DIRECTLY INTO AN ARTICLE
Sub issue 1a): (this plug-in Podcast Manager functions similar to and like “joomslide: plug-in by Joomlaworks) (Question: does “joomslide module” work with Joomla 1.6?)
Not yet I guess? Bring it on, please… Dutchman!
(in K2? )- [In 1.6 joomla editor, without K2, the
It does not integrate into the article under K2 editor …
Podcast Manager is fuctioning playing on website out of modules, so it works with Joomla 1.6! Is the issue is integration to K2! I think so, …?
ISSUES:#1B)
1)K2 parameters box in catagories not working.
DESCRIPTION OF PROBLEM: parameters box:
K2 functionality issue with Joomla 1.6
ISSUES #2A)
2) CONTNET MODULE
CONTNET MODULE WILL NOT SAVE AND PUBLISH!
IT SHOWS GREEN PUBLISHED ICON, DOES NOT APPEAR, WILL NOT SELECT POSITION TO PAGE,
content module problem, it WILL NOT CHOOSE A POSITION.
DESCRIPTION OF PROBLEM:
2b)Add items will not select on item
item page appears
will not click it on and run it ...
RESULT of the following:
1)K2 parameters box in catagories not working.
DESCRIPTION OF PROBLEM: parameters box:
ISSUES #2
2) CONTNET MODULE
CONTNET MODULE WILL NOT SAVE AND PUBLISH!
IT SHOWS GREEN PUBLISHED ICON, DOES NOT APPEAR, WILL NOT SELECT POSITION TO PAGE,
content module problem, it WILL NOT CHOOSE A POSITION.
DESCRIPTION OF PROBLEM:
2b)Add items will not select on item
item page appears
will not click it on and run it ...
RESUTL
Podcast Manager Editor Plugin - Integrates into the “article editor” = [(now in (K2 /version 2.4)/ Joomla 1.6)] , it will not integrate) by adding a "Podcast" button, allowing the user to select a podcast to insert into an article,
K2 functionality issue with Joomla 1.6
Joomla issue
Front page Slide show plugin
Version: Latest - downloaded May 21, from Joomlaworks
Not interlining
Receive this
JInstaller: :Install: Cannot find XML setup file
Same for Simple Image Gallery Pro
K2: version (2.4?). Version downloades is DNL ( … are you comfortable working with product underdevelopement? Yes ! This version is installed and working, with issues
Minor issues. Joomlaworks does work with joomla,
(2.4)with JOOMLA 1.6 INSTALLED: Basic functionality result is positive!
However, iSSUES:#1K2 (2.4) and jOOMLA 1.6
K2 Users , there is no selection key
# (box) Name / usernam
No box to select user
Is this correct
Issue 1AAA)
Is this correct
Why does is say not installed but enables?
K2 Plugins
HOPE TO Provide ?
- Christopher W
21 May 2011 19:36
Replied by Christopher W on topic K2 Does Not Install on Wamp 2.1 Joomla Version 1.6.3
K2 Does Not Install on Wamp 2.1 Joomla Version 1.6.3
Category: English K2 Community
K2 (2.4) and JOOMLA 1.6
IT IS PHYSICALLY ON THE WEBSITE<UP< RUNNING<BUT NOT SURE, NO previous K2 experience ..
TO: William and all
Compatibility Intergration ISSUES: K2 functionality issue with Joomla 1.6
Joomla issue Front page Slide show plugin Version: Latest - downloaded May 21, from Joomlaworks Not interlining Receive this JInstaller: :Install: Cannot find XML setup file Same for Simple Image Gallery Pro
K2: version (2.4?). Version downloades is DNL ( … are you comfortable working with product underdevelopement? Yes ! This version is installed and working, with issues Minor issues. Joomlaworks does work with joomla, (2.4)with JOOMLA 1.6 INSTALLED: Basic functionality result is positive!
However, iSSUES:#1K2 (2.4) and jOOMLA 1.6
K2 Users , there is no selection key # (box) Name / usernam No box to select user Is this correct
Issue 1AAA) Is this correct Why does is say not installed but enables? K2 Plugins Check Result System - K2 Not Installed - Enabled User - K2 Not Installed - Enabled Search - K2 Not Installed - Enabled Third-party plugin information Check Result AllVideos Plugin Not Installed Simple Image Gallery PRO Plugin Not Installed
ISSUE 1 A/: PODCAST MANGER: Content Plugin - The content plugin allows users to add a podcast player directly into an article by adding {podcast title} into the article editor ISSUE: WILL NOT ADD PODCAST PLAYER DIRECTLY INTO AN ARTICLE
Sub issue 1a): (this plug-in Podcast Manager functions similar to and like “joomslide: plug-in by Joomlaworks) (Question: does “joomslide module” work with Joomla 1.6?) Not yet I guess? Bring it on, please… Dutchman!
(in K2? )- [In 1.6 joomla editor, without K2, the Podcast Manager Editor Plugin - Integrates into the “article editor” = [(now in (K2 /version 2.4)/ Joomla 1.6)] , it will not integrate) by adding a "Podcast" button, allowing the user to select a podcast to insert into an article, It does not integrate into the article under K2 editor … Podcast Manager is fuctioning playing on website out of modules, so it works with Joomla 1.6! Is the issue is integration to K2! I think so, …?
ISSUES:#1B) 1)K2 parameters box in catagories not working. DESCRIPTION OF PROBLEM: parameters box:
K2 functionality issue with Joomla 1.6 ISSUES #2A) 2) CONTNET MODULE CONTNET MODULE WILL NOT SAVE AND PUBLISH! IT SHOWS GREEN PUBLISHED ICON, DOES NOT APPEAR, WILL NOT SELECT POSITION TO PAGE, content module problem, it WILL NOT CHOOSE A POSITION. DESCRIPTION OF PROBLEM: 2b)Add items will not select on item item page appears will not click it on and run it ... RESULT of the following:
1)K2 parameters box in catagories not working. DESCRIPTION OF PROBLEM: parameters box:
ISSUES #2 2) CONTENT MODULE - CONTENT MODULE WILL NOT SAVE AND PUBLISH! IT SHOWS GREEN PUBLISHED ICON, DOES NOT APPEAR, WILL NOT SELECT POSITION TO PAGE, content module problem, it WILL NOT CHOOSE A POSITION. DESCRIPTION OF PROBLEM: 2b)Add items will not select on item item page appears will not click it on and run it ... RESUlt
thanks for your help William
if you go to the site K2 is not on the front GO site>Info &Links Menu Bar> GO K2> then you will see K2 Menu bar /
all set up as a test /
very interested in hearing what you say,
I am very inexperienced,
You, on the other hand seem quite experienced ,
anything from you would be appreciated
I did not even know how to transport Joom files over to K2?
This email address is being protected from spambots. You need JavaScript enabled to view it.
site: www.abcenglishbrazil.com
IT IS PHYSICALLY ON THE WEBSITE<UP< RUNNING<BUT NOT SURE, NO previous K2 experience ..
TO: William and all
Compatibility Intergration ISSUES: K2 functionality issue with Joomla 1.6
Joomla issue Front page Slide show plugin Version: Latest - downloaded May 21, from Joomlaworks Not interlining Receive this JInstaller: :Install: Cannot find XML setup file Same for Simple Image Gallery Pro
K2: version (2.4?). Version downloades is DNL ( … are you comfortable working with product underdevelopement? Yes ! This version is installed and working, with issues Minor issues. Joomlaworks does work with joomla, (2.4)with JOOMLA 1.6 INSTALLED: Basic functionality result is positive!
However, iSSUES:#1K2 (2.4) and jOOMLA 1.6
K2 Users , there is no selection key # (box) Name / usernam No box to select user Is this correct
Issue 1AAA) Is this correct Why does is say not installed but enables? K2 Plugins Check Result System - K2 Not Installed - Enabled User - K2 Not Installed - Enabled Search - K2 Not Installed - Enabled Third-party plugin information Check Result AllVideos Plugin Not Installed Simple Image Gallery PRO Plugin Not Installed
ISSUE 1 A/: PODCAST MANGER: Content Plugin - The content plugin allows users to add a podcast player directly into an article by adding {podcast title} into the article editor ISSUE: WILL NOT ADD PODCAST PLAYER DIRECTLY INTO AN ARTICLE
Sub issue 1a): (this plug-in Podcast Manager functions similar to and like “joomslide: plug-in by Joomlaworks) (Question: does “joomslide module” work with Joomla 1.6?) Not yet I guess? Bring it on, please… Dutchman!
(in K2? )- [In 1.6 joomla editor, without K2, the Podcast Manager Editor Plugin - Integrates into the “article editor” = [(now in (K2 /version 2.4)/ Joomla 1.6)] , it will not integrate) by adding a "Podcast" button, allowing the user to select a podcast to insert into an article, It does not integrate into the article under K2 editor … Podcast Manager is fuctioning playing on website out of modules, so it works with Joomla 1.6! Is the issue is integration to K2! I think so, …?
ISSUES:#1B) 1)K2 parameters box in catagories not working. DESCRIPTION OF PROBLEM: parameters box:
K2 functionality issue with Joomla 1.6 ISSUES #2A) 2) CONTNET MODULE CONTNET MODULE WILL NOT SAVE AND PUBLISH! IT SHOWS GREEN PUBLISHED ICON, DOES NOT APPEAR, WILL NOT SELECT POSITION TO PAGE, content module problem, it WILL NOT CHOOSE A POSITION. DESCRIPTION OF PROBLEM: 2b)Add items will not select on item item page appears will not click it on and run it ... RESULT of the following:
1)K2 parameters box in catagories not working. DESCRIPTION OF PROBLEM: parameters box:
ISSUES #2 2) CONTENT MODULE - CONTENT MODULE WILL NOT SAVE AND PUBLISH! IT SHOWS GREEN PUBLISHED ICON, DOES NOT APPEAR, WILL NOT SELECT POSITION TO PAGE, content module problem, it WILL NOT CHOOSE A POSITION. DESCRIPTION OF PROBLEM: 2b)Add items will not select on item item page appears will not click it on and run it ... RESUlt
thanks for your help William
if you go to the site K2 is not on the front GO site>Info &Links Menu Bar> GO K2> then you will see K2 Menu bar /
all set up as a test /
very interested in hearing what you say,
I am very inexperienced,
You, on the other hand seem quite experienced ,
anything from you would be appreciated
I did not even know how to transport Joom files over to K2?
This email address is being protected from spambots. You need JavaScript enabled to view it.
site: www.abcenglishbrazil.com
- Dan Wood
20 May 2011 19:26
best way to use K2 for multi-language sites? was created by Dan Wood
best way to use K2 for multi-language sites?
Category: English K2 Community
I'm building a website that, through JoomFish, will actually be many different sites, each with a different language:mysite.com (US english)
mysite.de (german)
mysite.com.br (portuguese)
mysite.eu (UK english)
etc.
Each language site will have its own blog, written by a different author in a different language.
The sites require
an easy way for the German author to create a translation of an English blog post and post it to the German site's blog.
the ability for any author to create a post that does not appear in other languages, i.e. my Brazilian author can write Portuguese posts that do not show up in any other language.
any English post can show up in the Brazilian website's blog
English and Portuguese must never show up in the German blog
What is the best way to set this up?
The option I'm considering is to somehow change what the Blog menu link points to in each language (using a JoomFish plugin? not sure how to do this yet). Then make the Blog links actually point to a K2 page that only shows posts for the respective author of each language. Then I'll have to format the author pages to not show info about the author, but to just behave as if they were the main blog page for that language.
Or, is there a way that I can set up multiple "blogs" for each language using K2? How do I make it so that each blog will have tags and categories in the right language?
Can anyone comment on if I'm doing this right, or if there's another way? Any suggestions are appreciated!
mysite.de (german)
mysite.com.br (portuguese)
mysite.eu (UK english)
etc.
Each language site will have its own blog, written by a different author in a different language.
The sites require
an easy way for the German author to create a translation of an English blog post and post it to the German site's blog.
the ability for any author to create a post that does not appear in other languages, i.e. my Brazilian author can write Portuguese posts that do not show up in any other language.
any English post can show up in the Brazilian website's blog
English and Portuguese must never show up in the German blog
What is the best way to set this up?
The option I'm considering is to somehow change what the Blog menu link points to in each language (using a JoomFish plugin? not sure how to do this yet). Then make the Blog links actually point to a K2 page that only shows posts for the respective author of each language. Then I'll have to format the author pages to not show info about the author, but to just behave as if they were the main blog page for that language.
Or, is there a way that I can set up multiple "blogs" for each language using K2? How do I make it so that each blog will have tags and categories in the right language?
Can anyone comment on if I'm doing this right, or if there's another way? Any suggestions are appreciated!
- Dan Wood
20 May 2011 19:00
Replied by Dan Wood on topic Show tags in back-end Items view?
Show tags in back-end Items view?
Category: English K2 Community
Ok, for the benefit of other users, in the K2 parameters there's a setting under Advanced Settings for 'Tagging System' and 'Lock Tags'
- Bryan Smith
20 May 2011 18:54
Replied by Bryan Smith on topic Filter by Tag from Admin
Filter by Tag from Admin
Category: English K2 Community
Dan, you can select tags. I believe the setting is in the K2 prefs.
- Dan Wood
20 May 2011 18:52
Replied by Dan Wood on topic Filter by Tag from Admin
Filter by Tag from Admin
Category: English K2 Community
Yes, we need a way to see posts according to tags in the back-end.
Also, when creating/editing a K2 item, there should be a way to select from existing tags to add these tags to the item, rather than just typing and hoping.
Also, when creating/editing a K2 item, there should be a way to select from existing tags to add these tags to the item, rather than just typing and hoping.
- Josh
20 May 2011 18:24
Replied by Josh on topic Limiting introtext under tag lists?
Limiting introtext under tag lists?
Category: English K2 Community
hi sorry about the late reply.
I use only one generic.php as I don't think its actually possible to use more than one themed generic.php. I believe that generic.php should be placed within the /templates/YOURJOOMLATEMPLATE/html/com_k2/ and not within an override sub folder
(community.getk2.org/notes/Templating_in_K2 paragraph 4 and 5)
Try using only one generic.php and moving the <?php echo K2HelperUtilities::wordLimit($item->introtext,30); ?>
to inside the genericItemIntroText div. just below the uncommented <?php /* echo $item->introtext; */?>
Like such:
<?php/** * @version $Id: generic.php 478 2010-06-16 16:11:42Z joomlaworks $ * @package K2 * @author JoomlaWorks www.joomlaworks.gr * @copyright Copyright (c) 2006 - 2010 JoomlaWorks, a business unit of Nuevvo Webware Ltd. All rights reserved. * @license GNU/GPL license: www.gnu.org/copyleft/gpl.html */// no direct accessdefined('_JEXEC') or die('Restricted access');?><!-- Start K2 Generic Layout --><div id="k2Container" class="genericView<?php if($this->params->get('pageclass_sfx')) echo ' '.$this->params->get('pageclass_sfx'); ?>"> <?php if($this->params->get('show_page_title')): ?> <!-- Page title --> <div class="componentheading<?php echo $this->params->get('pageclass_sfx')?>"> <?php echo $this->escape($this->params->get('page_title')); ?> </div> <?php endif; ?> <?php if($this->params->get('userFeed')): ?> <!-- RSS feed icon --> <div class="k2FeedIcon"> <a href="/<?php echo $this->feed; ?>" title="<?php echo JText::_('Subscribe to this RSS feed'); ?>"> <span><?php echo JText::_('Subscribe to this RSS feed'); ?></span> </a> <div class="clr"></div> </div> <?php endif; ?> <?php if(count($this->items)): ?> <div class="genericItemList"> <?php foreach($this->items as $item): ?> <!-- Start K2 Item Layout --> <div class="genericItemView"> <div class="genericItemHeader"> <?php if($item->params->get('genericItemDateCreated')): ?> <!-- Date created --> <span class="genericItemDateCreated"> <?php echo JHTML::_('date', $item->created , JText::_('DATE_FORMAT_LC2')); ?> </span> <?php endif; ?> <?php if($item->params->get('genericItemTitle')): ?> <!-- Item title --> <h2 class="genericItemTitle"> <?php if ($item->params->get('genericItemTitleLinked')): ?> <a href="/<?php echo $item->link; ?>"> <?php echo $item->title; ?> </a> <?php else: ?> <?php echo $item->title; ?> <?php endif; ?> </h2> <?php endif; ?> </div> <div class="genericItemBody"> <?php if($item->params->get('genericItemImage') && !empty($item->imageGeneric)): ?> <!-- Item Image --> <div class="genericItemImageBlock"> <span class="genericItemImage"> <a href="/<?php echo $item->link; ?>" title="<?php if(!empty($item->image_caption)) echo $item->image_caption; else echo $item->title; ?>"> <img src="/<?php echo $item->imageGeneric; ?>" alt="<?php if(!empty($item->image_caption)) echo $item->image_caption; else echo $item->title; ?>" style="width:<?php echo $item->params->get('itemImageGeneric'); ?>px; height:auto;" /> </a> </span> <div class="clr"></div> </div> <?php endif; ?> <?php if($item->params->get('genericItemIntroText')): ?> <!-- Item introtext --> <div class="genericItemIntroText"> <?php /* echo $item->introtext; */?><?php echo K2HelperUtilities::wordLimit($item->introtext,30); ?> </div> <?php endif; ?> <div class="clr"></div> </div> <div class="clr"></div> <?php if($item->params->get('genericItemExtraFields') && count($item->extra_fields)): ?> <!-- Item extra fields --> <div class="genericItemExtraFields"> <h4><?php echo JText::_('Additional Info'); ?></h4> <ul> <?php foreach ($item->extra_fields as $key=>$extraField): ?> <li class="<?php echo ($key%2) ? "odd" : "even"; ?> type<?php echo ucfirst($extraField->type); ?> group<?php echo $extraField->group; ?>"> <span class="genericItemExtraFieldsLabel"><?php echo $extraField->name; ?></span> <span class="genericItemExtraFieldsValue"><?php echo $extraField->value; ?></span> </li> <?php endforeach; ?> </ul> <div class="clr"></div> </div> <?php endif; ?> <?php if($item->params->get('genericItemCategory')): ?> <!-- Item category name --> <div class="genericItemCategory"> <span><?php echo JText::_('Published in'); ?></span> <a href="/<?php echo $item->category->link; ?>"><?php echo $item->category->name; ?></a> </div> <?php endif; ?> <?php if ($item->params->get('genericItemReadMore')): ?> <!-- Item "read more..." link --> <div class="genericItemReadMore"> <a class="k2ReadMore" href="/<?php echo $item->link; ?>"> <?php echo JText::_('Read more...'); ?> </a> </div> <?php endif; ?> <div class="clr"></div> </div> <!-- End K2 Item Layout --> <?php endforeach; ?> </div> <!-- Pagination --> <?php if($this->pagination->getPagesLinks()): ?> <div class="k2Pagination"> <?php echo $this->pagination->getPagesLinks(); ?> <div class="clr"></div> <?php echo $this->pagination->getPagesCounter(); ?> </div> <?php endif; ?> <?php endif; ?> </div><!-- End K2 Generic Layout -->
community.getk2.org/profiles/blogs/modifying-the-tags-results
I use only one generic.php as I don't think its actually possible to use more than one themed generic.php. I believe that generic.php should be placed within the /templates/YOURJOOMLATEMPLATE/html/com_k2/ and not within an override sub folder
(community.getk2.org/notes/Templating_in_K2 paragraph 4 and 5)
Try using only one generic.php and moving the <?php echo K2HelperUtilities::wordLimit($item->introtext,30); ?>
to inside the genericItemIntroText div. just below the uncommented <?php /* echo $item->introtext; */?>
Like such:
<?php/** * @version $Id: generic.php 478 2010-06-16 16:11:42Z joomlaworks $ * @package K2 * @author JoomlaWorks www.joomlaworks.gr * @copyright Copyright (c) 2006 - 2010 JoomlaWorks, a business unit of Nuevvo Webware Ltd. All rights reserved. * @license GNU/GPL license: www.gnu.org/copyleft/gpl.html */// no direct accessdefined('_JEXEC') or die('Restricted access');?><!-- Start K2 Generic Layout --><div id="k2Container" class="genericView<?php if($this->params->get('pageclass_sfx')) echo ' '.$this->params->get('pageclass_sfx'); ?>"> <?php if($this->params->get('show_page_title')): ?> <!-- Page title --> <div class="componentheading<?php echo $this->params->get('pageclass_sfx')?>"> <?php echo $this->escape($this->params->get('page_title')); ?> </div> <?php endif; ?> <?php if($this->params->get('userFeed')): ?> <!-- RSS feed icon --> <div class="k2FeedIcon"> <a href="/<?php echo $this->feed; ?>" title="<?php echo JText::_('Subscribe to this RSS feed'); ?>"> <span><?php echo JText::_('Subscribe to this RSS feed'); ?></span> </a> <div class="clr"></div> </div> <?php endif; ?> <?php if(count($this->items)): ?> <div class="genericItemList"> <?php foreach($this->items as $item): ?> <!-- Start K2 Item Layout --> <div class="genericItemView"> <div class="genericItemHeader"> <?php if($item->params->get('genericItemDateCreated')): ?> <!-- Date created --> <span class="genericItemDateCreated"> <?php echo JHTML::_('date', $item->created , JText::_('DATE_FORMAT_LC2')); ?> </span> <?php endif; ?> <?php if($item->params->get('genericItemTitle')): ?> <!-- Item title --> <h2 class="genericItemTitle"> <?php if ($item->params->get('genericItemTitleLinked')): ?> <a href="/<?php echo $item->link; ?>"> <?php echo $item->title; ?> </a> <?php else: ?> <?php echo $item->title; ?> <?php endif; ?> </h2> <?php endif; ?> </div> <div class="genericItemBody"> <?php if($item->params->get('genericItemImage') && !empty($item->imageGeneric)): ?> <!-- Item Image --> <div class="genericItemImageBlock"> <span class="genericItemImage"> <a href="/<?php echo $item->link; ?>" title="<?php if(!empty($item->image_caption)) echo $item->image_caption; else echo $item->title; ?>"> <img src="/<?php echo $item->imageGeneric; ?>" alt="<?php if(!empty($item->image_caption)) echo $item->image_caption; else echo $item->title; ?>" style="width:<?php echo $item->params->get('itemImageGeneric'); ?>px; height:auto;" /> </a> </span> <div class="clr"></div> </div> <?php endif; ?> <?php if($item->params->get('genericItemIntroText')): ?> <!-- Item introtext --> <div class="genericItemIntroText"> <?php /* echo $item->introtext; */?><?php echo K2HelperUtilities::wordLimit($item->introtext,30); ?> </div> <?php endif; ?> <div class="clr"></div> </div> <div class="clr"></div> <?php if($item->params->get('genericItemExtraFields') && count($item->extra_fields)): ?> <!-- Item extra fields --> <div class="genericItemExtraFields"> <h4><?php echo JText::_('Additional Info'); ?></h4> <ul> <?php foreach ($item->extra_fields as $key=>$extraField): ?> <li class="<?php echo ($key%2) ? "odd" : "even"; ?> type<?php echo ucfirst($extraField->type); ?> group<?php echo $extraField->group; ?>"> <span class="genericItemExtraFieldsLabel"><?php echo $extraField->name; ?></span> <span class="genericItemExtraFieldsValue"><?php echo $extraField->value; ?></span> </li> <?php endforeach; ?> </ul> <div class="clr"></div> </div> <?php endif; ?> <?php if($item->params->get('genericItemCategory')): ?> <!-- Item category name --> <div class="genericItemCategory"> <span><?php echo JText::_('Published in'); ?></span> <a href="/<?php echo $item->category->link; ?>"><?php echo $item->category->name; ?></a> </div> <?php endif; ?> <?php if ($item->params->get('genericItemReadMore')): ?> <!-- Item "read more..." link --> <div class="genericItemReadMore"> <a class="k2ReadMore" href="/<?php echo $item->link; ?>"> <?php echo JText::_('Read more...'); ?> </a> </div> <?php endif; ?> <div class="clr"></div> </div> <!-- End K2 Item Layout --> <?php endforeach; ?> </div> <!-- Pagination --> <?php if($this->pagination->getPagesLinks()): ?> <div class="k2Pagination"> <?php echo $this->pagination->getPagesLinks(); ?> <div class="clr"></div> <?php echo $this->pagination->getPagesCounter(); ?> </div> <?php endif; ?> <?php endif; ?> </div><!-- End K2 Generic Layout -->
community.getk2.org/profiles/blogs/modifying-the-tags-results
- pascal bourhis
20 May 2011 17:04
Tags and Joomla SEF doesn't work at all with SEF actived ? was created by pascal bourhis
Tags and Joomla SEF doesn't work at all with SEF actived ?
Category: English K2 Community
Hello,
Excuse my english, i'm french.
I write a tag for an article : bagnols
If i try to click on this tag i'have Apache 500 error :
500 - Affichage introuvable [NOM, TYPE, PREFIX] itemlist,html,tagView
The URL is :
www.mysite.com/blogs-deco-habitat-lyon/itemlist/tag/bagnols.html
Thanks
Infos --
Joomla! 1.5.14 Stable
PHP : 5.2.14
K2 : 2.4.1 with French translations
Excuse my english, i'm french.
I write a tag for an article : bagnols
If i try to click on this tag i'have Apache 500 error :
500 - Affichage introuvable [NOM, TYPE, PREFIX] itemlist,html,tagView
The URL is :
www.mysite.com/blogs-deco-habitat-lyon/itemlist/tag/bagnols.html
Thanks
Infos --
Joomla! 1.5.14 Stable
PHP : 5.2.14
K2 : 2.4.1 with French translations
- Simon Wells
19 May 2011 23:25
Replied by Simon Wells on topic How can I show K2 » Itemlist / Category like Tag view items list?
How can I show K2 » Itemlist / Category like Tag view items list?
Category: English K2 Community
Tag views are created by the generic.php file, itemlist in a category is generated by the category_list.php.
You will see some come codes between the two files, such as <div class="catItemHeader"> and <div class="genericItemHeader">
As you compare the files, you will see a little change in the layout.
Essentially you need to make the php blocks in the same layout as the generic view, but its not a huge change, things like the tags are not displayed in the tag view, as your view the tags or the read more position is changed.
Hope that helps get you started.
Simon
K2 Support
You will see some come codes between the two files, such as <div class="catItemHeader"> and <div class="genericItemHeader">
As you compare the files, you will see a little change in the layout.
Essentially you need to make the php blocks in the same layout as the generic view, but its not a huge change, things like the tags are not displayed in the tag view, as your view the tags or the read more position is changed.
Hope that helps get you started.
Simon
K2 Support
- NintendoNerds
19 May 2011 15:31
Replied by NintendoNerds on topic Limiting introtext under tag lists?
Limiting introtext under tag lists?
Category: English K2 Community
Wow! That looks great, Josh. I tried making that change to my generic.php file but it did not work. Below, I have posted the generic.php file from my override directory. Also, here is how my current tag listing looks:
www.nintendonerds.com/articles/other/itemlist/tag/may%202011
<?php/** * @version $Id: generic.php 478 2010-06-16 16:11:42Z joomlaworks $ * @package K2 * @author JoomlaWorks www.joomlaworks.gr * @copyright Copyright (c) 2006 - 2010 JoomlaWorks, a business unit of Nuevvo Webware Ltd. All rights reserved. * @license GNU/GPL license: www.gnu.org/copyleft/gpl.html */// no direct accessdefined('_JEXEC') or die('Restricted access');?><!-- Start K2 Generic Layout --><div id="k2Container" class="genericView<?php if($this->params->get('pageclass_sfx')) echo ' '.$this->params->get('pageclass_sfx'); ?>"> <?php if($this->params->get('show_page_title')): ?> <!-- Page title --> <div class="componentheading<?php echo $this->params->get('pageclass_sfx')?>"> <?php echo $this->escape($this->params->get('page_title')); ?> </div> <?php endif; ?> <?php if($this->params->get('userFeed')): ?> <!-- RSS feed icon --> <div class="k2FeedIcon"> <a href="/<?php echo $this->feed; ?>" title="<?php echo JText::_('Subscribe to this RSS feed'); ?>"> <span><?php echo JText::_('Subscribe to this RSS feed'); ?></span> </a> <div class="clr"></div> </div> <?php endif; ?> <?php if(count($this->items)): ?> <div class="genericItemList"> <?php foreach($this->items as $item): ?> <!-- Start K2 Item Layout --> <div class="genericItemView"> <div class="genericItemHeader"> <?php if($item->params->get('genericItemDateCreated')): ?> <!-- Date created --> <span class="genericItemDateCreated"> <?php echo JHTML::_('date', $item->created , JText::_('DATE_FORMAT_LC2')); ?> </span> <?php endif; ?> <?php if($item->params->get('genericItemTitle')): ?> <!-- Item title --> <h2 class="genericItemTitle"> <?php if ($item->params->get('genericItemTitleLinked')): ?> <a href="/<?php echo $item->link; ?>"> <?php echo $item->title; ?> </a> <?php else: ?> <?php echo $item->title; ?> <?php endif; ?> </h2> <?php endif; ?> </div> <div class="genericItemBody"> <?php if($item->params->get('genericItemImage') && !empty($item->imageGeneric)): ?> <!-- Item Image --> <div class="genericItemImageBlock"> <span class="genericItemImage"> <a href="/<?php echo $item->link; ?>" title="<?php if(!empty($item->image_caption)) echo $item->image_caption; else echo $item->title; ?>"> <img src="/<?php echo $item->imageGeneric; ?>" alt="<?php if(!empty($item->image_caption)) echo $item->image_caption; else echo $item->title; ?>" style="width:<?php echo $item->params->get('itemImageGeneric'); ?>px; height:auto;" /> </a> </span> <div class="clr"></div> </div> <?php endif; ?> <?php if($item->params->get('genericItemIntroText')): ?> <!-- Item introtext --> <div class="genericItemIntroText"> <?php /* echo $item->introtext; */?> </div> <?php echo K2HelperUtilities::wordLimit($item->introtext,30); ?> <?php endif; ?> <div class="clr"></div> </div> <div class="clr"></div> <?php if($item->params->get('genericItemExtraFields') && count($item->extra_fields)): ?> <!-- Item extra fields --> <div class="genericItemExtraFields"> <h4><?php echo JText::_('Additional Info'); ?></h4> <ul> <?php foreach ($item->extra_fields as $key=>$extraField): ?> <li class="<?php echo ($key%2) ? "odd" : "even"; ?> type<?php echo ucfirst($extraField->type); ?> group<?php echo $extraField->group; ?>"> <span class="genericItemExtraFieldsLabel"><?php echo $extraField->name; ?></span> <span class="genericItemExtraFieldsValue"><?php echo $extraField->value; ?></span> </li> <?php endforeach; ?> </ul> <div class="clr"></div> </div> <?php endif; ?> <?php if($item->params->get('genericItemCategory')): ?> <!-- Item category name --> <div class="genericItemCategory"> <span><?php echo JText::_('Published in'); ?></span> <a href="/<?php echo $item->category->link; ?>"><?php echo $item->category->name; ?></a> </div> <?php endif; ?> <?php if ($item->params->get('genericItemReadMore')): ?> <!-- Item "read more..." link --> <div class="genericItemReadMore"> <a class="k2ReadMore" href="/<?php echo $item->link; ?>"> <?php echo JText::_('Read more...'); ?> </a> </div> <?php endif; ?> <div class="clr"></div> </div> <!-- End K2 Item Layout --> <?php endforeach; ?> </div> <!-- Pagination --> <?php if($this->pagination->getPagesLinks()): ?> <div class="k2Pagination"> <?php echo $this->pagination->getPagesLinks(); ?> <div class="clr"></div> <?php echo $this->pagination->getPagesCounter(); ?> </div> <?php endif; ?> <?php endif; ?> </div><!-- End K2 Generic Layout -->
www.nintendonerds.com/articles/other/itemlist/tag/may%202011
<?php/** * @version $Id: generic.php 478 2010-06-16 16:11:42Z joomlaworks $ * @package K2 * @author JoomlaWorks www.joomlaworks.gr * @copyright Copyright (c) 2006 - 2010 JoomlaWorks, a business unit of Nuevvo Webware Ltd. All rights reserved. * @license GNU/GPL license: www.gnu.org/copyleft/gpl.html */// no direct accessdefined('_JEXEC') or die('Restricted access');?><!-- Start K2 Generic Layout --><div id="k2Container" class="genericView<?php if($this->params->get('pageclass_sfx')) echo ' '.$this->params->get('pageclass_sfx'); ?>"> <?php if($this->params->get('show_page_title')): ?> <!-- Page title --> <div class="componentheading<?php echo $this->params->get('pageclass_sfx')?>"> <?php echo $this->escape($this->params->get('page_title')); ?> </div> <?php endif; ?> <?php if($this->params->get('userFeed')): ?> <!-- RSS feed icon --> <div class="k2FeedIcon"> <a href="/<?php echo $this->feed; ?>" title="<?php echo JText::_('Subscribe to this RSS feed'); ?>"> <span><?php echo JText::_('Subscribe to this RSS feed'); ?></span> </a> <div class="clr"></div> </div> <?php endif; ?> <?php if(count($this->items)): ?> <div class="genericItemList"> <?php foreach($this->items as $item): ?> <!-- Start K2 Item Layout --> <div class="genericItemView"> <div class="genericItemHeader"> <?php if($item->params->get('genericItemDateCreated')): ?> <!-- Date created --> <span class="genericItemDateCreated"> <?php echo JHTML::_('date', $item->created , JText::_('DATE_FORMAT_LC2')); ?> </span> <?php endif; ?> <?php if($item->params->get('genericItemTitle')): ?> <!-- Item title --> <h2 class="genericItemTitle"> <?php if ($item->params->get('genericItemTitleLinked')): ?> <a href="/<?php echo $item->link; ?>"> <?php echo $item->title; ?> </a> <?php else: ?> <?php echo $item->title; ?> <?php endif; ?> </h2> <?php endif; ?> </div> <div class="genericItemBody"> <?php if($item->params->get('genericItemImage') && !empty($item->imageGeneric)): ?> <!-- Item Image --> <div class="genericItemImageBlock"> <span class="genericItemImage"> <a href="/<?php echo $item->link; ?>" title="<?php if(!empty($item->image_caption)) echo $item->image_caption; else echo $item->title; ?>"> <img src="/<?php echo $item->imageGeneric; ?>" alt="<?php if(!empty($item->image_caption)) echo $item->image_caption; else echo $item->title; ?>" style="width:<?php echo $item->params->get('itemImageGeneric'); ?>px; height:auto;" /> </a> </span> <div class="clr"></div> </div> <?php endif; ?> <?php if($item->params->get('genericItemIntroText')): ?> <!-- Item introtext --> <div class="genericItemIntroText"> <?php /* echo $item->introtext; */?> </div> <?php echo K2HelperUtilities::wordLimit($item->introtext,30); ?> <?php endif; ?> <div class="clr"></div> </div> <div class="clr"></div> <?php if($item->params->get('genericItemExtraFields') && count($item->extra_fields)): ?> <!-- Item extra fields --> <div class="genericItemExtraFields"> <h4><?php echo JText::_('Additional Info'); ?></h4> <ul> <?php foreach ($item->extra_fields as $key=>$extraField): ?> <li class="<?php echo ($key%2) ? "odd" : "even"; ?> type<?php echo ucfirst($extraField->type); ?> group<?php echo $extraField->group; ?>"> <span class="genericItemExtraFieldsLabel"><?php echo $extraField->name; ?></span> <span class="genericItemExtraFieldsValue"><?php echo $extraField->value; ?></span> </li> <?php endforeach; ?> </ul> <div class="clr"></div> </div> <?php endif; ?> <?php if($item->params->get('genericItemCategory')): ?> <!-- Item category name --> <div class="genericItemCategory"> <span><?php echo JText::_('Published in'); ?></span> <a href="/<?php echo $item->category->link; ?>"><?php echo $item->category->name; ?></a> </div> <?php endif; ?> <?php if ($item->params->get('genericItemReadMore')): ?> <!-- Item "read more..." link --> <div class="genericItemReadMore"> <a class="k2ReadMore" href="/<?php echo $item->link; ?>"> <?php echo JText::_('Read more...'); ?> </a> </div> <?php endif; ?> <div class="clr"></div> </div> <!-- End K2 Item Layout --> <?php endforeach; ?> </div> <!-- Pagination --> <?php if($this->pagination->getPagesLinks()): ?> <div class="k2Pagination"> <?php echo $this->pagination->getPagesLinks(); ?> <div class="clr"></div> <?php echo $this->pagination->getPagesCounter(); ?> </div> <?php endif; ?> <?php endif; ?> </div><!-- End K2 Generic Layout -->
- Simon Wells
18 May 2011 23:40
Replied by Simon Wells on topic managing lots of tags
managing lots of tags
Category: English K2 Community
Hi Paul,
I cant see why it would not be possible, but I am no coder, so I would like to invite any of the budding developers who use K2 to step and make a module to do such a think.
We can then release it on the simon.getk2.org site as a free module with full credit going to the developer.
Any takeers.
Simon
I cant see why it would not be possible, but I am no coder, so I would like to invite any of the budding developers who use K2 to step and make a module to do such a think.
We can then release it on the simon.getk2.org site as a free module with full credit going to the developer.
Any takeers.
Simon
- Brenda
18 May 2011 17:00
Replied by Brenda on topic Help with css on a Tag Menu page
Help with css on a Tag Menu page
Category: English K2 Community
I still got:
Parse error: syntax error, unexpected T_IS_EQUAL in /home/.../public_html/templates/.../html/com_k2/templates/generic.php on line 129
I put the
<?php if(($keyItem+1)%2)==0): ?> <div class="clr"></div><?php endif; ?>
right before the endforeach that was before the Pagination section, there were two endforeach. Did I put it in the right spot?
Here's my new file:
<?php/** * @version $Id: generic.php 478 2010-06-16 16:11:42Z joomlaworks $ * @package K2 * @author JoomlaWorks www.joomlaworks.gr * @copyright Copyright (c) 2006 - 2010 JoomlaWorks, a business unit of Nuevvo Webware Ltd. All rights reserved. * @license GNU/GPL license: www.gnu.org/copyleft/gpl.html */// no direct accessdefined('_JEXEC') or die('Restricted access');?><!-- Start K2 Generic Layout --><div id="k2Container" class="genericView<?php if($this->params->get('pageclass_sfx')) echo ' '.$this->params->get('pageclass_sfx'); ?>"> <?php if($this->params->get('show_page_title')): ?> <!-- Page title --> <div class="componentheading<?php echo $this->params->get('pageclass_sfx')?>"> <?php echo $this->escape($this->params->get('page_title')); ?> </div> <?php endif; ?> <?php if($this->params->get('userFeed')): ?> <!-- RSS feed icon --> <div class="k2FeedIcon"> <a href="/<?php echo $this->feed; ?>" title="<?php echo JText::_('Subscribe to this RSS feed'); ?>"> <span><?php echo JText::_('Subscribe to this RSS feed'); ?></span> </a> <div class="clr"></div> </div> <?php endif; ?> <?php if(count($this->items)): ?> <div class="genericItemList"> <?php foreach($this->items as $keyItem=>$item): ?> <!-- Start K2 Item Layout --> <div class="genericItemView"> <div class="genericItemHeader"> <?php if($item->params->get('genericItemDateCreated')): ?> <!-- Date created --> <span class="genericItemDateCreated"> <?php echo JHTML::_('date', $item->created , JText::_('DATE_FORMAT_LC2')); ?> </span> <?php endif; ?> <?php if($item->params->get('genericItemTitle')): ?> <!-- Item title --> <h2 class="genericItemTitle"> <?php if ($item->params->get('genericItemTitleLinked')): ?> <a href="/<?php echo $item->link; ?>"> <?php echo $item->title; ?> </a> <?php else: ?> <?php echo $item->title; ?> <?php endif; ?> </h2> <?php endif; ?> </div> <div class="genericItemBody"> <?php if($item->params->get('genericItemImage') && !empty($item->imageGeneric)): ?> <!-- Item Image --> <div class="genericItemImageBlock"> <span class="genericItemImage"> <a href="/<?php echo $item->link; ?>" title="<?php if(!empty($item->image_caption)) echo $item->image_caption; else echo $item->title; ?>"> <img src="/<?php echo $item->imageGeneric; ?>" alt="<?php if(!empty($item->image_caption)) echo $item->image_caption; else echo $item->title; ?>" style="width:150px; height:auto;" /> </a> </span> <div class="clr"></div> </div> <?php endif; ?> <?php if($item->params->get('genericItemIntroText')): ?> <!-- Item introtext --> <div class="genericItemIntroText"> <?php echo K2HelperUtilities::wordLimit($item->introtext,25);?> </div> <?php endif; ?> <div class="clr"></div> </div> <div class="clr"></div> <?php if($item->params->get('genericItemExtraFields') && count($item->extra_fields)): ?> <!-- Item extra fields --> <div class="genericItemExtraFields"> <h4><?php echo JText::_('Additional Info'); ?></h4> <ul> <?php foreach ($item->extra_fields as $key=>$extraField): ?> <li class="<?php echo ($key%2) ? "odd" : "even"; ?> type<?php echo ucfirst($extraField->type); ?> group<?php echo $extraField->group; ?>"> <span class="genericItemExtraFieldsLabel"><?php echo $extraField->name; ?></span> <span class="genericItemExtraFieldsValue"><?php echo $extraField->value; ?></span> </li> <?php endforeach; ?> </ul> <div class="clr"></div> </div> <?php endif; ?> <?php if($item->params->get('genericItemCategory')): ?> <!-- Item category name --> <div class="genericItemCategory"> <span><?php echo JText::_('Published in'); ?></span> <a href="/<?php echo $item->category->link; ?>"><?php echo $item->category->name; ?></a> </div> <?php endif; ?> <?php if ($item->params->get('genericItemReadMore')): ?> <!-- Item "read more..." link --> <div class="genericItemReadMore"> <a class="k2ReadMore" href="/<?php echo $item->link; ?>"> <?php echo JText::_('Read more...'); ?> </a> </div> <?php endif; ?> <div class="clr"></div> </div> <!-- End K2 Item Layout --> <?php if(($keyItem+1)%2)==0): ?> <div class="clr"></div><?php endif; ?> <?php endforeach; ?> </div><div class="clr"></div> <!-- Pagination --> <?php if($this->pagination->getPagesLinks()): ?> <div class="k2Pagination"> <?php echo $this->pagination->getPagesLinks(); ?> <div class="clr"></div> <?php echo $this->pagination->getPagesCounter(); ?> </div> <?php endif; ?> <?php endif; ?> </div><!-- End K2 Generic Layout -->
Parse error: syntax error, unexpected T_IS_EQUAL in /home/.../public_html/templates/.../html/com_k2/templates/generic.php on line 129
I put the
<?php if(($keyItem+1)%2)==0): ?> <div class="clr"></div><?php endif; ?>
right before the endforeach that was before the Pagination section, there were two endforeach. Did I put it in the right spot?
Here's my new file:
<?php/** * @version $Id: generic.php 478 2010-06-16 16:11:42Z joomlaworks $ * @package K2 * @author JoomlaWorks www.joomlaworks.gr * @copyright Copyright (c) 2006 - 2010 JoomlaWorks, a business unit of Nuevvo Webware Ltd. All rights reserved. * @license GNU/GPL license: www.gnu.org/copyleft/gpl.html */// no direct accessdefined('_JEXEC') or die('Restricted access');?><!-- Start K2 Generic Layout --><div id="k2Container" class="genericView<?php if($this->params->get('pageclass_sfx')) echo ' '.$this->params->get('pageclass_sfx'); ?>"> <?php if($this->params->get('show_page_title')): ?> <!-- Page title --> <div class="componentheading<?php echo $this->params->get('pageclass_sfx')?>"> <?php echo $this->escape($this->params->get('page_title')); ?> </div> <?php endif; ?> <?php if($this->params->get('userFeed')): ?> <!-- RSS feed icon --> <div class="k2FeedIcon"> <a href="/<?php echo $this->feed; ?>" title="<?php echo JText::_('Subscribe to this RSS feed'); ?>"> <span><?php echo JText::_('Subscribe to this RSS feed'); ?></span> </a> <div class="clr"></div> </div> <?php endif; ?> <?php if(count($this->items)): ?> <div class="genericItemList"> <?php foreach($this->items as $keyItem=>$item): ?> <!-- Start K2 Item Layout --> <div class="genericItemView"> <div class="genericItemHeader"> <?php if($item->params->get('genericItemDateCreated')): ?> <!-- Date created --> <span class="genericItemDateCreated"> <?php echo JHTML::_('date', $item->created , JText::_('DATE_FORMAT_LC2')); ?> </span> <?php endif; ?> <?php if($item->params->get('genericItemTitle')): ?> <!-- Item title --> <h2 class="genericItemTitle"> <?php if ($item->params->get('genericItemTitleLinked')): ?> <a href="/<?php echo $item->link; ?>"> <?php echo $item->title; ?> </a> <?php else: ?> <?php echo $item->title; ?> <?php endif; ?> </h2> <?php endif; ?> </div> <div class="genericItemBody"> <?php if($item->params->get('genericItemImage') && !empty($item->imageGeneric)): ?> <!-- Item Image --> <div class="genericItemImageBlock"> <span class="genericItemImage"> <a href="/<?php echo $item->link; ?>" title="<?php if(!empty($item->image_caption)) echo $item->image_caption; else echo $item->title; ?>"> <img src="/<?php echo $item->imageGeneric; ?>" alt="<?php if(!empty($item->image_caption)) echo $item->image_caption; else echo $item->title; ?>" style="width:150px; height:auto;" /> </a> </span> <div class="clr"></div> </div> <?php endif; ?> <?php if($item->params->get('genericItemIntroText')): ?> <!-- Item introtext --> <div class="genericItemIntroText"> <?php echo K2HelperUtilities::wordLimit($item->introtext,25);?> </div> <?php endif; ?> <div class="clr"></div> </div> <div class="clr"></div> <?php if($item->params->get('genericItemExtraFields') && count($item->extra_fields)): ?> <!-- Item extra fields --> <div class="genericItemExtraFields"> <h4><?php echo JText::_('Additional Info'); ?></h4> <ul> <?php foreach ($item->extra_fields as $key=>$extraField): ?> <li class="<?php echo ($key%2) ? "odd" : "even"; ?> type<?php echo ucfirst($extraField->type); ?> group<?php echo $extraField->group; ?>"> <span class="genericItemExtraFieldsLabel"><?php echo $extraField->name; ?></span> <span class="genericItemExtraFieldsValue"><?php echo $extraField->value; ?></span> </li> <?php endforeach; ?> </ul> <div class="clr"></div> </div> <?php endif; ?> <?php if($item->params->get('genericItemCategory')): ?> <!-- Item category name --> <div class="genericItemCategory"> <span><?php echo JText::_('Published in'); ?></span> <a href="/<?php echo $item->category->link; ?>"><?php echo $item->category->name; ?></a> </div> <?php endif; ?> <?php if ($item->params->get('genericItemReadMore')): ?> <!-- Item "read more..." link --> <div class="genericItemReadMore"> <a class="k2ReadMore" href="/<?php echo $item->link; ?>"> <?php echo JText::_('Read more...'); ?> </a> </div> <?php endif; ?> <div class="clr"></div> </div> <!-- End K2 Item Layout --> <?php if(($keyItem+1)%2)==0): ?> <div class="clr"></div><?php endif; ?> <?php endforeach; ?> </div><div class="clr"></div> <!-- Pagination --> <?php if($this->pagination->getPagesLinks()): ?> <div class="k2Pagination"> <?php echo $this->pagination->getPagesLinks(); ?> <div class="clr"></div> <?php echo $this->pagination->getPagesCounter(); ?> </div> <?php endif; ?> <?php endif; ?> </div><!-- End K2 Generic Layout -->
- Josh
18 May 2011 16:43
Replied by Josh on topic Limiting introtext under tag lists?
Limiting introtext under tag lists?
Category: English K2 Community
Hi I came across this solution somewhere on this site but cant remember where.
Here is an example of what I found. May not be quite right but I am able to limit the intro text in tag view.
In generic.php as William said around line 80, try using this. Notice the uncommented <?php /* echo $item->introtext; */?> in line 4 in case I want to revert.
<?php if($item->params->get('genericItemIntroText')): ?> <!-- Item introtext --> <div class="genericItemIntroText"> <?php /* echo $item->introtext; */?> </div> <?php echo K2HelperUtilities::wordLimit($item->introtext,30); ?> <?php endif; ?>
Here is an example of what I found. May not be quite right but I am able to limit the intro text in tag view.
In generic.php as William said around line 80, try using this. Notice the uncommented <?php /* echo $item->introtext; */?> in line 4 in case I want to revert.
<?php if($item->params->get('genericItemIntroText')): ?> <!-- Item introtext --> <div class="genericItemIntroText"> <?php /* echo $item->introtext; */?> </div> <?php echo K2HelperUtilities::wordLimit($item->introtext,30); ?> <?php endif; ?>