Teaser_Ex translate [more...] link in default template

Post custom hacks and enhancements for phpwcms here only. Maybe some of these things will be included in official release later.
Post Reply
hdvx
Posts: 12
Joined: Tue 12. Jun 2007, 16:26

Teaser_Ex translate [more...] link in default template

Post by hdvx »

Hello,

I'm using phpwcms in french version and using teaser_ex with the default template. The resultat is fine and I like, excepted the link more... I'd like to translate in french.

Looking at the php code of teaser_ex, I don't see where I can change the value.

Where may I translate the value of the [MORE] variable ? or What may I modify in the teaser_ex php code ?

(I don't want to build a new template because I like the default one).

Thanks for replies.

hdvx
tsl
Posts: 28
Joined: Sat 27. Aug 2005, 16:34

Post by tsl »

Hi,

Look in the tmpl file you use in:

.../phpwcms_template/inc_cntpart/articlesummary/list/

Code: Select all

[MORE]<a href="{ARTICLELINK}">More</a>[/MORE]
Try to translate there.

HTH
-tsl-
hdvx
Posts: 12
Joined: Tue 12. Jun 2007, 16:26

Post by hdvx »

tsl wrote:
Look in the tmpl file you use in:

.../phpwcms_template/inc_cntpart/articlesummary/list/

Code: Select all

[MORE]<a href="{ARTICLELINK}">More</a>[/MORE]
The only file there, is "sample.tmpl". It doesn't seem to be the default template used by Teaser_Ex because the result of Teaser_Ex uses <ul> <li> tags instead of <table> tags. I use Teaser_Ex in single column mode.

Moreover the code in "sample.tmpl" is :

Code: Select all

[MORE]<a href="{ARTICLELINK}">{MORE}</a>[/MORE]
with " {MORE} ".

Where is the source value of this replacement tag (in teaser_ex code or somewhere else) ?
I'd prefer to translate from there in order to be dynamic.
tsl
Posts: 28
Joined: Sat 27. Aug 2005, 16:34

Post by tsl »

Sorry, I've only created an own template from sample.tmpl
From what I remember this was the only place I customized the listing of the teasers.

I don't know where the {MORE} variable can be changed unfortunately.
maybe someone else has a clue?

-tsl-
jpwalker
Posts: 8
Joined: Thu 1. Mar 2007, 09:05

Post by jpwalker »

Hi,

Check in

Code: Select all

config/phpwcms/conf.template_default.inc.php
search for

Code: Select all

$template_default['top_readmore_link']
Here is the default template used by teaser_ex ;)

PS : you can create your own template -> teaser.tmpl

place it in the different template directory

Code: Select all

template/inc_default

template/inc_cntpart/articlesummary/article

template/inc_cntpart/articlesummary/list
++
hdvx
Posts: 12
Joined: Tue 12. Jun 2007, 16:26

Post by hdvx »

jpwalker wrote: Check in

Code: Select all

config/phpwcms/conf.template_default.inc.php
search for

Code: Select all

$template_default['top_readmore_link']
Here is the default template used by teaser_ex ;)
Thank you very much. I translated the value and it's working perfectly :D .

++
hdvx
Post Reply