Menu
Content
ENG
CZE
DEU
FIN
Support
> Forums, FAQs & Paid Support
Home
>
Index
Recent Topics
Rules
Search
Welcome,
Guest
Username
Password:
Remember me
Forgot your password?
Forgot your username?
Create an account
Profile for benchesters
OFFLINE
Time Zone:
GMT +0:00
Local Time:
06:18
Posts:
5
Profile Views:
3492
Location:
Unknown
Gender:
Unknown
Birthdate:
Unknown
Signature
Posts
Posts
Re: SEF Extension for K2 - Use ...
No problem, I was delighted when I found that code after hours of head scratching!
SEF Extension for K2 ...
Category:
Extensions
Posted 13 years, 12 months ago
by
benchesters
Re: SEF Extension for K2 - Use ...
I am pretty sure I hacked the php via a post I managed to find on a website. Here's the note I sent to myself at the time:
REPLACE THIS FUNCTION IN THIS FILE:
/components/com_sef/sef_ext/com_k2.php
this now uses item alias AND strips out any dashes that appeared where apostrophes were! For example:
alias I specified was '80's videos'
this got changed to:
www.example.com/80-s-videos
This fix does this:
www.example.com/80s-videos
Here is the code:
function getItemTitle($id){
$database =& JFactory::getDBO();
if(preg_match('!:!', $id)) {
$idExplode = explode(':', $id);
$id = intval($id[0]);
};
$database->setQuery("SELECT `title`, `alias`, `catid` FROM `#__k2_items` WHERE `id` = $id");
$item = $database->loadObject();
$cat = $this->getCategoryTitle($item->catid);
$name = $item->alias;
array_push($cat, $name);
return $cat;
}
SEF Extension for K2 ...
Category:
Extensions
Posted 14 years ago
by
benchesters
SEF Extension for K2 - Use Ite ...
Does anyone know how to hack the php in this plugin so that it takes the item alias rather then the item name?
SEF Extension for K2 ...
Category:
Extensions
Posted 14 years, 2 months ago
by
benchesters
More
Produkte
Online Shop
Magento
CMS
Joomla
ERP
Openbravo
Openbravo - Magento Connector
E-Ticket System
Basic Description
E-Tickets for Joomla
Joomla! Extensions
JoomSEF SEO Toolkit
Booking & Reservations
Document Management
FusionCharts
Electronic Tickets
ARTIO Facebook Tools
TileView
Magento Extensions
M-Turbo Accelerator
B2Sync Accounting Bridge
Openbravo Connector
Payment Gateways
EU VAT Checker
SMS Notifier
Poštomat InPost
UX Pack
EET (Electronic Transaction Evidence)
Openbravo Extensions
Openbravo - Magento Connector
VirtueMart Tools
VirtueMart PDF Invoices
B2Sync Accounting Bridge
VirtueMart SMS Notifier
VirtueMart Business Reports
VirtueMart SEO
EET (Electronic Transaction Evidence)
SMS Gateway
Overview
Components & Tools
First Steps
Documentaion
Pricelist
Terms of Service
Rules of Use
Industry Specific
Facility Management
Video on Demand (VoD)
Online Games Sales
Skigebieten
Dienste
Software Entwicklung
Custom Development
Joomla Development
Magento Development
Analysis and Design
Konsultation und Training
Introduction
Open Source Consulting
Internet Dienste
Internet Präsentation
Webhosting
SEO
Joomla Hosting
Magento Hosting
Virtual Servers
HTML Optimisierung und SEO
Open Source Support
Open Source - General
Joomla Support
Software Financing
Webmail
Referenzen
Advanced Projects
Joomla Projects
Magento Projects
Other Software
Support
Overview
Support Tutorial
Unterstützung Diskussion
FAQs
Herunterladen
Buy Support
E-Mail Setup
Benutzer Anmeldung
Unternehmen
Kontakte
Tschechische Republik
Finnland
International
Historie
Karriere
Affiliate Programme
Partnerships
Become a Partner
Partnership Programme
What we are looking for
What you can get
E-Shop
Downloadable Software
JoomSEF
Book it!
JoomDOC
E-Tickets
FusionCharts for Joomla
Joomla Extensions
Magento Eshop
Magento Extensions
VirtueMart Tools
Openbravo Extensions
B2Sync for VirtueMart
Support Services
SEO Dienste
SMS Services
Download Area
User Login
Empty
Anmeldung
Angemeldet bleiben
Create an account
Forgot your password?
Datensicherheit
Legal Documents
Übersicht
Suche
Service Directory
Affiliates
Copyright © 2025 ARTIO