English (United Kingdom)
Jms Multi Site, formerly joomla multisite.
Create, share multiple joomla sites in few clicks !
Message
  • EU e-Privacy Directive

    This website uses cookies to manage authentication, navigation, and other functions. By using our website, you agree that we can place these types of cookies on your device.

    View e-Privacy Directive Documents

Welcome, Guest
Please Login or Register.    Lost Password?

url pb with com_multisitescontent and com_sh404sef
(1 viewing) (1) Guest
Go to bottomPage: 12
TOPIC: url pb with com_multisitescontent and com_sh404sef
#3420
url pb with com_multisitescontent and com_sh404sef 14 Years, 2 Months ago Karma: 0
hi there,

does anyone know how i can remove the 'site_id' var from the url after sef did its job... ?

joomla 1.5.14
SH404SEF 1.5.6.398
multisitescontent 1.0.10

thank you for helping!
epanda
Fresh Boarder
Posts: 10
graphgraph
User Offline Click here to see the profile of this user
The administrator has disabled public write access.
 
#3427
Re: url pb with com_multisitescontent and com_sh404sef 14 Years, 2 Months ago Karma: 54
You can enter customized URL in sh404drf and therefore hidden it.
Just enter the URL you want to force with a specifc SEF and let sh404sef doing its job.
edwin2win
Moderator
Posts: 5370
graph
User Offline Click here to see the profile of this user
The administrator has disabled public write access.
 
#3433
Re: url pb with com_multisitescontent and com_sh404sef 14 Years, 2 Months ago Karma: 0
hi, thank you for ur reply.
Yes i can do customized URL (and i might if i dunn find better way), but the thing is that i have too many url to customize...
Cz my site has 4 languages available and sharing content through my multisites might become a common task for my multiple admins...

anyway, i tried to make a sh404sef ext plugin (as usual to set rewrite rules) but if i use this 'com_multisitescontent.php' extension, the sh404sef does its job but it also prevents com_multisitescontent's url rewritting process (which i cannot find?!)

So with this extension i made i can remove 'site_id' but no other vars from url! ...
here is what i put in 'com_multisitescontent.php':

Code:


//shRemoveFromGETVarsList('option');
  shRemoveFromGETVarsList('lang');
/*  if (!empty($view))
  shRemoveFromGETVarsList('view');
  if (!empty($layout))
  shRemoveFromGETVarsList('layout');
  if (!empty($Itemid))
  shRemoveFromGETVarsList('Itemid');
  if (!empty($id))
  shRemoveFromGETVarsList('id');*/
  if (!empty($limit))
  shRemoveFromGETVarsList('limit');
  if (isset($limitstart))
  shRemoveFromGETVarsList('limitstart');
  if (isset($site_id))
  shRemoveFromGETVarsList('site_id');



what is commented is the vars needed for the process to work fine.

perhaps if i find the rewrite process of multisitescontent i can paste the code in this sh404sef ext i made...

what do u think of it?
i'm getting workin on it and will post my solution if i work some out, please let me know if u have any better idea than mine.

thank u for ya time.
epanda
Fresh Boarder
Posts: 10
graphgraph
User Offline Click here to see the profile of this user
The administrator has disabled public write access.
 
#3436
Re: url pb with com_multisitescontent and com_sh404sef 14 Years, 2 Months ago Karma: 54
The rewrite process is NOT in the multisitescontent.
This is the original one of Joomla (com_content).

If you want to change the rule, you can redevelop the "router.php" that is present in the com_content to take in account the "site_id" parameter that is not used by a standard joomla article.

As you have understood, we have just call (not redevelopped) some peace of code that is present in th joomla.
edwin2win
Moderator
Posts: 5370
graph
User Offline Click here to see the profile of this user
The administrator has disabled public write access.
 
#3479
Re: url pb with com_multisitescontent and com_sh404sef 14 Years, 2 Months ago Karma: 0
all right, that should do! thank you very much for telling me exactly what i need, now i got work!
epanda
Fresh Boarder
Posts: 10
graphgraph
User Offline Click here to see the profile of this user
The administrator has disabled public write access.
 
#4827
Re: url pb with com_multisitescontent and com_sh404sef 13 Years, 9 Months ago Karma: 0
Hi epanda

Did you succeed in changing the router.php code?
How did you do that?
I still have the "site_id: ..."
Thanks
troesler
Fresh Boarder
Posts: 1
graphgraph
User Offline Click here to see the profile of this user
The administrator has disabled public write access.
 
Go to topPage: 12
get the latest posts directly to your desktop
2Win, Multisite(s) are trademarks of Edwin2Win.
Joomla