Keyword

Advanced Search

Search Results (Searched for: k2 Tag)

  • Goble002
  • Goble002's Avatar
05 Apr 2021 14:47
HTML stripping for Tiny MCE was created by Goble002

HTML stripping for Tiny MCE

Category: English K2 Community

Hi,

in front-end editing for k2 items I want to allow registered users to use only p tag.

In TinyMCE:
set 0 is set to Administrator and Super Users groups.
Set 1 is set to "registered" group with "Use Joomla Text Filter"
Set 2 is not applied to any group. 

In K2 Settings > Content cleanup
"Introtext HTML cleanup (tag strip)" and "Fulltext HTML cleanup (tag strip)" are set to Yes.

In Global configs > Text Filters:
Administrator and Super Users : No Filtering
For test purpose: I have set all other groups to "No HTML"
However the HTML tags are not stripped after clicking save in Front-end.

If I disable "Use Joomla Text Filter" and I include some "prohibited elements" (in TinyMCE plugin) these tags are stripped successfully.

Since there might be too many tags to remove, it will be difficult to list all of them in "prohibited elements". I would prefer getting them removed by the " Text Filters" feature in Global configs or by K2.
  • Goble002
  • Goble002's Avatar
04 Apr 2021 14:40

How to change the k2 modules title from h3 to h2?

Category: English K2 Community

Open K2 Module > Advanced > Header Tag
  • Goble002
  • Goble002's Avatar
04 Apr 2021 10:48
Replied by Goble002 on topic Cannot Add Tag to Item in Frontend

Cannot Add Tag to Item in Frontend

Category: English K2 Community

Hi and thanks Fotis,

however it's not the case. I have installed a new Joomla from scratch with Beez template. Have only installed k2 and setup front-end editing.
Same problem with following errors : 
Uncaught TypeError: can't access property "disabled", this.form_field.options[result_data.options_index] is undefined     jQuery 35     initChosen http://mysite.com/index.php/component/k2/item/add?tmpl=component&template=system&context=modalselector:103     <anonymous> http://mysite.com/index.php/component/k2/item/add?tmpl=component&template=system&context=modalselector:97     jQuery 8

I have noticed that only when below is set that the problem occurs.
Tagging system > Single input with auto-complete

Anyway I have found out that Tagging system > "Select from list" is more convenient for me.




 
  • Goble002
  • Goble002's Avatar
03 Apr 2021 08:49
Replied by Goble002 on topic Replace space by dash in K2 Tags

Replace space by dash in K2 Tags

Category: English K2 Community

Hi and thanks Fotis,

really appreciate your help on this. However may be I wrongly expressed myself and as such we are going in the wrong direction.

You need to add a language pack in Joomla for sure with a language that handles these special characters.

I need to remove a space from the URL (Space resulting from a 2 word tag example "test tag") . Then what would be the language pack which should handle special characters like space ? The space is my only issue. I don't have any other characters to be replaced.

Then and only then can Joomla (and K2) perform any such character replacements.

Like explained earlier, Joomla is removing automatically spaces from URL (Tag listing for Joomla Articles) for tags with a space like "test tag".
  • JoomlaWorks
  • JoomlaWorks's Avatar
02 Apr 2021 20:16
Replied by JoomlaWorks on topic Replace space by dash in K2 Tags

Replace space by dash in K2 Tags

Category: English K2 Community

You need to add a language pack in Joomla for sure with a language that handles these special characters. Then and only then can Joomla (and K2) perform any such character replacements.

See this: docs.joomla.org/International_Enhancements_for_Version_1.6#Custom_Transliteration_Support
  • Goble002
  • Goble002's Avatar
02 Apr 2021 17:19
Cannot Add Tag to Item in Frontend was created by Goble002

Cannot Add Tag to Item in Frontend

Category: English K2 Community

Hello,

