Keyword

Advanced Search

Search Results (Searched for: k2 Tag)

  • JoomlaWorks
  • JoomlaWorks's Avatar
01 Oct 2020 20:34
Replied by JoomlaWorks on topic K2 item - page title extra field not working

K2 item - page title extra field not working

Category: English K2 Community

No, because it's created before the template renders. You'll need to override that meta tag as well.
  • JoomlaWorks
  • JoomlaWorks's Avatar
01 Oct 2020 20:33
Replied by JoomlaWorks on topic K2 tags search redirect 404 errors

K2 tags search redirect 404 errors

Category: English K2 Community

I can't really see the list. What's the problem exactly? 404s will occur if a tag is deleted. If indeed they're deleted, again what's the issue? That would be normal behaviour...
  • Sori
  • Sori's Avatar
30 Sep 2020 00:27

K2 tags search redirect 404 errors

Category: English K2 Community

Hi,
I hope you all are doing great. I have a very old problem with K2 and that's tags.
The tags as useful as they are can also become very cumbersome and in search engines they backfire.
Look at the picture below and see how many 404 hits I had on tags from k2 items.
What do you guys suggest I do to solve this?
This list is only a snapshot. the list goes on and on.
  • jackson
  • jackson's Avatar
23 Sep 2020 20:18

Prevent <iframe> <script> html tags Extra Fields

Category: English K2 Community

I found this code here on the forum, it seems to work well to call specific fields, but sctrip_tags doesn't work, could you help me:

<?php foreach ($items as $key=>$item): ?>
<?php
$k2obj = new K2ModelItem();
$fields = $k2obj->getItemExtraFields($item->extra_fields, $item);
?>
<?php echo $item->extraFields->Rodape->value; ?>

<?php endforeach; ?>
  • jackson
  • jackson's Avatar
23 Sep 2020 19:43

Prevent <iframe> <script> html tags Extra Fields

Category: English K2 Community

Thanks for the answer, in the templates, I did just that, it works well, but in third party modules it is more complicated to control.

I tried to use the K2 Content module using extra fields, but it doesn't seem to work inside the module:

$ extrafields = array ();
foreach ($ this-> item-> extra_fields as $ item)
{
$ extrafields [$ item-> id] = "". strip_tags ($ item-> value);
}

<? php echo $ extrafields [1];?>

Is there any way to be able to call the specific fields within the K2 Content module? That way my problem would be solved.
  • JoomlaWorks
  • JoomlaWorks's Avatar
23 Sep 2020 19:28
Replied by JoomlaWorks on topic Prevent <iframe> <script> html tags Extra Fields

Prevent <iframe> <script> html tags Extra Fields

Category: English K2 Community

Extra fields may hold any piece of information, e.g. a widget (script tag) or a Google map (iframe tag). As such we don't filter the output there.

But what you can do is filter the output on the relevant K2 templates.

See how to override K2's template files (views) here: getk2.org/documentation/tutorials/templating-with-k2-and-the-concepts-of-sub-templates

Then make your own set and e.g. in item.php, locate the foreach loop that outputs the extra fields and in the relevant value output filter as needed (e.g. with strip_tags() or other PHP filters).
  • JoomlaWorks
  • JoomlaWorks's Avatar
23 Sep 2020 19:25
Replied by JoomlaWorks on topic Menu item to list items by tag not working

Menu item to list items by tag not working

Category: English K2 Community

If you use JCE, it's best if you got the relevant plugin for K2 links from: getk2.org/extend/extensions/k2-links-for-jce
  • Jennie Dawson
  • Jennie Dawson's Avatar
23 Sep 2020 00:49
Replied by Jennie Dawson on topic Menu item to list items by tag not working

Menu item to list items by tag not working

Category: English K2 Community

In the SEO tab I've attached screenshot of the Custom SEF URLs settings.

They were not enabled. If I enable them the link changes as follows:

walking/tag/Walking

when disabled the link is:

walking/itemlist/tag/Walking

I can get it to work if I just type the menu alias into the link, but it would be better not to.

I am using JCE Editor, latest version 2.8.17

Could any PHP extensions be missing that are needed? I've just updated to 7.4. Also attached settings.

Thank you x


  • JoomlaWorks
  • JoomlaWorks's Avatar
22 Sep 2020 19:42
Replied by JoomlaWorks on topic Menu item to list items by tag not working

Menu item to list items by tag not working

Category: English K2 Community

This is the system URL which is translated to a SEF URL in the frontend.

Check if "Advanced SEF" is enabled in the K2 component settings, under the "SEO" tab.

The issue might also be a bad link added by the WYSIWYG editor...
  • JoomlaWorks
  • JoomlaWorks's Avatar
22 Sep 2020 19:40

HELP : Update k2 to v2.10.3 panel stayed in basic Html

Category: English K2 Community

K2 does indeed keep an additional cache for better performance. But this works transparently.

If your issue is content that is not updated, perhaps it's related to HTTP header additions in K2 v2.10.3 for "Last-Modified" & "Etag". See the release notes just in case: getk2.org/blog/k2-v2103-now-available
  • Jennie Dawson
  • Jennie Dawson's Avatar
21 Sep 2020 22:30
Replied by Jennie Dawson on topic Menu item to list items by tag not working

Menu item to list items by tag not working

