Using the {title} tag within the TrueType Text module ?

For questions and problems with the CMS core. This board is NOT for any 3rd party modules, addons, PHP scripts or anything NOT distributed with the CMS made simple package itself.
Post Reply
WebPiet
Forum Members
Forum Members
Posts: 29
Joined: Thu Sep 21, 2006 7:18 pm

Using the {title} tag within the TrueType Text module ?

Post by WebPiet »

Hello,

The TrueType Text module works fine with fixed text, like in the following example:

Code: Select all

{cms_module module="truetypetext" style="teststyle" text="this is a fixed text"}
But I want to apply the truetype text to the page title tag {title}! I tried several possibilities, but none seems to work. Is it possible to use this tag within the TrueType Text module or not? And in the first case: what's the right syntax of the code?

Code: Select all

{cms_module module="truetypetext" style="teststyle" text="{title}"}
{cms_module module="truetypetext" style="teststyle" text={title}}
Any help welcome and appreciated.

Piet.
RonnyK
Support Guru
Support Guru
Posts: 4962
Joined: Wed Oct 25, 2006 8:29 pm
Location: Raalte, the Netherlands

Re: Using the {title} tag within the TrueType Text module ?

Post by RonnyK »

Piet,

following line is from the help of TrueTypeText:

You can use a tag to display page title : {cms_module module="truetypetext" style="title" text="%title"}

Ronny
yateri
Forum Members
Forum Members
Posts: 22
Joined: Fri May 18, 2007 12:21 am
Location: France - Alsace

Re: Using the {title} tag within the TrueType Text module ?

Post by yateri »

Hi,

did you find a solution ? I'm also trying to display the title of the page with the TrueTypeText module but it doesn't work ???

I tried several possibilities :

{cms_module module="TruetypeText" style="Titre de page" text="%title"}
{cms_module module="TruetypeText" style="Titre de page" text=%title}
{cms_module module="TruetypeText" style="Titre de page" text={title}}
{cms_module module="TruetypeText" style="Titre de page" text="{title}"}
{cms_module module="TruetypeText" style="Titre de page" text=$entry->title}
{cms_module module="TruetypeText" style="Titre de page" text="$entry->title"}

I've got also an other problem, please have a look at this page, the text ("Le vol à voile") is very ugly ...
The first on the top ("Vol à Voile de Strasbourg") is from Photoshop, the second is from this TruetypeText module :
http://yateri.phpnet.org/site_planeur-s ... com_tempo/
Any idea how to improve that ?

Thanks  ;)

Yat'
Last edited by yateri on Sat Jun 02, 2007 5:44 pm, edited 1 time in total.
WebPiet
Forum Members
Forum Members
Posts: 29
Joined: Thu Sep 21, 2006 7:18 pm

Re: Using the {title} tag within the TrueType Text module ?

Post by WebPiet »

Hello Yat',

This code works flawless on my site www.vksjsintlieven.be:

Code: Select all

{cms_module module="truetypetext" style="style_colhead_col3" text="%title"}
Maybe the name of the style is misspelled? What's the result of i.e. {cms_module module="TruetypeText" style="Titre de page" text="%title"} on your site? Do you get an error or just nothing or ...

The second problem is due to the settings of the foreground and background color of the text and the shadow color. Just play around with these settings (i.e. add the orange to the background text color and/or shadow color) in the TrueType Text Manager to achieve a better result.

Salutations. Piet.
yateri
Forum Members
Forum Members
Posts: 22
Joined: Fri May 18, 2007 12:21 am
Location: France - Alsace

Re: Using the {title} tag within the TrueType Text module ?

Post by yateri »

Hello Piet,

yes I tried text="%text", and it display ... %title, instead of the title.

Actually, you can see the result on this page :

http://yateri.phpnet.org/site_planeur-s ... ol-a-voile

The code is :

Code: Select all

<div id='titre_articles'>
{cms_module module="TruetypeText" style="Titre articles" text="Le Vol à Voile..."}
{cms_module module="TruetypeText" style="Titre articles" text="%title"}
</div>
You can see that the first text is correct, and the second not.

Which version of CMS MS do you have ? And the Truetypetext module ?
My CMS version is 1.0.6, TrueTT is 2.0.0-RC2

edit: I just removed TrueTT RC1 and installed RC1, but it is also not working.


Oh and the problem with the white border, I cannot cheat in adding the background colour, because a half is white and a half blue, I don't know what to do except removing the shadow and the blur effect, because the result is not what I want (and even in doing that there is still grain in the border) ;)


Yat'
Last edited by yateri on Sun Jun 03, 2007 12:36 am, edited 1 time in total.
WebPiet
Forum Members
Forum Members
Posts: 29
Joined: Thu Sep 21, 2006 7:18 pm

Re: Using the {title} tag within the TrueType Text module ?

Post by WebPiet »

Hi Yat'

I'm using  CMSMS 1.0.2 maui
Server: Linux srv60 2.6.12.6-vs2.0 #1 SMP
PhP 4.4.4
MySQL 4.0.24
TrueType Text module 1.2.1.

I've absolutely no clue why the title isn't generated correctly on your site. Perhaps there are more experienced users on the forum who can help.

The effect of the gray shaded orange text jumping out above a blue bar over the white surrounding looks great, but as far as I have experimented with the TTT-module, I don't think you can achieve it in a graphical attractive manner. The two background colors white and blue are likely too much. The TTT-module is great but it has it's limitations ... like all software.

Succes!

Piet.
yateri
Forum Members
Forum Members
Posts: 22
Joined: Fri May 18, 2007 12:21 am
Location: France - Alsace

Re: Using the {title} tag within the TrueType Text module ?

Post by yateri »

Ok thanks, I think I will leave a "normal" font and see it later, I have others important things before  ;)

Yat'
crisb

Re: Using the {title} tag within the TrueType Text module ?

Post by crisb »

ok. now i have got the same problem, since i upgraded cmsms (newest version) and truetype text (newest version, too).

he now renders %title as "%title" in the page instead of replacing it with the appropriate page title.
before the upgrade everythink worked finde (same setup as webpiet).

has anyone a clue why he doesnt interprete the tag properly?


edit:
isnt there a cmsms variable that i could use to generate the title?
Last edited by crisb on Tue Aug 07, 2007 12:15 pm, edited 1 time in total.
crisb

Re: Using the {title} tag within the TrueType Text module ?

Post by crisb »

thanks.
works like a charme :-)
Post Reply

Return to “CMSMS Core”