Page 1 of 1

insert a new customer page to the information

Posted: Thu Sep 13, 2012 12:02 pm
by yorgol
modify the files catalog/controller/common/foot.php

add the following code to get the content

Code: Select all

 $this->data['text_newinformation'] = $this->language->get('text_newinformation');
modify the files catalog/language/english/common/foot.php (you also need to modify the other languages and change content 'new information' in different language )

add one variable txt

Code: Select all

$_['text_newinformation'] = 'new information';
modify your template files

catalog/view/theme/yourtemplate/template/common/foot.php

Code: Select all

    <li><a href="information/information&information_id=13"><?php echo $text_newinformation; ?></a></li>
you can get the your informatioin id from your backend to get that.

but this link can't use the seo derictly.

I want to change the url as the <?php echo $information['href']; ?> to using the SEO derictly?

is anyone can do it ?

Re: insert a new customer page to the information

Posted: Thu Sep 13, 2012 1:44 pm
by anung
Try like this.

Code: Select all

<li><a href="<?php echo $this->url->link('information/information','information_id=13'); ?>" title=""><?php echo $text_newinformation; ?></a></li>

Re: insert a new customer page to the information

Posted: Thu Sep 13, 2012 3:21 pm
by yorgol
yes, it's working ,thank u very much.