Keyword

Advanced Search

Search Results (Searched for: k2 Tag)

  • Dragan Todorovic
  • Dragan Todorovic's Avatar
29 Dec 2010 20:26
Search plugin still not fixed was created by Dragan Todorovic

Search plugin still not fixed

Category: English K2 Community

After several hours searching the web and forum ,  I am sorry but the search module function K2 tools does not work at all.

 

Joomla : 1.5.22

K2: 2.4.1

php 5.2.9

MySql : 5..1.36

tested:

K2 search plugin ,     enabled,

K2 search plugin ,     DISABLED,

2 tags added , test   and test2

only 4 k2 items, 3 have same tags , 1 none

NO joomla cats or news items, fresh install no sql sample data used

 

search returns blank

 

according to debug log  , it does not look trough tags at all so the result is 0

 

 

#SELECT COUNT(*)  FROM jos_k2_items AS i  LEFT JOIN jos_k2_categories c  ON c.id = i.catid  WHERE i.published = 1  AND i.access <= 0  AND i.trash = 0  AND c.published = 1  AND c.access <= 0  AND c.trash = 0  AND ( i.publish_up = '0000-00-00 00:00:00' OR i.publish_up <= '2010-12-29 18:22:03' )  AND ( i.publish_down = '0000-00-00 00:00:00' OR i.publish_down >= '2010-12-29 18:22:03' )  AND MATCH(i.title, i.introtext, i.`fulltext`,i.image_caption,i.image_credits,i.video_caption,i.video_credits,i.extra_fields_search,i.metadesc,i.metakey) AGAINST ('test*' IN BOOLEAN MODE)

 

 

am I missing a setting?
  • 野草工作室
  • 野草工作室's Avatar
29 Dec 2010 20:25
About tag layout was created by 野草工作室

About tag layout

Category: English K2 Community

My website had two categories of products and blog , i want  to build two different tag layout ,How should I do...?

Products pages need three columns( display some edextrafields) and blog pages need a column,the categories layout easy to achieve,but i can't find any method for tags layout.

If k2 can assign different tag layouts depending on the tags menu parameters,It will be very helpful...

Thanks much~!
  • Nick
  • Nick's Avatar
29 Dec 2010 17:20

Display "coming-soon" image when no image is uploaded

Category: English K2 Community

I took it upon myself to display a standard image when no image has been uploaded. Personally I am using this for some automation since I am inserting data into the DB automagically and the image has to be added later on. So for people who are seeking this functionality: open up your item.php file from your template (or wherever you have it stored) and search for this line:



(obviously every [ ] is a carrot sign but ning is being gay)

should be around line 200. This is where the code for the image is initialized. Now as you can see the php tag checks if the image is NOT empty (with the !). If it is NOT empty it executes the code under it. What we want to do is put another check in between



[?php echo $this->item->event->K2BeforeDisplayContent; ?]

and

[?php if($this->item->params->get('itemImage') && !empty($this->item->image)): ?]


Paste the attached code between those 2 bits of code.. basically replacing the "and"

Now we want to do the same for the category_item.php and it's almost the identical process.

open that file up and go to around line 110. Again look for those 2 pieces of code that i have above (they are the almost the same in both files)

Add between them the attached code!

Save and you're done! BTW.. you OBVIOUSLY need to have a coming soon image stored in your images folder or wherever. Currently it's set to /images/coming-soon.jpg and /images/coming-soon-s.jpg (for the small version)

You will need to create the images in the same size as whatever sizes you are using for those two display modes. I don't know what will happen if you don't... If it doesn't work just replace

[?php echo $this->item->imageWidth; ?]

by a NUMERICAL value in both files (270 for example)

Hope this helps out people!
  • Luis Martin
  • Luis Martin's Avatar
29 Dec 2010 12:39

How to add an extra field as an external link

Category: English K2 Community

