Keyword

Advanced Search

Search Results (Searched for: k2 Tag)

  • Mikhail Jakovlev
  • Mikhail Jakovlev's Avatar
14 Mar 2011 16:17
Replied by Mikhail Jakovlev on topic Bugs with non-standard symbol in tags

Bugs with non-standard symbol in tags

Category: English K2 Community

Here are solution for ampersand symbol. We need to add string $tag = str_replace('&','',$tag); in file components/com_k2/sef_ext/com_k2.php after

            case 'tag':

                $title[] = 'tag';

(around 155th string)

 

Still looking for solution with apostrophe ($tag = str_replace('%27','',$tag); — doesn’t work). Temporary I’ve solved it by replacing ’ symbol instead standard '.
  • Michael Tull
  • Michael Tull's Avatar
14 Mar 2011 16:07

Multiple Catagory display with multiple templates...

Category: English K2 Community

 

 

Ok, so here is what I am looking to do, and I am hoping that someome might be abel to point me in the right direction.

 

I have two ( at this stage ) Catagories - Events and News. ( oh and I am using CSS4K2)

 

I want to display SOME items from both these catagories on the front page.  So I looked around and yes.. I can use a "frontpage" tag, or the latest items to do this, and it works, however these two catagories have two compleatly different templates in catagory list view.  The news is a pretty basic blog, but the events are not, with a number of individual extra fields being displayed ( not displaying all the fields in the list view )

When I use tags or latest, bang.. I have another template to mess with being 'generic'.. and they all have to look the same, which just does not work for what I want to do.

 

What I would like to do is either.. preferably 1) Display items from multiple catagories where each item retains its own CatItem template and the items are displayed in and order (latest etc) ...

 

Or display News and Events in two sections on the main content area on the front page using their own catlist templates.

 

I have looked at a few extensions but have not come up with an answer.. ( looking at K2 content wall from Jxtc next.. )

I thought about using k2_content and adding two module into content area with loadpos etc but have not had a chance to try it yet to see if it will get everything I need.. and how flexible/ what sub templates do.. and beside, thats a whole lot of extra work IF there is a way I can just 'retain' the template for individual items in a multi cat view.

 

I am hoping for a little advice, through, suggestions from anyone out there who knows a lot more than me.

 

Many thanks in advance.

 

Michael Tull
  • Mikhail Jakovlev
  • Mikhail Jakovlev's Avatar
13 Mar 2011 19:27
Replied by Mikhail Jakovlev on topic Bugs with non-standard symbol in tags

Bugs with non-standard symbol in tags

Category: English K2 Community

I’ve found solution with dashes. If somebody as me wants to keep dashes in tags, you need to remove $this->name = str_replace('-','',$this->name); from /administrator/components/com_k2/tables/k2tag.php
and           $tag = str_replace('-','',$tag); from
/administrator/components/com_k2/models/tag.php
/administrator/components/com_k2/models/item.php
 
And it works fine! Keep looking solutions for other tags issues.
  • Carlos
  • Carlos's Avatar
11 Mar 2011 03:12

Change Category Listing Page Title to Category - Parent Category

Category: English K2 Community

Hi.

 

I'm trying to change the page title (<title></title>  tags) from showing only the current category to show Category - Parent Category.

 

I managed to get it working on the item view following some advise from community.getk2.org/forum/topics/custom-page-title, but not on the category listing page.

 

Here's the code that worked on view/item/view.html.php but didn't on view/itemlist/view.html.php

 

On line 236, changed:

$params->set('page_title', $item->cleanTitle);

to:

$params->set('page_title', $item->cleanTitle . ' - ' . $item->category->name);

 

Hope someone can help me with this.

 

Thanks in advance :)
  • Dave Richards
  • Dave Richards's Avatar
