2013-06-28 42 views
0

Google一直在嘗試對列標題中的排序鏈接建立索引。我試圖對他們應用rel =「noindex nofollow」,但沒有成功。我不希望整個頁面都這樣做,因爲頁面上還有其他鏈接,我只希望不遵循此表中的列標題。如何在cakephp列標題中添加rel =「noindex nofollow」引用排序鏈接

的代碼目前看起來是這樣的:

<th><div align="center"><?php echo $this->Paginator->sort('Registration.id', __('Number')); ?></div></th> 
<th><div align="center"><?php echo $this->Paginator->sort('Registration.created', __('Joined')); ?></div></th> 
<th><div align="center"><?php echo $this->Paginator->sort('Registration.profile_picture', __('Picture')); ?></div></th> 
<th><?php echo $this->Paginator->sort('User.username', __("Username"), array('direction' => 'desc')); ?></th> 
<th><?php echo $this->Paginator->sort('Registration.full_name', __('Name')); ?></th> 

感謝。

回答

相關問題