Page 1 of 1

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

Posted: Wed 13. Jun 2007, 11:25
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

Posted: Wed 13. Jun 2007, 12:19
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-

Posted: Wed 13. Jun 2007, 12:37
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.

Posted: Wed 13. Jun 2007, 13:24
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-

Posted: Wed 13. Jun 2007, 14:17
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
++

Posted: Wed 13. Jun 2007, 14:55
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