while adding existing tags to a new item in front-end (From "Available Tags" to "Selected Tags"). It won't work and I will get error message below from Firebug. Same applies if I click the cross of the Tags.
chosen.jquery.min.js:1:28079 Uncaught TypeError: can't access property "selected", this.form_field.options[item.options_index] is undefined     jQuery 20     initChosen http://mysite.com/component/k2/item/add?tmpl=component&template=system&context=modalselector:195     <anonymous> http://mysite.com/component/k2/item/add?tmpl=component&template=system&context=modalselector:189     jQuery 8

 
  • Goble002
  • Goble002's Avatar
02 Apr 2021 16:33
Replied by Goble002 on topic Replace space by dash in K2 Tags

Replace space by dash in K2 Tags

Category: English K2 Community

Hi Fotis,

I would be glad to install whatever language pack required. My site is only in English. My issue is about the space in the URL. See my original post.
  • Goble002
  • Goble002's Avatar
02 Apr 2021 16:30 - 02 Apr 2021 16:31
Replied by Goble002 on topic Add item image in Users (User list)

Add item image in Users (User list)

Category: English K2 Community

Oh I was inserting the code after the wrong "foreach"

here goes:
" ["fulltext"]=> string(0) "" ["video"]=> string(0) "" ["gallery"]=> NULL ["extra_fields"]=> string(2) "[]" ["extra_fields_search"]=> string(0) "" ["created"]=> string(19) "2005-01-02 03:04:05" ["created_by"]=> string(1) "9" ["created_by_alias"]=> string(0) "" ["checked_out"]=> string(1) "0" ["checked_out_time"]=> string(19) "0000-00-00 00:00:00" ["modified"]=> string(19) "2021-03-23 09:59:53" ["modified_by"]=> string(1) "9" ["publish_up"]=> string(19) "2005-01-02 03:04:05" ["publish_down"]=> string(19) "0000-00-00 00:00:00" ["trash"]=> string(1) "0" ["access"]=> string(1) "1" ["ordering"]=> string(1) "1" ["featured"]=> string(1) "0" ["featured_ordering"]=> string(1) "0" ["image_caption"]=> string(0) "" ["image_credits"]=> string(0) "" ["video_caption"]=> string(0) "" ["video_credits"]=> string(0) "" ["hits"]=> string(2) "34" ["params"]=> string(1916) "{"catItemTitle":"","catItemTitleLinked":"","catItemFeaturedNotice":"","catItemAuthor":"","catItemDateCreated":"","catItemRating":"","catItemImage":"","catItemIntroText":"","catItemExtraFields":"","catItemHits":"","catItemCategory":"","catItemTags":"","catItemAttachments":"","catItemAttachmentsCounter":"","catItemVideo":"","catItemVideoWidth":"","catItemVideoHeight":"","catItemAudioWidth":"","catItemAudioHeight":"","catItemVideoAutoPlay":"","catItemImageGallery":"","catItemImageGalleryWidth":"","catItemImageGalleryHeight":"","catItemDateModified":"","catItemReadMore":"","catItemCommentsAnchor":"","catItemK2Plugins":"","itemDateCreated":"","itemTitle":"","itemFeaturedNotice":"","itemAuthor":"","itemFontResizer":"","itemPrintButton":"","itemEmailButton":"","itemSocialButton":"","itemVideoAnchor":"","itemImageGalleryAnchor":"","itemCommentsAnchor":"","itemRating":"","itemImage":"","itemImgSize":"","itemImageMainCaption":"","itemImageMainCredits":"","itemIntroText":"","itemFullText":"","itemExtraFields":"","itemDateModified":"","itemHits":"","itemCategory":"","itemTags":"","itemAttachments":"","itemAttachmentsCounter":"","itemVideo":"","itemVideoWidth":"","itemVideoHeight":"","itemAudioWidth":"","itemAudioHeight":"","itemVideoAutoPlay":"","itemVideoCaption":"","itemVideoCredits":"","itemImageGallery":"","itemImageGalleryWidth":"","itemImageGalleryHeight":"","itemNavigation":"","itemComments":"","itemTwitterButton":"","itemFacebookButton":"","itemLinkedInButton":"","itemAuthorBlock":"","itemAuthorImage":"","itemAuthorDescription":"","itemAuthorURL":"","itemAuthorEmail":"","itemAuthorLatest":"","itemAuthorLatestLimit":"","itemRelated":"","itemRelatedLimit":"","itemRelatedTitle":"","itemRelatedCategory":"","itemRelatedImageSize":"","itemRelatedIntrotext":"","itemRelatedFulltext":"","itemRelatedAuthor":"","itemRelatedMedia":"","itemRelatedImageGallery":"","k2SeoGsdType":"","itemK2Plugins":""}" ["metadesc"]=> string(0) "" ["metadata"]=> string(15) "robots= author=" ["metakey"]=> string(0) "" ["plugins"]=> string(0) "" ["language"]=> string(1) "*" ["categoryname"]=> string(6) "Photos" ["categoryid"]=> string(1) "1" ["categoryalias"]=> string(6) "photos" ["categoryparams"]=> string(2880) "{"inheritFrom":"0","catMetaDesc":"","catMetaKey":"","catMetaRobots":"","catMetaAuthor":"","theme":"","num_leading_items":"2","num_leading_columns":"1","leadingImgSize":"Large","num_primary_items":"4","num_primary_columns":"2","primaryImgSize":"Medium","num_secondary_items":"4","num_secondary_columns":"1","secondaryImgSize":"Small","num_links":"4","num_links_columns":"1","linksImgSize":"XSmall","catCatalogMode":"1","catFeaturedItems":"1","catOrdering":"","catPagination":"2","catPaginationResults":"1","catTitle":"1","catTitleItemCounter":"1","catDescription":"1","catImage":"1","catFeedLink":"1","catFeedIcon":"1","subCategories":"1","subCatColumns":"2","subCatOrdering":"","subCatTitle":"1","subCatTitleItemCounter":"1","subCatDescription":"1","subCatImage":"1","itemImageXS":"","itemImageS":"","itemImageM":"","itemImageL":"","itemImageXL":"","catItemTitle":"1","catItemTitleLinked":"1","catItemFeaturedNotice":"0","catItemAuthor":"1","catItemDateCreated":"1","catItemRating":"0","catItemImage":"1","catItemIntroText":"1","catItemIntroTextWordLimit":"","catItemExtraFields":"0","catItemHits":"1","catItemCategory":"1","catItemTags":"1","catItemAttachments":"0","catItemAttachmentsCounter":"0","catItemVideo":"0","catItemVideoWidth":"","catItemVideoHeight":"","catItemAudioWidth":"","catItemAudioHeight":"","catItemVideoAutoPlay":"0","catItemImageGallery":"0","catItemImageGalleryWidth":"","catItemImageGalleryHeight":"","catItemDateModified":"0","catItemReadMore":"1","catItemCommentsAnchor":"1","catItemK2Plugins":"1","itemDateCreated":"1","itemTitle":"1","itemFeaturedNotice":"1","itemAuthor":"1","itemFontResizer":"0","itemPrintButton":"0","itemEmailButton":"0","itemSocialButton":"1","itemVideoAnchor":"1","itemImageGalleryAnchor":"1","itemCommentsAnchor":"1","itemRating":"1","itemImage":"1","itemImgSize":"XLarge","itemImageMainCaption":"0","itemImageMainCredits":"0","itemIntroText":"1","itemFullText":"0","itemExtraFields":"1","itemDateModified":"1","itemHits":"1","itemCategory":"0","itemTags":"1","itemAttachments":"0","itemAttachmentsCounter":"0","itemVideo":"0","itemVideoWidth":"","itemVideoHeight":"","itemAudioWidth":"","itemAudioHeight":"","itemVideoAutoPlay":"0","itemVideoCaption":"0","itemVideoCredits":"0","itemImageGallery":"0","itemImageGalleryWidth":"","itemImageGalleryHeight":"","itemNavigation":"1","itemComments":"1","itemTwitterButton":"1","itemFacebookButton":"1","itemLinkedInButton":"1","itemAuthorBlock":"1","itemAuthorImage":"1","itemAuthorDescription":"0","itemAuthorURL":"0","itemAuthorEmail":"0","itemAuthorLatest":"1","itemAuthorLatestLimit":"10","itemRelated":"1","itemRelatedLimit":"10","itemRelatedTitle":"1","itemRelatedCategory":"0","itemRelatedImageSize":"Small","itemRelatedIntrotext":"0","itemRelatedFulltext":"0","itemRelatedAuthor":"0","itemRelatedMedia":"0","itemRelatedImageGallery":"0","k2SeoGsdType":"","itemK2Plugins":"1"}" ["link"]=> string(19) "/photos/1-test-item" ["categoryLink"]=> string(14) "/photos/photos" }
  • JoomlaWorks
  • JoomlaWorks's Avatar