Category: English K2 Community

This is the URL that is being generated in the menu link if that helps:
index.php?option=com_k2&view=itemlist&layout=tag&tag=Walking&task=tag&Itemid=157
  • Jennie Dawson
  • Jennie Dawson's Avatar
21 Sep 2020 22:26
Replied by Jennie Dawson on topic Menu item to list items by tag not working

Menu item to list items by tag not working

Category: English K2 Community

Hi Fotis
Not to my knowledge. I'm looking for this option but cannot seem to find it. There are some custom SEF settings in the Settings for K2 and these are turned off, but I can't find any advanced SEF settings. Where do they live? J
  • JoomlaWorks
  • JoomlaWorks's Avatar
21 Sep 2020 21:38
Replied by JoomlaWorks on topic Menu item to list items by tag not working

Menu item to list items by tag not working

Category: English K2 Community

The correct tag URL should be just the menu item, e.g. www.saddlebackcottages.co.uk/walking/ instead of www.saddlebackcottages.co.uk/walking/itemlist/tag/Walking.

Do you have K2's Advanced SEF enabled by any chance?
  • Jennie Dawson
  • Jennie Dawson's Avatar
21 Sep 2020 14:30
Menu item to list items by tag not working was created by Jennie Dawson

Menu item to list items by tag not working

Category: English K2 Community

Hello

I have set up a couple of menu items to list k2 items by tag. I have then got icons within a regular Joomla article which we want to link to the tag results using these menu items.

So I have added a link setting and selected my menu items. There should be two K2 items with each tagged menu item. Clicking the icon takes me to the home page on both and not to any results.

Show tags is enabled in the category settings for both item view and category listings.

The page is here:

www.saddlebackcottages.co.uk/activities

Site is offline: user & pw is Saddleback

The two icons with links are Walking and Nature Reserves.

Thanks for looking
Best wishes
Jennie
  • JoomlaWorks
  • JoomlaWorks's Avatar
14 Sep 2020 15:27
Replied by JoomlaWorks on topic K2 item - page title extra field not working

K2 item - page title extra field not working

Category: English K2 Community

Did you check if $newtitle returns anything? Just to be on the safe side, you could wrap everything after the $newtitle assignment to an if statement that checks if a value is returned for it...

The only other reason why the <title> would not change is some 3rd party plugin for SEO/meta tags.
  • Andrea
  • Andrea's Avatar
14 Sep 2020 10:51

K2 item - page title extra field not working

Category: English K2 Community

Hi, as always thanks for the super reliable support.
This time i must be doing something wrong with the pagetitle extra field i tried to set for the new website i'm working on. I previously managaed to do this on other websites but time has passed and i no longer remember the steps.
Anyway i assigned the items of this category (valpelliceoutdoor.it/attivita/trekking/bobbio-pellice) the extra-field "PageTitle", in order to have it used as the browser page title instead of the default one.
I then proceeded to put this in item.php, just below the itemHeader opening tag:

Warning: Spoiler!


But this does not work. Any suggestions?
  • JoomlaWorks
  • JoomlaWorks's Avatar
11 Sep 2020 20:39
Replied by JoomlaWorks on topic K2 tag subtemplate not working as expected

K2 tag subtemplate not working as expected

Category: English K2 Community

Looks OK now on your site so I guess it was some CSS or order-of-HTML issue.
  • Andrea
  • Andrea's Avatar
11 Sep 2020 11:58
Replied by Andrea on topic K2 tag subtemplate not working as expected

K2 tag subtemplate not working as expected

Category: English K2 Community

Hi Fotis, thanks again for your assistance! I indeed managed to make tags appear thanks to your kind advice.
Just one more small thing: when i did so, the readmore below kind of got upwards, check both previous links to see the difference -- on the main blog page the readmore is standing at the very bottom of the container, on the tag view pages it has a gap. Any idea how i can fix it?
  • JoomlaWorks
  • JoomlaWorks's Avatar
10 Sep 2020 20:48
Replied by JoomlaWorks on topic K2 tag subtemplate not working as expected

K2 tag subtemplate not working as expected

Category: English K2 Community

Try placing this block where you want the tags to show up for each item:
 <?php if(isset($item->tags) && count($item->tags)): ?> <!-- Item tags --> <div class="tagItemTagsBlock"> <span><?php echo JText::_('K2_TAGGED_UNDER'); ?></span> <ul class="tagItemTags"> <?php foreach ($item->tags as $tag): ?> <li><a href="<?php echo $tag->link; ?>"><?php echo $tag->name; ?></a></li> <?php endforeach; ?> </ul> <div class="clr"></div> </div> <?php endif; ?>

Let me know if it works.
  • Andrea
  • Andrea's Avatar
10 Sep 2020 16:58
Replied by Andrea on topic K2 tag subtemplate not working as expected

K2 tag subtemplate not working as expected

Category: English K2 Community

Hi, i got nearly everything i wanted to do, i just have another question: is it possible to have all the tags of a given article displayed in the tag view? Please see attached screenshots: the first one is an item in the blog main category, the second is an item in the filter for tag page.
Links: verticalife.it/it/blog // verticalife.it/it/blog/tag/news

Thanks again for everything!
Displaying 241 - 260 out of 6582 results.

Powered by Kunena Forum