I'm trying to create a button that create a new content type based on the one selected in the view filter. I have had some problems finding the correct variables to use them in that case. I'm actually new in the drupal community (so don't be mean if my question is irrelevant for you).
Edit: The code is the one provided as an example for the view with seven as a theme. The part i want to edit is this one :
**<?php if ($exposed): ?> <div class="view-filters"> <?php print $exposed; ?> <?php /** * Création d'un bouton de rajout de proposition (yes, this is french ^^) */?> <?php $chemin = "../node/add"; // i want this URL to be dynamic and to change each time //someone clic on a new option in the exposed filter. E.G. if he clics on volvo, the //button should show "add a new volvo car" with the proper link print"<a href=\"".$chemin."\"> <input type=\"submit\" class=\"button\" name=\"Ajout Type de Contenu\" value=\"Ajouter une XXX\" /> </a>" ; ?> </div> <?php endif; ?>**