COMMUNITY FORUM
Search Results (Searched for: k2 Tag)
- carlos osorio
20 Jan 2014 16:43
Enable plugins on Tag view was created by carlos osorio
Enable plugins on Tag view
Category: English K2 Community
Good Day,
i like to know if is possible enable plugins on tag view, i found the code in \components\com_k2\views\itemlist\view.html.php where it is assumed that the code should appear,
i try add the code from other views, and not work..
Displaying 2881 - 2900 out of 6582 results.
i like to know if is possible enable plugins on tag view, i found the code in \components\com_k2\views\itemlist\view.html.php where it is assumed that the code should appear,
i try add the code from other views, and not work..
- zymo

20 Jan 2014 14:08 Replied by zymo on topic Simple image gallery in intro text Simple image gallery in intro text
Category: English K2 Community
I see that now. But the problem is still the same, it strips the intro text of any other html tags(even if I manually make a list, the tags get removed) but the gallery still remains in the intro text.
I have tried with a fresh installation of joomla,K2 and simple image gallery and nothing changed.
- Yiota
20 Jan 2014 11:57
Replied by Yiota on topic SOLVED: How to access extra fields in tag template
SOLVED: How to access extra fields in tag template
Category: English K2 Community
The settings for which elements are going to show in your tag pages are located in the K2 Parameters. You will have to check them first and see that the extra fields are enabled and then see if the the extra field is showing.
- Mats Arvendal
17 Jan 2014 20:07
A modal popup for item image in category view? was created by Mats Arvendal
A modal popup for item image in category view?
Category: English K2 Community
Hi,
I would like to change the behaviour of an item image when listing items in a category blog view. Instead of a link to the article I would like to open a modal popup when the image thumbnail is clicked.
In my override I replaced the
<a href="<?php echo $this->item->link; ?>" title="<?php if(!empty($this->item->image_caption)) echo K2HelperUtilities::cleanHtml($this->item->image_caption); else echo K2HelperUtilities::cleanHtml($this->item->title); ?>">
with:
<a class="modal" rel="{handler: 'image'}" href="<?php echo $this->item->imageXLarge; ?>" title="<?php echo JText::_('K2_CLICK_TO_PREVIEW_IMAGE'); ?>">
inside <span class="catItemImage"> in category_item.php, but that only resulted in the image opening in a new web browser tag, not in the nice modal popup that appears when you click a thumbnail in article view.
Obviously I miss something, but what?
Best regards
I would like to change the behaviour of an item image when listing items in a category blog view. Instead of a link to the article I would like to open a modal popup when the image thumbnail is clicked.
In my override I replaced the
<a href="<?php echo $this->item->link; ?>" title="<?php if(!empty($this->item->image_caption)) echo K2HelperUtilities::cleanHtml($this->item->image_caption); else echo K2HelperUtilities::cleanHtml($this->item->title); ?>">
with:
<a class="modal" rel="{handler: 'image'}" href="<?php echo $this->item->imageXLarge; ?>" title="<?php echo JText::_('K2_CLICK_TO_PREVIEW_IMAGE'); ?>">
inside <span class="catItemImage"> in category_item.php, but that only resulted in the image opening in a new web browser tag, not in the nice modal popup that appears when you click a thumbnail in article view.
Obviously I miss something, but what?
Best regards
- Yiota
17 Jan 2014 14:55
Replied by Yiota on topic Simple image gallery in intro text
Simple image gallery in intro text
Category: English K2 Community
Yes, I'm sorry, I didn't realise you were referring to a gallery used inside the introtext. I thought you were using the gallery from the Image Gallery tab. So to answer your questions one by one
The options for the gallery are indeed for the Pro version of SIG,
To strip it from your intro text you can put it in the fulltext, put a limit in the introtext, enable the "Introtext HTML cleanup (tag strip)" from the K2 Configuration under the Content tab and choose which elements you don't want to strip.
The options for the gallery are indeed for the Pro version of SIG,
To strip it from your intro text you can put it in the fulltext, put a limit in the introtext, enable the "Introtext HTML cleanup (tag strip)" from the K2 Configuration under the Content tab and choose which elements you don't want to strip.
- Roger
17 Jan 2014 08:23
Related Item by Tag displays differently was created by Roger
Related Item by Tag displays differently
Category: English K2 Community
Hello,
This is related to this question but deserves its own thread.
Why does my K2 item show differently when rendered by itself vs when rendered as a related item?
By itself:
take7.lamplighterguild.com/index.php/program/teachers
Each bio is a seperate K2 item.
When rendered as a related item:
take7.lamplighterguild.com/index.php/program/courses/dramatic-arts
Really the only problem is the placement of the picture. I would prefer the related items to render with the pictures in with the text the way they do in the bio page (first link).
Thanks
This is related to this question but deserves its own thread.
Why does my K2 item show differently when rendered by itself vs when rendered as a related item?
By itself:
take7.lamplighterguild.com/index.php/program/teachers
Each bio is a seperate K2 item.
When rendered as a related item:
take7.lamplighterguild.com/index.php/program/courses/dramatic-arts
Really the only problem is the placement of the picture. I would prefer the related items to render with the pictures in with the text the way they do in the bio page (first link).
Thanks
- Blu Dove Designs
16 Jan 2014 23:04
Replied by Blu Dove Designs on topic yet another 1064 You have an error in your SQL
yet another 1064 You have an error in your SQL
Category: English K2 Community
Still not working. I ran the database fix, tried it and got the 1064 error.
Then I disabled the dynamap and tried to make a new item and got the 1064 error
Got a message from my web host this morning who did some debugging.
So I disabled Gk4 module and I still get the 1064 error.
Additionally - here is what he said when he debugged:
I've debugged the code and found the invalid SQL query was being generated by line ~260 in ./modules/mod_news_pro_gk4/gk_classes/gk.source.k2.php. The offending query (pasted below) had an empty WHERE condition.
I've added this code to line 258 to put a '1' in the SQL query if the WHERE condition is empty:
if (empty($second_sql_where))
$second_sql_where = '1';
The site is now loading :)
The job now is finding out why $second_sql_where (generated on line 228) was empty in the first place
Offending query:
SELECT
content.id AS ID,
cats.name AS cat_name,
cats.alias AS cat_alias,
content.catid AS cat_id,
users.name AS author,
users.email AS author_email,
users.id AS author_id,
content_rating.rating_sum AS rating_sum,
content_rating.rating_count AS rating_count
FROM
j3_k2_items AS content
LEFT JOIN
j3_k2_categories AS cats
ON cats.id = content.catid
LEFT JOIN
j3_users AS users
ON users.id = content.created_by
LEFT JOIN j3_k2_tags_xref AS tx ON content.id = tx.itemID LEFT JOIN j3_k2_tags AS t ON t.id = tx.tagID
LEFT JOIN
j3_k2_rating AS content_rating
ON content.id = content_rating.itemID
WHERE
ORDER BY
content.created DESC
Is there any way I can PM someone and have my site fixed?? This is ridiculous that these problems are persisting and I have businesses depending on the software.
Thanks!
Then I disabled the dynamap and tried to make a new item and got the 1064 error
Got a message from my web host this morning who did some debugging.
So I disabled Gk4 module and I still get the 1064 error.
Additionally - here is what he said when he debugged:
I've debugged the code and found the invalid SQL query was being generated by line ~260 in ./modules/mod_news_pro_gk4/gk_classes/gk.source.k2.php. The offending query (pasted below) had an empty WHERE condition.
I've added this code to line 258 to put a '1' in the SQL query if the WHERE condition is empty:
if (empty($second_sql_where))
$second_sql_where = '1';
The site is now loading :)
The job now is finding out why $second_sql_where (generated on line 228) was empty in the first place
Offending query:
SELECT
content.id AS ID,
cats.name AS cat_name,
cats.alias AS cat_alias,
content.catid AS cat_id,
users.name AS author,
users.email AS author_email,
users.id AS author_id,
content_rating.rating_sum AS rating_sum,
content_rating.rating_count AS rating_count
FROM
j3_k2_items AS content
LEFT JOIN
j3_k2_categories AS cats
ON cats.id = content.catid
LEFT JOIN
j3_users AS users
ON users.id = content.created_by
LEFT JOIN j3_k2_tags_xref AS tx ON content.id = tx.itemID LEFT JOIN j3_k2_tags AS t ON t.id = tx.tagID
LEFT JOIN
j3_k2_rating AS content_rating
ON content.id = content_rating.itemID
WHERE
ORDER BY
content.created DESC
Is there any way I can PM someone and have my site fixed?? This is ridiculous that these problems are persisting and I have businesses depending on the software.
Thanks!
- Roger
16 Jan 2014 18:40
Replied by Roger on topic [SOLVED] Linking or embedding K2 Items
[SOLVED] Linking or embedding K2 Items
Category: English K2 Community
No...I don't see the related content below??...and I don't understand how I would.
I have created a tag. I have associated the tag with ONE K2 item.
How the OTHER K2 item knows there is a relationship there to be displayed I do not understand.
I'm sorry for being such a bother I'm just not making the connection you are trying to teach me.
Thank you for your continued patience.
I have created a tag. I have associated the tag with ONE K2 item.
How the OTHER K2 item knows there is a relationship there to be displayed I do not understand.
I'm sorry for being such a bother I'm just not making the connection you are trying to teach me.
Thank you for your continued patience.
- Yiota
16 Jan 2014 17:33
Replied by Yiota on topic [SOLVED] Linking or embedding K2 Items
[SOLVED] Linking or embedding K2 Items
Category: English K2 Community
There is no need to do anything more than you have already done. When you visit the Program item page you will see the related item by that tag below the content.
- Roger
16 Jan 2014 17:05
Replied by Roger on topic [SOLVED] Linking or embedding K2 Items
[SOLVED] Linking or embedding K2 Items
Category: English K2 Community
OK I added a tag in K2 called BobJoePTSpecialist. I then went into the BobJones bio and added the tag to the K2 item.
I then went to the Programs category (programs is where articles like PhysRehab are at) and added the option Related items by tag and reduced it to 1 from 5.
Now....how do I establish the relationship? So I have my K2 item tagged with BobJoePTSpecialist. I have the Program category showing 1 related item. It seems to me somewhere in my PhysRehab item I would tell it the related item.
Perhaps {BobJoePTSpecialist} at the bottom of the content so it would show at the bottom?
I then went to the Programs category (programs is where articles like PhysRehab are at) and added the option Related items by tag and reduced it to 1 from 5.
Now....how do I establish the relationship? So I have my K2 item tagged with BobJoePTSpecialist. I have the Program category showing 1 related item. It seems to me somewhere in my PhysRehab item I would tell it the related item.
Perhaps {BobJoePTSpecialist} at the bottom of the content so it would show at the bottom?
- Yiota
16 Jan 2014 13:28
Replied by Yiota on topic [SOLVED] Linking or embedding K2 Items
[SOLVED] Linking or embedding K2 Items
Category: English K2 Community
Hello,
You can add to the article of Physical Rehab and the trainer you need to show below the article a specific tag. Then just enable the option Related items by tag in the Physical Rehab category's item settings and it will show.
Let me know if that worked for you.
You can add to the article of Physical Rehab and the trainer you need to show below the article a specific tag. Then just enable the option Related items by tag in the Physical Rehab category's item settings and it will show.
Let me know if that worked for you.
- Yiota
16 Jan 2014 11:49
Replied by Yiota on topic [SOLVED] Need a module that filters by tags
[SOLVED] Need a module that filters by tags
Category: English K2 Community
Hello,
From a quick search I found the K2 Related Content module (getk2.org/extend/extensions/610-related-content-for-k2) only for Joomla! 2.5, though, and the getk2.org/extend/extensions/193-dm-related-articles-for-k2 which I'm afraid is a commercial one.
Also you can watch this: getk2.org/documentation/videos/720-how-to-add-a-related-items-by-category-module
From a quick search I found the K2 Related Content module (getk2.org/extend/extensions/610-related-content-for-k2) only for Joomla! 2.5, though, and the getk2.org/extend/extensions/193-dm-related-articles-for-k2 which I'm afraid is a commercial one.
Also you can watch this: getk2.org/documentation/videos/720-how-to-add-a-related-items-by-category-module
- lievito
16 Jan 2014 11:25
articolok2: immagine e codice garmin scomparsi was created by lievito
articolok2: immagine e codice garmin scomparsi
Category: Comunità italiana K2
Salve a tutti,
all'interno della scheda contenuto nell'articolo K2, dopo il testo, ho inserito un pulsantino immagine di prenotazione e a seguire un codice di inserimento mappe garmin e al primo salvataggio tutto ok.
Succede però che quando vado a riaprire l'articolo da back end per modificare qualcosa, scompare sia il pulsantino, sia il codice garmin, per cui ogni volta devo obbligatoriamente reinserire il pulsante e il codice.
Dove è lo sbaglio?
Grazie
all'interno della scheda contenuto nell'articolo K2, dopo il testo, ho inserito un pulsantino immagine di prenotazione e a seguire un codice di inserimento mappe garmin e al primo salvataggio tutto ok.
Succede però che quando vado a riaprire l'articolo da back end per modificare qualcosa, scompare sia il pulsantino, sia il codice garmin, per cui ogni volta devo obbligatoriamente reinserire il pulsante e il codice.
Dove è lo sbaglio?
Grazie
- Blu Dove Designs
16 Jan 2014 08:07
Replied by Blu Dove Designs on topic yet another 1064 You have an error in your SQL
yet another 1064 You have an error in your SQL
Category: English K2 Community
:(
The problem is still persisting after the update to the development version of K2. The same error I previously posted is occurring.
I also tried to create a new item and got the following error:
You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')}' at line 1 SQL=DELETE FROM j3_k2_tags_xref WHERE itemID={intval()}
I seriously need help to resolve these issues...
The problem is still persisting after the update to the development version of K2. The same error I previously posted is occurring.
I also tried to create a new item and got the following error:
You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')}' at line 1 SQL=DELETE FROM j3_k2_tags_xref WHERE itemID={intval()}
I seriously need help to resolve these issues...
- ljk
15 Jan 2014 23:28
Replied by ljk on topic SOLVED: How to access extra fields in tag template
SOLVED: How to access extra fields in tag template
Category: English K2 Community
Hi,
Please look at tag.php the foreach loop that I pasted is what is in the default tag template starting at line 35 it has:
If you add a foreach loop inside the items one like so:You get this error:
Warning: Invalid argument supplied for foreach() on the line that has the second foreach loop to loop through the extrafields.
tag.php just doesn't work like all the other template files. Could a developer look at this problem, try to access the extrafields in tag.php?
Thanks.
Please look at tag.php the foreach loop that I pasted is what is in the default tag template starting at line 35 it has:
<?php if(count($this->items)): ?> <div class="tagItemList"> <?php foreach($this->items as $item): ?> <!-- Start K2 Item Layout --> <div class="tagItemView">If you add a foreach loop inside the items one like so:
<?php if(count($this->items)): ?> <div class="tagItemList"> <?php foreach($this->items as $item): ?> <?php foreach ($item->extra_fields as $key=>$extraField): ?> <?php echo $extraField->value; <?php endforeach;?> <!-- Start K2 Item Layout --> <div class="tagItemView"> Warning: Invalid argument supplied for foreach() on the line that has the second foreach loop to loop through the extrafields.
tag.php just doesn't work like all the other template files. Could a developer look at this problem, try to access the extrafields in tag.php?
Thanks.
- m4573r
15 Jan 2014 10:33
Replied by m4573r on topic No images when displaying articles with tag
No images when displaying articles with tag
Category: English K2 Community
Yes, you're right. It was first and last article, but in meantime other users added more articles. It's curious that all images for those new articles are displayed properly.
All settings - for subcategories and articles should be inherited from main category without any overrides on subcategory or aricle level (I have checked to be 100% sure). All of those articles are in one subcategory "edukacyjne".
Other extensions should be safe - I have used them before with K2 and I never had any problems. I have acy mailing, akeeba backup, breezing forms, dm pinboard and jce. There are also some modules: cookies accept, ga k2 slider and news show sp2.
All settings - for subcategories and articles should be inherited from main category without any overrides on subcategory or aricle level (I have checked to be 100% sure). All of those articles are in one subcategory "edukacyjne".
Other extensions should be safe - I have used them before with K2 and I never had any problems. I have acy mailing, akeeba backup, breezing forms, dm pinboard and jce. There are also some modules: cookies accept, ga k2 slider and news show sp2.
- Krikor Boghossian
13 Jan 2014 14:36
Replied by Krikor Boghossian on topic K2 Field (embed code) possible twice?
K2 Field (embed code) possible twice?
Category: English K2 Community
Actually the embed code can only be used once.
For the rest of the songs you can use the tags AllVideos offers.
Please check the documentation for more info: www.joomlaworks.net/docs/allvideos
For the rest of the songs you can use the tags AllVideos offers.
Please check the documentation for more info: www.joomlaworks.net/docs/allvideos
- Krikor Boghossian
13 Jan 2014 13:18
Replied by Krikor Boghossian on topic How do I hide metadata tags from displaying
How do I hide metadata tags from displaying
Category: English K2 Community
It is most likely a content or K2 plugin if you can also see it with the default template.
Try filtering your plugins from the plugin manager to narrow down the results.
Try filtering your plugins from the plugin manager to narrow down the results.
- m4573r
11 Jan 2014 22:06
Replied by m4573r on topic No images when displaying articles with tag
No images when displaying articles with tag
Category: English K2 Community
Sure.
Link
After your suggestion I have asked FavThemes support about this issue and here's their answer:
"The template is not designed to limit in any way the number of images and/or taget the first-child ( this means the first item from a list ) and/or last-child ( the last item from a list ) to show or not to show the images or the articles.
Now, K2 also has a very specific way of inserting images inside articles (K2 Items). The code for the article where you have the image has an image block with specific K2 CSS classes that are the default ones from k2.css and are not overriden by k2style.css of the Favourite template: "tagItemImageBlock" and "tagItemImage".
In the code for the article where the image is missing, these classes are absent, like K2 does not even have the image inside that article.
Can you please try to test if you enable one of the default templates like Protostar and Beez if the images will be displayed? If the images do not appear at all, even when using a default Joomla! template, it means that this has to do with the K2 settings and it's not something controlled by the template."
I have tested with protostar template and problem is still existing.
Link
After your suggestion I have asked FavThemes support about this issue and here's their answer:
"The template is not designed to limit in any way the number of images and/or taget the first-child ( this means the first item from a list ) and/or last-child ( the last item from a list ) to show or not to show the images or the articles.
Now, K2 also has a very specific way of inserting images inside articles (K2 Items). The code for the article where you have the image has an image block with specific K2 CSS classes that are the default ones from k2.css and are not overriden by k2style.css of the Favourite template: "tagItemImageBlock" and "tagItemImage".
In the code for the article where the image is missing, these classes are absent, like K2 does not even have the image inside that article.
Can you please try to test if you enable one of the default templates like Protostar and Beez if the images will be displayed? If the images do not appear at all, even when using a default Joomla! template, it means that this has to do with the K2 settings and it's not something controlled by the template."
I have tested with protostar template and problem is still existing.
- bowoulan
11 Jan 2014 03:16
Replied by bowoulan on topic I receive {* youtube}Youtube ID{* /youtube} tag and no video in my item
I receive {* youtube}Youtube ID{* /youtube} tag and no video in my item
Category: AllVideos
Hi Sir!
I confirm the allvideos plugin non-functional at all even in K2 articles. I think because of the (*) sign within the tag. How can I manage to remove it?
Thank a lot for your support...
I confirm the allvideos plugin non-functional at all even in K2 articles. I think because of the (*) sign within the tag. How can I manage to remove it?
Thank a lot for your support...