Hello, I'm new to K2 and I'm still walking my first steps on it, even though I've been using Joomla for 2 years. I admit I had to pay more attention to this exciting extension earlier than I did.

 

There's something I need to do but I don't know how:

there are certain category items which are related to an external gallery. I don't want to use the built-in K2 gallery (because the galleries must be created in another site). So what I simply need for each item is a link to its corresponding gallery.


What I first tried was to add an extra field called "gallery URL" of type "textfield" for this category, and when a new item is created, fill in the field with the external URL, but the URL is displayed as plain text, not as a link.

 

As I've checked, a work around would be to enter the html hyperlink using the <a> tag, but these items must be created by editors who don't know about HTML, plus it might get a little tedious for them to add HTML instead of just doing a copy-paste of the URL.

 

So, is there any way to automatically do this?

 
  • FidelGonzales
  • FidelGonzales's Avatar
28 Dec 2010 11:13
Replied by FidelGonzales on topic Items in Multiple Categories

Items in Multiple Categories

Category: English K2 Community

What follows is an excerpt of a post I made upon another thread regarding the capability of placing an item within multiple categories, which is a logical feature for a variety of content producers. 

Just to clarify, as it stands now for a user, there can be three different pages referencing a user. Here is an outline of them as well
as their limitations.

TAG PAGE - All references to a user via tags is listed on the
more SEO rich tag page. This doesn't have a description for additional
information and thereby does not process a plugin. The content that does
exist on this page can generally be more numerous and targeted at the
user's tag. The only way to provide additional information would be via
published modules. FEATURE REQUEST - Provide the functionality to optionally include a Joomla plugin-processing description for individual tags. FEATURE REQUEST -
Provide the functionality to be able to redirect the tag to a different
URL, which could be used to monetize such a functionality from
advertising platforms in conjunction with available analytical tracking
capabilities.

USER PAGE - As a user, particularly as a content-producing user,
that user is given a user page, where plugins are not processed, and the
only content that exists upon that page is that which the person
produces. Perhaps, an additional field can be provided to place a link
to the content page referenced below, or better yet, the code could be
hacked and the link to the user page instead refer to the content item. FEATURE REQUEST - - Enable the capability to process Joomla plugins within the description. FEATURE REQUEST - Enable the capability to redirect default user link to other URL.

CONTENT PAGE - As a content page dedicated to the user, it
processes plugins. Therefore, there is no need to orchestrate a
cumbersome array of template module positions to assist in publishing of
related content items, as it can be published via plugin within
content, which is much easier to manage via one content item. The
drawback here is that this creates a third reference to the person,
making navigation cumbersome to the website visitor seeking additional
information on the person. It also create another reference for SEO
purposes.


 


James Friesen said:


zach s said:
There were some previous comments asking reasons or examples why this would be needed. In my case, I'd like to have 'product categories' section and 'manufacturers' section that lead to the same item. That's a really big and basic example. I could just do all the manufacturers as a tag, but I'd rather use the tags for specific properties of an item. OT, but not really: I do feel that the current handling of k2/k2mart/virtuemart and 'manufactures' is a bit wonky and ugly to deal with. I'd rather when they click 'manufacturer' on an item page, they go to something k2 and not back into virtuemart where prior to k2 it would display all items of a 'manuf', but will not now that k2 took over. If that makes sense? I could be doing it wrong as well...

Tags do seem the obvious solution, but again, many of us need or would like to use the tag system for 'recycled material' instead of 'BRAND X', and other endless examples. Maybe the tag system needs its own categories to achieve this? Maybe that's already there and I haven't played around enough?


I would look at using k2's author function to handle manufacturers... and if you are building from scratch I would suggest you heavily consider Tienda (from dioscouri.com) as a VirtueMart alternative. K2 has a plugin for integrating with Tienda.
  • steve02a
  • steve02a's Avatar
28 Dec 2010 10:14
Replied by steve02a on topic k2.css file question

k2.css file question

Category: English K2 Community

That worked! OMG! - Thank you so much?

