Skip to main content
Known Participant
November 11, 2009
Question

How to create header dynamic link

I have created a links for categories using search. Basically when you click the link keywords are passed on to search and all the product matches the keywords show up in resultpage. I am looking for a way to print the name of the link as header in the result page. Any help is greatly appreciated

Here is the code for search and link

<?php
$categories = array(
array('search'=>'digital camera 10 mp' , 'link'=>'10 MP  digital cameras'),
array('search'=>'digital camera SLR ', 'link'=>'Digital SLR cameras'),
array('search'=>'digital camcorders ', 'link'=>'Digital camcorders'),
array('search'=>'pocket camcorder OR "VIDEO CAMERA" ', 'link'=>'Pocket camcorders')
);
?>


<?php foreach ($categories as $category) { ?>

<a href="resultpage.php?psps_search=<?= urlencode($category['search']) ?>" class="catnavigation">
<?= $category['link'] ?>
</a> <?php } ?>


This topic is closed to new replies. Start a new post to keep the conversation going.

2 replies

Paevo_Kelley
Inspiring
November 11, 2009

This is how I do it using the Cartweaver results.php page:

<h1><?php echo($pageTitle);?></h1>

The product category is the page title...

Translate
Known Participant
November 12, 2009

I don't use carweaver result.php. what is it ?

Thanks

Translate