02 Apr 2021 16:14
Replied by JoomlaWorks on topic Replace space by dash in K2 Tags

Replace space by dash in K2 Tags

Category: English K2 Community

Yes, but my question still stands. You need the relevant K2 language pack for filters to work.
  • Goble002
  • Goble002's Avatar
02 Apr 2021 15:06
Replied by Goble002 on topic Replace space by dash in K2 Tags

Replace space by dash in K2 Tags

Category: English K2 Community

Hi,

No. I was taking "À "as an example.

These are my 4 last entries:
ӭ|e, ю|yu, я|ya, |-, %20|-
  • JoomlaWorks
  • JoomlaWorks's Avatar
02 Apr 2021 14:22
Replied by JoomlaWorks on topic Replace space by dash in K2 Tags

Replace space by dash in K2 Tags

Category: English K2 Community

Have you added the relevant K2 language pack?
  • Goble002
  • Goble002's Avatar
02 Apr 2021 09:44
Replied by Goble002 on topic Replace space by dash in K2 Tags

Replace space by dash in K2 Tags

Category: English K2 Community

Hi and thanks Fotis,

Like explained, I've tried "Enforce SEF URL character replacements". It's simply not working for me.
"Enforce SEF URL character replacements" > Yes

The default values in "SEF URL character replacements" are not doing anything, For example : tag "Àtest" is not being converted to "Atest".