How on earth did you come to figure it was in the template.css file and that div tag..... ?? Crazy!

Thank you so much again...saved me hours of mulling through css code (finding nothing)
  • steve02a
  • steve02a's Avatar
28 Dec 2010 09:45
k2.css file question was created by steve02a

k2.css file question

Category: English K2 Community

In the k2.css file located in the \components\com_k2\ folder, there is a line that looks like this:

div.itemHitsTwitter {padding:4px;border-bottom:1px dotted #ccc;}
span.itemHits {}
span.itemHitsTwitterSep {padding:0 8px;color:#ccc;}
span.itemTwitterLink {}
span.itemTwitterLink a {background:url(../images/social/twitter_16.png) no-repeat 0 50%;padding:2px 0 0 20px;margin:8px 0;text-decoration:none;}
span.itemTwitterLink a:hover {text-decoration:none;}

If you have the "Like this? Tweet it to your follows" enabled in K2, the twitter image will show up and the link too, on your site - and it puts a dotted line under it - hence the css tag of border-bottom:1px dotted. Ok, I get that and understand that part.

That was just the preamble. My question is based in the attached image.

In my joomla temple, I'm utilizing the right module for a google adsense ad. That works - no problem. However, see in the image - the horizontal line under my ad. I suspect K2 is doing this - but I simply cannot find in any file, where this horizontal line is coming from. Does anyone know how I can get rid of this line? what file in K2 could be causing this? Any css tags? Anything?

thank you in advance for your help and please feel free to ask more questions.

You can see this live too on my site - www.mysharepointguru.com
  • Casper Voogt
  • Casper Voogt's Avatar
28 Dec 2010 06:49
Replied by Casper Voogt on topic Dash stripped in tags

Dash stripped in tags

Category: English K2 Community

It would be great if tags could have a "for display only" text field, and an Alias field. 

For words like "e-learning", using the dash is the only proper spelling. Leaving it out looks unprofessional (for my site, anyway). I don't have to have the dash in the alias, just in the tag that gets displayed on the page.

I managed to get around the issue by using  the n-dash HTML element: –

Lefteris Kavadas said:

Hi. We took this decision because there was a problem when using tags with dash and SEF URLs. When a tag contained a dash then the SEF URL was something like : /blah/blah/tag-with-dash. The problem is that Joomla uses the dash character to define the id and the alias in a URL. For example a URL to a K2 item or a com_content article is something like this: /blah/blah/id-alias. So the problem is obvious. Any tag with dash is split by Joomla and this leads K2 to have problems getting the tag from the URL.
  • ELEFTHERIOS MANOLIS
  • ELEFTHERIOS MANOLIS's Avatar
27 Dec 2010 15:38
Replied by ELEFTHERIOS MANOLIS on topic K2 Tag display module in grid view [solved]

K2 Tag display module in grid view [solved]

Category: English K2 Community

thank you very much andryw
i change the files and now works fine
thank you very much



andyw said:I found that some changes I suggested was not made.  I simply made those changes to your files, and let's see if that works.
  • andyw
  • andyw's Avatar
26 Dec 2010 15:47

K2 Tag display module in grid view [solved]

Category: English K2 Community

I found that some changes I suggested was not made.  I simply made those changes to your files, and let's see if that works.
  • ELEFTHERIOS MANOLIS
  • ELEFTHERIOS MANOLIS's Avatar
26 Dec 2010 14:17
Replied by ELEFTHERIOS MANOLIS on topic K2 Tag display module in grid view [solved]

K2 Tag display module in grid view [solved]

Category: English K2 Community

andryw, this is my generic.php and my k2.css

from my 

components/com_k2/templates/default/generic.php


components/com_k2/css/k2.css

 

thank you very much
  • Miro Mitov
  • Miro Mitov's Avatar
25 Dec 2010 16:24
Tags and Joomla SEF was created by Miro Mitov

Tags and Joomla SEF

Category: English K2 Community

Hi,

I am using the joomla sef and there seems to be something strange with the K2 tags. When i am on the homepage or any other non K2 page and i click on a tag for example, the tag 'class' i get this url:

 

/component/k2/itemlist/tag/class.html

 

When i am on a category, or an item (or any other K@ page) and i click a tag, i get the following url:

 

/gadgets/itemlist/tag/class.html

 

2 problems:

 

1. How can i edit the first url to remove the component/k2/ bit out of it?

2. The same structure url follows for any other category...

 

So... if i am on the category Architecture, and i click on the tag class, it displays all of the items which are tagged as class... problem:

 

ULR looks like this: architecture/itemlist/tag/class.html

Breadcrumbs look like this:   Home > Architecture > Displaying Items by Tag: class

 

I hope you can see the problem with this... how can it be fixed?

 

Miro
  • yaksushi
  • yaksushi's Avatar
25 Dec 2010 13:08

"Latest items from author", side by side whit "Related by tag items"

Category: English K2 Community

Anyone do this?

Yiota Ziaggou said:
First of all you will have to make a K2 template override in case you don't have already (copy the templates folder from components/com_k2/ to templates/your template/html/com_k2/). Then open the item.php file, locate the 2 blocks and put them one right under the other. Make sure that there is no clr div between them, but put one right after the Related Items and just in case, put also one before the Latest items from author.
Then all you need to do is write some CSS in order to place the one right next to the other. Use float:left and width.
  • Albert
  • Albert's Avatar
25 Dec 2010 04:22
Replied by Albert on topic K2 Tag display module in grid view [solved]

K2 Tag display module in grid view [solved]

Category: English K2 Community

Try giving the category item block a fixed height.

manolo said:
 

hello  andyw


 

bravo for your excellent hack

 

it is possoble to help me with this problem?

 

when i display 'Tag' items with image (for example "poster tag"), the justify, crash.

Propably this happens because the images does not have the same length.

It is possible to set a specific length for all image?

 

thanks



 






 

 

 

 

 
  • andyw
  • andyw's Avatar
24 Dec 2010 20:01

K2 Tag display module in grid view [solved]

Category: English K2 Community

could you post the html source code?  i can have a look. manolo said:

 

hello  andyw


 

bravo for your excellent hack

 

it is possoble to help me with this problem?

 

when i display 'Tag' items with image (for example "poster tag"), the justify, crash.

Propably this happens because the images does not have the same length.

It is possible to set a specific length for all image?

 

thanks



 






 

 

 

 

 
  • Olivier Karfis
  • Olivier Karfis's Avatar
24 Dec 2010 02:01
Replied by Olivier Karfis on topic 'One css per k2 template' plugin

'One css per k2 template' plugin

Category: English K2 Community

Hi Olivier,

 

Thanks for the offer, I'll give you access to a staging copy that exhibits the same issues.  I'll PM you the details.

Best,

 

--Olivier


Olivier Nolbert said:

Hi Olivier,

 

I've checked on the same configuration as yours : K2 v2.4.1, sh404SEF and css4k2 v1.2.5

 

I can't reproduce the problem. I think it comes from the custom template directory that is modified due to the extra url info but i really don't knwow how.

If i want to test further, i would have to test on your live website with a special version of the CSS4K2 plugin.

 

PM me if you want me to do this.

 

Regards,

 

Olivier
  • Phil Walton
  • Phil Walton's Avatar
22 Dec 2010 15:52

Tags not in alphabetical order in the available tags box

Category: English K2 Community

Hi, really enjoying K2 and our first time using it for a client, although I have come across a few bugs which have been reported on this forum and seem to have remained unanswered , both for almost a year.

This particular one is mentioned in several bug posts and all remain unanswered. I cannot add to the posts as they are locked so have had to start a new one.

My question is, will this be fixed any time soon, is it deemed as not necessary or just missed.

Our client has 500 tags and is finding the random nature drives them mad. I agree with them that it does not help in grouping the tags to see if someone has already added it or added it with a capital or lowercase (both would in k2 produce a new tag and so split the key word in to two) resulting in articles being incorrectly tagged

 

There was a post and solution for this 11 months ago but no one responded to the chap and we are using latest k2 so its not been adopted. If Joomla works does not think it a bug then fine, I will patch it on mine, just would prefer to know one way or other so I don't do the changes and find its just been fixed and brought in to the code.

 

Kind regards

 

Phil

 

Previous post with solution

 

Hello All,

 

In K2 Item display the tags list is displayed by id rather than Alphabetically. Not sure if this is a "bug" but the SQL code in models/item.php getItemTags, line 694, should be:

 

$query="SELECT `id`, `name` FROM #__k2_tags as tags WHERE tags.published=1 AND tags.id IN (SELECT `tagID` FROM #__k2_tags_xref WHERE `itemID`={$itemID}) order by `name`";

 

Also in the administration area change the following functions in models/item.php...

 

    function getAvailableTags($itemID = NULL) {

        $db = &JFactory::getDBO();        $query = "SELECT * FROM #__k2_tags as tags";        if (!is_null($itemID))            $query .= " WHERE tags.id NOT IN (SELECT tagID FROM #__k2_tags_xref WHERE itemID={$itemID})";  $query .= " ORDER BY `name`";        $db->setQuery($query);        $rows = $db->loadObjectList();        return $rows;    }

    function getCurrentTags($itemID) {

        $db = &JFactory::getDBO();        $query = "SELECT * FROM #__k2_tags as tags WHERE tags.id IN (SELECT tagID FROM #__k2_tags_xref WHERE itemID={$itemID}) ORDER BY `name`";        $db->setQuery($query);        $rows = $db->loadObjectList();        return $rows;    }

 

Jw
  • Debbie Lane
  • Debbie Lane's Avatar
22 Dec 2010 14:57
Replied by Debbie Lane on topic Anchor Link to Additional Info (Extra Fields)

Anchor Link to Additional Info (Extra Fields)

Category: English K2 Community

Thanks, very much appreciated. I will try what you  have suggested and pm you if I have a problem!


William White said:

A quick look at item.php shows that there is a list of toolbar items that are displayed based on the values in the category paramaters. The item for gallery points to an a tag down the way where the image gallery is shown.

Adding one for additional information should be ok to do, but there will not be a category paramater to turn it on and off as is for the others. This should be done in a k2 override.

see line 145 thru 150 for the tool bar code

See line 481-488 for the display of the gallery

you can pm me for help if you like
  • william white
  • william white's Avatar
22 Dec 2010 14:08
Replied by william white on topic Anchor Link to Additional Info (Extra Fields)

Anchor Link to Additional Info (Extra Fields)

Category: English K2 Community

A quick look at item.php shows that there is a list of toolbar items that are displayed based on the values in the category paramaters. The item for gallery points to an a tag down the way where the image gallery is shown.

Adding one for additional information should be ok to do, but there will not be a category paramater to turn it on and off as is for the others. This should be done in a k2 override.

see line 145 thru 150 for the tool bar code

See line 481-488 for the display of the gallery

you can pm me for help if you like
  • ELEFTHERIOS MANOLIS
  • ELEFTHERIOS MANOLIS's Avatar
21 Dec 2010 23:50
Replied by ELEFTHERIOS MANOLIS on topic K2 Tag display module in grid view [solved]

K2 Tag display module in grid view [solved]

Category: English K2 Community

 

hello  andyw


 

bravo for your excellent hack

 

it is possoble to help me with this problem?

 

when i display 'Tag' items with image (for example "poster tag"), the justify, crash.

Propably this happens because the images does not have the same length.

It is possible to set a specific length for all image?

 

thanks



 






 

 

 

 

 
Displaying 5421 - 5440 out of 6582 results.

Powered by Kunena Forum