- Posts: 40
COMMUNITY FORUM
sh404SEF plugin for K2 2.0
- Kai Roen
-
Topic Author
- Offline
- Senior Member
Download the plugin here:
www.ajmconsults.com/index.php?option=com_k2&id=2&lang=en&task=download&view=item
Upload the file to: /components/com_sh404sef/sef_ext
Please Log in or Create an account to join the conversation.
- Cherashev Feodor
-
- Offline
- New Member
- Posts: 12
empty sef links..
Please Log in or Create an account to join the conversation.
- Cherashev Feodor
-
- Offline
- New Member
- Posts: 12
Please Log in or Create an account to join the conversation.
- Kai Roen
-
Topic Author
- Offline
- Senior Member
- Posts: 40
Cherashev Feodor said:sorry. it works, but i've got bug.. menu item doesn't show any link for k2.
Please Log in or Create an account to join the conversation.
- Cherashev Feodor
-
- Offline
- New Member
- Posts: 12
Please Log in or Create an account to join the conversation.
- Cherashev Feodor
-
- Offline
- New Member
- Posts: 12
Please Log in or Create an account to join the conversation.
- Kai Roen
-
Topic Author
- Offline
- Senior Member
- Posts: 40
Try this file: dmtalvdal.biz/sef_ext.zip
Please let me know if that works
Cherashev Feodor said:it takes page title, but it should be aliases..
Please Log in or Create an account to join the conversation.
- Cherashev Feodor
-
- Offline
- New Member
- Posts: 12
Please Log in or Create an account to join the conversation.
- life
-
- Offline
- New Member
- Posts: 5
Please Log in or Create an account to join the conversation.
- Claudio Azevedo
-
- Offline
- New Member
- Posts: 14
but you "or someone" know how can i insert the item ID in the url?
i tried (a lot) but cant get close...
thanks
Kai Roen said:I have modified the file, but I haven't testet it yet.
Try this file: dmtalvdal.biz/sef_ext.zip
Please let me know if that works
Cherashev Feodor said:it takes page title, but it should be aliases..
Please Log in or Create an account to join the conversation.
- Claudio Azevedo
-
- Offline
- New Member
- Posts: 14
first, i added the "id" select on sql string about line 161
$q = 'SELECT id, title, alias, catid FROM #__k2_items WHERE id = '.$id;
and for my surprise, i only added one more thing, about line 169:
$title[]=$row->id .'-'. $row->alias ;
the "$row->id add the id of article in the url, and the "'-'" add the separator in ID>name of article, now no more duplicates URL!!!!
THANKS TO ALL!!!
Claudio Azevedo said:so, this file is using title alias instead of title
but you "or someone" know how can i insert the item ID in the url?
i tried (a lot) but cant get close...
thanks
Kai Roen said:I have modified the file, but I haven't testet it yet. Try this file: dmtalvdal.biz/sef_ext.zip
Please let me know if that works
Cherashev Feodor said:it takes page title, but it should be aliases..
Please Log in or Create an account to join the conversation.
- Kai Roen
-
Topic Author
- Offline
- Senior Member
- Posts: 40
I have modified the file as you described above, and download the file from this location:
www.dmtalvdal.no/images/stories/dokumenter/com_k2.zip
Unzip the file and upload it to: /components/com_sh404sef/sef_ext/
Please Log in or Create an account to join the conversation.
- Claudio Azevedo
-
- Offline
- New Member
- Posts: 14
thanks kai, now this plugin for 404sef is working like a charm!
(i tested it about 30hours now!)
But is one problem (but i have the solution, of couse)
when try to add a coment the 404SEF does invalid url and the comment...well...crash...
how i can solve that? the solution:
open 404sef control panel and you will see one 404 error, go to "View/Edit 404 Logs" and add what you want for these 404 error, because the 404sef does not allow to add "index2.php" item, you need to add it in the phpmyadmin
so, open phpmyadmin of you database, look for #__sh404sef_aliases (# is your database prefix), find the entry whith the 404 and edit newurl to index2.php
so this is my solution, i dont now if there another solution, if someone now pease tell us!
so, btw, thanks a lot Kai!
Please Log in or Create an account to join the conversation.
- Claudio Azevedo
-
- Offline
- New Member
- Posts: 14
i'm here, again :-)
i have found one bug in pagination, the page 5 and 6 have the same link (HOMESITE/blog/Page-4.html) and pages 9/10 have also the same link (page-7.html).
i'm trying to fix that, so only for your know...there is one problem..auehauehauea
so....i back again here later... ^^
Please Log in or Create an account to join the conversation.
- vtiger
-
- Offline
- Premium Member
- Posts: 83
Pagination don't work at all.
Every pagination links point me to (Page-1.html) url.
Other stages works like a charm.
Any news Would Be Very Appreciated.
Thanks & regards,
LN
Please Log in or Create an account to join the conversation.
- Adam Altmejd
-
- Offline
- New Member
- Posts: 4
It tries to link to the following adress:
index.php?option=com_k2&lang=sv&task=add&tmpl=component&view=item
Can't see whats wrong with it but i get a 500 Server error.
Please Log in or Create an account to join the conversation.
- vtiger
-
- Offline
- Premium Member
- Posts: 83
p.s. That link points me also to nonSEF url, but it works and without 505..
LN
Please Log in or Create an account to join the conversation.
- Claudio Azevedo
-
- Offline
- New Member
- Posts: 14
Yes guys (and ladies), the 404SEF has a bug in pagination, its generate a wrong pagination links, depending on the number of itens on eatch page.
IF you have a 20 itens in eacht page, the pagination will work, and this is the only solution that i have found untill now.
Get 20 itens/page and all will be fine.
Thanks to all!
Please Log in or Create an account to join the conversation.
- Cornerstone Properties, LLC
-
- Offline
- New Member
- Posts: 18
Jeff
Please Log in or Create an account to join the conversation.
- vtiger
-
- Offline
- Premium Member
- Posts: 83
No just 20 items per page works for me, but also 5,10,15,25,30,50,100 items per page. This is corresponding to List Length settings in J! Global Configuration....
So, we should setup same number of List Length in Global J! Configuration & Number of items in K2 Menu/Category Setup.
p.s. Don't forget clean sh404sef cache after changes...
Thanks & Regards
LN
Please Log in or Create an account to join the conversation.