I have disabled .htaccess, disable/enable SEF (just below). I have tried another joomla site (completely different): no luck as well. So could not be an extension conflict.

However for Joomla articles, tags with "Àtest" are converted to "Atest". 

Extract from Joomla documentation

"In Joomla!, each component is responsible for handling its own SEF URLs. Therefore, as the developer of a component, you will have to create your own router to allow your component to use SEF URLs."

So Joomla Core will not help here.


Fotis wrote :

"On the other hand, if you make distinct menu items, then you can create your own URL alias, in which case you can of course insert a dash between a tag's words."

>> Like explained I can't afford to have menu item for the k2 tags.


 
  • JoomlaWorks
  • JoomlaWorks's Avatar
01 Apr 2021 19:41
Replied by JoomlaWorks on topic Template Override for Front-end editing

Template Override for Front-end editing

Category: English K2 Community

Sorry, my mind is racing...

I was referring to frontend behaviour in general, not frontend editing. It's best load a separate file or your rules in a <style>...</style> tag to overwrite default backend K2 CSS.
  • JoomlaWorks
  • JoomlaWorks's Avatar
01 Apr 2021 19:37
Replied by JoomlaWorks on topic Replace space by dash in K2 Tags

Replace space by dash in K2 Tags

Category: English K2 Community

Sure, try "Enforce SEF URL character replacements" first. On the other hand, if you make distinct menu items, then you can create your own URL alias, in which case you can of course insert a dash between a tag's words.
  • Goble002
  • Goble002's Avatar
01 Apr 2021 14:59
Replace space by dash in K2 Tags was created by Goble002

Replace space by dash in K2 Tags

Category: English K2 Community

Hello,

This issue has been raised several times here but haven't found the solution yet.

I have tags with 2 words for my k2 items. I cannot create menu items for these tags (since there are 100s of them). From a previous post:

