[support] Views and template: links are node/X but not alias.

Michel Morelli michel at ziobuddalabs.it
Wed Nov 4 08:36:25 UTC 2009


Hi all. I have a view where retrieve the last 10 blog post. I need to 
retrieve this fields: title (linked to the blog post), post date, and 
teaser. I have make the view and it works, but not at 100%.  The problem 
is that the link in the title is "node/X" and not the alias created via 
pathauto. Pathauto is configurated and running (alias for node/X works). 
This is my template file 
(views-view-fields--categoriespage-fitness.tpl.php):

<div class="AntNewsCategoria borderBottomCateg">
                                                <img height="63" 
width="103" alt="image" 
src="/sites/fitnesspeople.it/themes/fp_001/images/fotoAntepriNews.jpg"/>
                                                <h3><?php echo 
$fields['title']->content; ?></h3>
                                                <p><span 
class="data"><?php echo $fields['created']->content; ?> - <?php echo 
$fields['teaser']->content;?></p>
</div>

Where is the problem ?

M.

-- 
Michel 'ZioBudda' Morelli                       michel at ziobuddalabs.net
Sviluppo applicazioni CMS DRUPAL e web dinamiche (LAMP+Ajax)
Telefono: 0200619074
Telefono Cell: +39-3939890025 --  Fax: +39-0291390660

http://www.ziobudda.net                         ICQ: 58351764  
http://www.ziobuddalabs.it                      Skype: zio_budda
http://www.ziodrupal.net       			MSN: michel at ziobuddalabs.it                   
						JABBER: michel at ziobuddalabs.it



More information about the support mailing list