Recent Topics

1 Jan 17, 2008 22:08    

If I have the url,

http://localhost/index.php/trial/?blog=13&cats=163

a call to

regenerate_url( "types", "types=2")

results in

http://localhost/index.php/trial/?blog=13&types=2

instead of

http://localhost/index.php/trial/?blog=13&cats=163&types=2

Any ideas? Am I using regenerate_url incorrectly? Or is there something funky going on with category params from the URL string?

Cindy Rae

2 Jan 17, 2008 22:27

Hi, sorta this works for me in /skins/[skin]/index.main.php, I get the cat name as part of the path but it's also replicated as a param .... either way this is gonna end up in the bugs forum ;)

<?php
echo '<p>Test : '.regenerate_url( 'types', 'types=2' ).'</p>';
?>

It produces :
Test : http://b2evo.astonishme.co.uk/c15/?blog=5&cat=15&types=2

¥

note to self : still need to do the cat urls to summat a smidge more imaginative :P

3 Jan 29, 2008 18:39

Update: using the 'catsel' array parameter instead of 'cat' ensures the correct behavior, at least in the way I've tried.

Cindy Rae


Form is loading...