Menu Content

Support

> Forums, FAQs & Paid Support
Welcome, Guest
Username Password: Remember me

Profile for ram4u

  • OFFLINE
  • Time Zone: GMT +0:00
  • Local Time: 17:34
  • Posts: 3
  • Profile Views: 1262
  • Location: Unknown
  • Gender: Unknown
  • Birthdate: Unknown

Signature

Posts

Posts

emo
hello david ,

i have installed joomsef 2.2.1 and its new portfol extension but still its unable to create sef urls for all categories .
Right now it just create one default url i.e. portfolio/index.php for portfolio link .

could you plz tell me why it is not scanning portfolio category .<br><br>Post edited by: ram4u, at: 2007/10/11 13:59
portfolio extension ...
Category: JoomSEF 3
emo
go to joomla global setting and enable the sef url option under seo tab .
Installation
Category: JoomSEF 3
emo
Hi ,

I have created extension for portfolio component .
It is working only for index page of portfolio means convert only portfolio link and not the category and subcategory link .
please have a look at www.opengeers.com .

my code is as follows ,is there any way to track its working .
i have used file write method to track its working...

&lt;?php

/**

* SEF module for Joomla!

*

* @author $Author: michal $

* @copyright ARTIO s.r.o., www.artio.cz

* @package JoomSEF

* @version $Name$, ($Revision: 4994 $, $Date: 2005-11-03 20:50:05 +0100 (??t, 03 XI 2005) $)

*/



// Security check to ensure this file is being included by a parent file.

if (!defined('_VALID_MOS')) die('Direct Access to this location is not allowed.');



/**

* Toevoegen:

* viewforum en viewtopic weghalen?

* support voor: index.php?option=com_forum&amp;Itemid=26&amp;c=1



*/

class sefext_com_portfol extends sef_404

{

function create($string, &amp;$vars) {



extract($vars);

$title=array();





// JF translate extension.

// $jfTranslate = $sefConfig-&gt;translateNames ? ', `id`' : '';




if (!empty($refid)) {

$query = \&quot;

SELECT `title`

FROM `jos_portfol`

WHERE `id` = '$refid'\&quot;;



$database-&gt;setQuery($query);

$page = $database-&gt;loadResult();

fwrite($handle,$query);

}





// First subdir

if (!empty($option)) {

$title[] = getMenuTitle($option, @$this_task);



unset($vars['option']);

if (empty($title)) {

$comp_name = str_replace('com_', '', $option);

$title = $comp_name;

}

}





// Category

if (!empty($vcatid)) {

$title[] = '/';

$title[] = $category;

//unset($vars['vcatid']);

}

// Sub Category

if (!empty($vcatid)) {

$title[] = \&quot;/\&quot;.$subcategory;

unset($vars['vcatid']);

}





// Handle nonSef variables

$nonSefVars = array();



if (isset($prev)) $nonSefVars['prev'] = $prev;

if (isset($next)) $nonSefVars['next'] = $next;



echo \&quot;title==\&quot;.$title;
fwrite($handle,$title);

if (count($title) &gt; 0) $string = sef_404::sefGetLocation($string, $title, $task, (isset($limit) ? @$limit : null), (isset($limitstart) ? @$limitstart : null), (isset($lang) ? @$lang : null),$nonSefVars);


return $string;

}

}





?&gt;
Problem with portfol ...
Category: JoomSEF 3
More
User Login Empty