You can't have spaces in URLs. K2 converts spaces to the appropriate characters according to the URL specification  www.ietf.org/rfc/rfc1738.txt . Then it's up to the browser you are using to convert them back and display them correctly. Most modern browsers do that.

I understand that browsers have different behaviours :
  1. Chrome : URL shown on item page (when hovered) : "mysite.com/photos/itemlist/tag/Test Tag" but will load: "mysite.com/photos/itemlist/tag/Test%20Tag"
  2. Edge : URL shown on item page (when hovered) and will load : "mysite.com/photos/itemlist/tag/Test%20Tag"
  3. FireFox : URL shown on item page (when hovered) and will load : "mysite.com/photos/itemlist/tag/Test Tag"
I've heard that "%20" is not considered as SEF by Google.

In "Enforce SEF URL character replacements", possible to convert space with dash ? I tried following but it won't work: "%20|-" and " |-"

Have tried below from StackOverflow but no success:
# remove spaces from start or after / RewriteRule ^(.*/|)[\s%20]+(.+)$ $1$2 [L] # remove spaces from end or before / RewriteRule ^(.+?)[\s%20]+(/.*|)$ $1$2 [L] # replace spaces by - in between RewriteRule ^([^\s%20]*)(?:\s|%20)+(.*)$ $1-$2 [L,R]

Any help will be much appreciated.
 
  • JoomlaWorks
  • JoomlaWorks's Avatar
31 Mar 2021 22:45 - 31 Mar 2021 22:46
Replied by JoomlaWorks on topic Tag column in backend article

Tag column in backend article

Category: English K2 Community

This will result in extremely poor performance in the backend when you have more than a few thousand items, especially on shared hosting or servers with a stock MySQL/MariaDB (=unoptimized) configuration. Besides, there's a tag filter option in the K2 Settings (like the category filter) which should be sufficient for your needs. This option is off by default in the K2 Settings under the "Administrator" tab: jmp.sh/5tm9nas
  • JoomlaWorks
  • JoomlaWorks's Avatar
31 Mar 2021 22:35
Replied by JoomlaWorks on topic German umlauts are displayed wrong

German umlauts are displayed wrong

Category: English K2 Community

The replacements part you mention is for K2 item URLs.

For tags you can configure replacements as you like under the "Site" tab, sections "Tags" in K2's settings.
  • Loai Ahmed
  • Loai Ahmed's Avatar
29 Mar 2021 00:14
Directly imported k2 items not showing was created by Loai Ahmed

Directly imported k2 items not showing

Category: English K2 Community

Hi,
I had about 3000 items to import to K2 from a cutome build cms, I used this tool K2 Import / Export Tool from www.individual-it.net/en/downloads
it is used to import items directly to the database, it worked fine, even managed to import item tags, image and attachment and extra-fields, but once items are imported and I can see them at the k2 backend, and they are published and have public access rights, but none of these items show at the front end although normaly added items in same categories show just fine, also noticed that imported items don't count against the counter of items in categories at k2 categories page.

Is there an option to rebuild k2 or somthing as if I edit the item and just save it without any modification, it shows at the front end??!!

Any ideas?
Thank you all for your time.
 
  • sizu
  • sizu's Avatar
12 Mar 2021 09:54
Replied by sizu on topic problem with pagination K2 tags

problem with pagination K2 tags

Category: English K2 Community

I'll look into it. Thanks you so much for your help.


Best regards
  • JoomlaWorks
  • JoomlaWorks's Avatar
11 Mar 2021 18:25
Replied by JoomlaWorks on topic problem with pagination K2 tags

problem with pagination K2 tags

Category: English K2 Community

Assuming you use K2 v2.10.3 (or the 2.10.4 dev release) AND the sh404SEF for K2 plugin (www.joomlaworks.net/extensions/commercial/k2-plugin-for-sh404sef), I would recommend purging your sh404SEF cache for starters. If that doesn't work, check if you have any outdated overrides for the tag view.
Displaying 141 - 160 out of 6582 results.

Powered by Kunena Forum