10 Mar 2011 20:32
Backing out of K2 (I'm new - sorry) was created by Dave Richards

Backing out of K2 (I'm new - sorry)

Category: English K2 Community

Ok, I have this fear regarding K2. From what I've read, I need to migrate my current content into K2 and create new content there in order to take advantage of its capabilities. Is this correct?

 

My fear is what if I decide to move away from K2, then I don't have a way to migrate all of the original as well as the new content back into Joomla's core. Is there a way to do this? I really am not comfortable with using a 3rd party component to manage what Joomla should be able to manage on its own.

 

Am I crazy for having this concern?
  • michael neese
  • michael neese's Avatar
09 Mar 2011 21:40
"alt" tags for images? was created by michael neese

"alt" tags for images?

Category: English K2 Community

I have been looking at some SEO evals for a site of mine and google is not happy with images that don't have alt tags...am I missing something in the k2 interface for alt tags?
  • sondre jensen
  • sondre jensen's Avatar
08 Mar 2011 21:01
Weird signs in introtext on all articles. was created by sondre jensen

Weird signs in introtext on all articles.

Category: English K2 Community

Hi!

 

I've recently discovered K2, and transitioned in to K2 about a week ago. I'm currently building a new site for my business, and currently have it on my PC, using a wamp server (wamp2.0).

 

I've discovered this bug with articles in category view, my frontpage. The problem is when I set introtext to be cut to X number of words, these wierd signs appear in the introtext. They are not there once I open the full article, or when introtext limit is not set. In Chrome the signs looks like a diamond with a question mark in it, while in Opera and I assume IE, they look like empty squares. 

 

It does not really makes sense to me that this is an encoding error, since the problem is only there when the introtext is cut for the category viewing page. Besides, both my wamp server and the joomla page is encoded in utf=8, which is the correct one, right? (I've never tampered with this, just noticed that this is the case)

 

I'm using a Norwegian translation of joomla and K2. And I'm either blind, or there is nothing in the articles codes that can cause these silly signs. What I did notice from the articles code however, is that since the language is set to Norwegian (I assume), SOME, not all of them, have these <span lang="NO-NYN"> tags within every <p></p>. And it seems like articles gets these signs in category view regardless. The span tags may have been adopted when copying text off of old articles from the old website.

 

But, it appears to me that the introtext cutting script strips the text for any html code, is this correct? If so, might that be the problem? That the text doesn't have these <span lang="NO-NYN"> encapsulating it? If so, it is even weirder that articles that don't have those tags, doesn't have any encoding errors in fulltext. 

 

I'm at a total loss here, perhaps it's just the wamp server, if that's the case then its not really a problem, seeing as its going go live sooner rather than later. 

 

 

 

 

Thanks in advance for any help and answers! 

Best regards!
  • joomGO
  • joomGO's Avatar
07 Mar 2011 21:02

Product Catalog with Multiple Extra Fields?

Category: English K2 Community

I'm trying to figure out how to best use K2 to manage all of the inventory/product catalog for a website we are developing.

 

Here is an example:

www.heidlerhardwood.com/Inventory.htm

 

The problem I run into is if I setup an item for each product item (such as Aniegre, Ash, Ash Special Widths, etc.), how can I make it so each time can have multiple group field entries.

 

For example:

 

Aniegre has 3 types that they stock with the specific thickness, grade and footage on hand.

Ash has 18 different types that they stock with the specific thickness, grade and footage on hand.

 

Will K2 work to manage their product catalog or is there a better option out there?
  • matthew turner
  • matthew turner's Avatar
07 Mar 2011 18:31
Replied by matthew turner on topic Multiple Category Menu Item Layout order??

Multiple Category Menu Item Layout order??

Category: English K2 Community

Hi Alan,

Sorry it did not help :(

I ended up "faking" it - I used a combo of "empty" categories (with category description displayed - but no items) and k2 content modules, and k2 content by tag modules to display JUST the items I wanted.... Not ideal as it involves manually setting each page up... but it worked - and can be over ridden by metamod pro as required! (site is live - PM me if you want the URL ?) - I am also using this technique(?) to allow multi tag searching on the site !

I am looking into modifying the menu item for "latest items" (setting number of items to display), as I think this may have more scope than the multiple category menu item....(just tested works with subcategory items - one item from the selected categories/subcategories - again PM me for the URL - I have a test copy of the site and will try adapting it to order by "Display order id" - I have not modded the templates to match the existing site for this yet - the items are dark grey text on black background - or even looked at them for long enough to have sorted the css, but it works enough to test - will do later today)

I do think this is possible -  but it just hurts my head when I am working to a deadline for a client and what "should" work doesn't!

Let me know...

Regards

Mat
  • Pete Stevens
  • Pete Stevens's Avatar
07 Mar 2011 16:26
Replied by Pete Stevens on topic Facebook 'like' button

Facebook 'like' button

Category: English K2 Community

further update - solution to chosen facebook image

 

found what seems like a nice simple plugin that picks the first image from article/item (or category if you have not disabled like at category level - see my earlier reply) and passes it through to facebook.So you just need to enable this plugin after installing and then make the image you want in facebook to be your first image in your article/item.

 

www.perfect-web.pl/download/joomla/plugins/file/7-facebook-link-content-image-j15

 

It does it by generating the necessary image_src meta tag, (slightly different format than I had specified in my experiment)

<link href="http://www.url-imagepath/imagename.jpg" rel="image_src" />

but I guess it's the same thing

 

hope you guys can now get your k2 facebook like plugin to work how you want now, I'm happy with mine ;)

 

Pete

 

Pete Stevens said:

update:

I did an experiment. I've found that adding an image src tag into the template html tells facebook which image to use:

e.g.in the head section I added a tag of this format:

 

<link rel="image_src" href="http://www.url-imagepath/imagename.jpg"/>

facebook then used this specified image in the like link. Great.so then tech people, how can we dynamically generate this code so that the html for each item page includes a image-src tag for the image associated with the item?
 

n.b can add description and keyword metatags for each item using metadata information parameters but there is no option to add image meta as far as i can tell)

 

Pete

 

Pete Stevens said:

Hi Ryan,

to disable it from category view (so only shows on items):

go to each category where you want it disabled, or if you have set your categories to 'inherit parameter options from (a specified) category' then you can just disable it there so that all categories inherit the setting.

 

from the parameters select 'item view options in category listings' - scroll down to Advanced and change 'Enable k2 plugins' from yes to No

 

I don't think this plugin is for twitter to but you can use it in conjunction with AddThis (you can search the forum for AddThis info).

 

Unfortunatly I haven't yet cracked the problem that Kire is experiencing. I too am seeing an image (from the same page I think) other than the one I have associated with the item on the liked link in facebook.

 

Any ideas?

 

Pete
  • Alan Sparkes
  • Alan Sparkes's Avatar
07 Mar 2011 11:20
Replied by Alan Sparkes on topic Little CSS K2 sub template cleverness

Little CSS K2 sub template cleverness

Category: English K2 Community

Depends what your K2 template is like.

IF you think that the standard K2 item.php template has a container tag 

<div id="k2container>

Then a sub template could have <div id="[template name]" 

using this approach.
  • BRENO T L DE SOUZA
  • BRENO T L DE SOUZA's Avatar
07 Mar 2011 09:39
Replied by BRENO T L DE SOUZA on topic Little CSS K2 sub template cleverness

Little CSS K2 sub template cleverness

Category: English K2 Community

where i need to insert the tag?

thanks
  • Tony Simpson
  • Tony Simpson's Avatar
07 Mar 2011 00:13
Introtext issue was created by Tony Simpson

Introtext issue

Category: English K2 Community

Hello. I have had a number of stories setup for sometime on our site that are listed in both a K2 content module and a catagory listing from a menu item. I have changed one of these items today and it no longer seems to detect the "readmore" horizontal rule doesn't seem to be working. I have created a new item and that doesn't work probably either. I'm not sure what I have changed on the site that might have done this???

 

Do you have any ideas?

 

Thanks

 

Tony.
  • Pete Stevens
  • Pete Stevens's Avatar
05 Mar 2011 18:29
Replied by Pete Stevens on topic Facebook 'like' button

Facebook 'like' button

Category: English K2 Community

update:

I did an experiment. I've found that adding an image src tag into the template html tells facebook which image to use:

e.g.in the head section I added a tag of this format:

 

<link rel="image_src" href="http://www.url-imagepath/imagename.jpg"/>

facebook then used this specified image in the like link. Great.so then tech people, how can we dynamically generate this code so that the html for each item page includes a image-src tag for the image associated with the item? 

n.b can add description and keyword metatags for each item using metadata information parameters but there is no option to add image meta as far as i can tell)

 

Pete

 

Pete Stevens said:

Hi Ryan,

to disable it from category view (so only shows on items):

go to each category where you want it disabled, or if you have set your categories to 'inherit parameter options from (a specified) category' then you can just disable it there so that all categories inherit the setting.

 

from the parameters select 'item view options in category listings' - scroll down to Advanced and change 'Enable k2 plugins' from yes to No

 

I don't think this plugin is for twitter to but you can use it in conjunction with AddThis (you can search the forum for AddThis info).

 

Unfortunatly I haven't yet cracked the problem that Kire is experiencing. I too am seeing an image (from the same page I think) other than the one I have associated with the item on the liked link in facebook.

 

Any ideas?

 

Pete
  • krakaos
  • krakaos's Avatar
05 Mar 2011 14:11 - 22 Jun 2011 21:17

[Solved] don't need a span for titles on thumbnails when no labels file!

Category: Simple Image Gallery PRO

My problem i have the plugin is set to "Read Content of Caption file"
and i don't want to put labels for each gallery. For example in K2 Galleries i don't want to have labels. So i need to get title and descriptions only when the file is present.

When the file is missing an empty SPAN is created anyway which is disturbing because it has a background which for example make an empty black line on the bottom using the default template.

I need a modification to display captions from file only if found. if not it should react like for setting "no caption".

This is something i think which should be officially coded in the next update coz it make sense ;)

SOLVED! -> BELOW WHAT TO DO

In File plugins/content/jw_sigpro.php (Version 2.0.5)
 After line 154 "//Process tag" add this: $captionFile = "labels.txt"; $no_caption = ""; After line 175 "galleryID = substr(md5($key.$srcimgfolder),1,10); // create a unique 8-digit identifier for each gallery" Add this: if ($nocaption == ""){  $no_caption = '1';  if(file_exists($site_absolutepath.$srcimgfolder.$captionFile)){  $no_caption = '0';  } } And finally replace line 184 "if($gal_captions!=0){" with: if($gal_captions!=0 && $no_caption!=1){
  • maanojrakhit
  • maanojrakhit's Avatar
05 Mar 2011 13:56
Replied by maanojrakhit on topic K2 Menus

K2 Menus

Category: English K2 Community

BruHow, thanks.

 

I have explored and tested a number of other components and plug-ins of which some I use and some I abandoned.

 

But on menus, I haven't yet looked beyond what's available within Joomla. However, I also felt the process a bit tedious going through different stages that you describe, which at initial stages become a bit confusing, and later as you come to understand the concept it seems like unwelcome extra work. I would have loved the idea of creating menu and/or assigning to it while I am on article page but then I know it's not possible within current architecture of Joomla.

 

Yesterday, I tested Joomla 1.6 and found it has two great advantages over Joomla 1.5.22. It incorporates most essential features of K2. So, one may not need to install K2. Secondly, it allows Unicode URLs which comes very handy for multi-lingual sites like mine.

 

I am sorry that I couldn't be of much help with regard to questions you asked though I also find those very questions quite relevant.  
  • patrick bol
  • patrick bol's Avatar
04 Mar 2011 21:30
Replied by patrick bol on topic Food recipes in K2?

Food recipes in K2?

Category: English K2 Community

Perusi said:
I developed a recipes site with K2, it will be ready in about 2 weeks (online i mean, because now it`s on my pc :) ) so if you want help, send me a msg

sharky said:
Simon Wells (K2 Support) said:Hi SharkyOK, with K2 one of the main featured for you would be the nested categories, or categories within a category.An example for you would beMeat Dishes (category)Pork Dishes (sub category)Chicken Dishes (sub category)Lamb Dishes (sub category)Desserts (category)Cakes (sub category)Ices (sub category)Puddings (sub category)Blackberry (sub sub category)Strawberry (sub sub category)That would be a start of a structure.Then you create your K2 Items (replaces joomla articles)In your K2 items, you can then set tags as keywords to link the items.You can also create extra field groups for ingredients that maybe you would need.I have some documents over at K2joom.com which might help you get started or feel free to post more specific questions here, there are plenty of helpful users in the forums.SimonK2 Support


Many thanks for your reply.
I am now looking at it and came to think that it can be overwhelming many categories which can come in pull down menu on sight, but I have to try to get it to work as good as possible when I now want to use K2 for the task can be as low a standard template (document) which is set up to handle the recipes in K2?

-Henrik
Is your site online?
  • Mark Schultz
  • Mark Schultz's Avatar
04 Mar 2011 20:25
Replied by Mark Schultz on topic item author in generic.php

item author in generic.php

Category: English K2 Community

Hi Simon,

wondering what the status of this is... thanks...

 

Simon Wells (K2 Support) said:

I am working on a couple of possabilities and will psot a response here to cover this and a couple of other tag/generic views.

Simonk2 Suppot
  • Ninja Precision
  • Ninja Precision's Avatar
03 Mar 2011 22:05

Undesired Feature?? - Transparent PNG's convert to jpg and loose transparency

Category: English K2 Community

If you're using the K2 content module along with this fix you'll also have to edit the file modules/mod_k2_content/helper.php the same way you edited components/com_k2/models/item.php - this is where the K2 *content module* pulls the image file name from. Adding the if / elseif statements here lets the module choose your transparent PNG.

tim said:
Don't understand what you mean by the last stage. i have followed on a local host install and it seems to be creating a png and a jpg and still picking the converted png.(this is in the cache folder.)

So how do I get it to recognise the png.
  • canderson
  • canderson's Avatar
03 Mar 2011 16:31

Can I change the K2 Image tab root directory?

Category: English K2 Community

When I click on the K2 image tag and browse server, it opens in (server)/images.

I'd like to have this open in (server)/images/stories but can't find where to change this. I'm using JCE and its image manager is set to open in the images/stories directory but I'm having no luck finding where to change this item tab parameter.

Anyone seen this? Thanks in advance!

Chris
Displaying 5241 - 5260 out of 6582 results.

Powered by Kunena Forum