Post by yorgol » Thu Sep 13, 2012 12:02 pm

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 ?

New member

Posts

Joined
Thu Aug 26, 2010 10:54 am

Post by anung » Thu Sep 13, 2012 1:44 pm

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>

User avatar
Active Member

Posts

Joined
Fri Mar 30, 2012 10:32 am
Location - Indonesia

Post by yorgol » Thu Sep 13, 2012 3:21 pm

yes, it's working ,thank u very much.

New member

Posts

Joined
Thu Aug 26, 2010 10:54 am
Who is online

Users browsing this forum: Baidu [Spider], HAO and 147 guests