I need use typograph

Author Message

Yauheni Lapanau

Saturday 01 May 2004 11:37:55 am

I need to use a typograph. For an example I need to publish the text:

When V. D. Pupkin saw in newspaper (it was «Times» ? 45) chapter Weather Forecast®,

After use of a typograph

&#133;When <nobr>V. D. Pupkin</nobr> saw in newspaper(it&nbrs;was &laquo;Times&raquo; &#8470; 45) chapter Weather Forecast

When I publish this information ez to deduce all without izmeny. I need to replace a space with an no break space, etc. signs inverted commas, numbers, dash, etc

Alex Jones

Monday 03 May 2004 7:58:39 am

You can create a custom tag for each special character you need. I have set up a couple myself for characters like the trademark symbol. Check out http://ez.no/ez_publish/documentation/customization/components/datatypes/ezxmltext/custom_tags for more information.

Alex

Alex
[ bald_technologist on the IRC channel (irc.freenode.net): #eZpublish ]

<i>When in doubt, clear the cache.</i>

Yauheni Lapanau

Tuesday 04 May 2004 3:12:27 am

I need use html tag and codes direct in input form. I don't want use custom tags.

Alex Jones

Tuesday 04 May 2004 6:15:20 am

Well, you could change all of your XML Text Fields to standard Text Fields which will accept your HTML for the most part. But in the long run that is limiting the power of the system. May I ask why you do not want to use custom tags?

Alex

Alex
[ bald_technologist on the IRC channel (irc.freenode.net): #eZpublish ]

<i>When in doubt, clear the cache.</i>

Yauheni Lapanau

Tuesday 04 May 2004 8:20:15 am

I try to use no xml field. But no good will come of it. Ez is changing (&) and paste into derived html data (&amp;), instead (<) insert (&lt;).
I need input in form html tag which will be processed by brouser. I want use the rule of publication. For example telephone number or name and surname must be written together.
<nobr>>(375)297-358-689</nobr>. Brouser show me (375)297-358-689 in line.

Alex Jones

Tuesday 04 May 2004 8:57:46 am

Check your templates to make sure there isn't a wash operator being used when you output your data (<i>|wash</i>).

Alex

Alex
[ bald_technologist on the IRC channel (irc.freenode.net): #eZpublish ]

<i>When in doubt, clear the cache.</i>

Yauheni Lapanau

Tuesday 04 May 2004 2:17:59 pm

I use in output date {attribute_view_gui attribute=$node.object.data_map.body}. No result.When I insert <nobr> and I use {$node.name} all works normally. A problem with   they remain as before.

Alex Jones

Wednesday 05 May 2004 7:29:32 am

When you use <i>{attribute_view_gui...}</i> the system automatically washes the output. Instead, try using something along the lines of:

{$node.object.data_map.body.content}

Again, this requires that your <i>body</i> field is not set up as an XML Text Field (which is the default) - it should be a Text Field. The reason it works when you use <i>{$node.name}</i> is the fact that the <i>Name</i> field is a Text line, so it is not subject to the XML filtering steps.

Alex

Alex
[ bald_technologist on the IRC channel (irc.freenode.net): #eZpublish ]

<i>When in doubt, clear the cache.</i>

Yauheni Lapanau

Wednesday 05 May 2004 2:33:26 pm

I use <literal class='html'>$content</literal> and remove operator wash in design/standard/templates/content/datatype/view/eztext.tpl. Then I something corrected literal tag \design\standard\templates\content\datatype\view\ezxmltags\

<div>{$content|(xhtml)}</div>

Thanks

Powered by eZ Publish™ CMS Open Source Web Content Management. Copyright © 1999-2014 eZ Systems AS (except where otherwise noted). All rights reserved.

eZ debug

Timing: Jan 31 2025 01:29:13
Script start
Timing: Jan 31 2025 01:29:13
Module start 'layout'
Timing: Jan 31 2025 01:29:13
Module start 'content'
Timing: Jan 31 2025 01:29:13
Module end 'content'
Timing: Jan 31 2025 01:29:13
Script end

Main resources:

Total runtime0.0248 sec
Peak memory usage4,096.0000 KB
Database Queries3

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0047 589.1406151.1953
Module start 'layout' 0.00470.0040 740.3359220.6719
Module start 'content' 0.00870.0142 961.00781,005.8672
Module end 'content' 0.02280.0019 1,966.875041.9922
Script end 0.0247  2,008.8672 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.003012.2041140.0002
Check MTime0.00124.9864140.0001
Mysql Total
Database connection0.00062.221610.0006
Mysqli_queries0.00239.132130.0008
Looping result0.00000.049110.0000
Template Total0.00114.510.0011
Template load0.00093.567010.0009
Template processing0.00020.949510.0002
Override
Cache load0.00062.346810.0006
General
dbfile0.00114.499180.0001
String conversion0.00000.027940.0000
Note: percentages do not add up to 100% because some accumulators overlap

Templates used to render the page:

UsageRequested templateTemplateTemplate loadedEditOverride
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 1
 Number of unique templates used: 1

Time used to render debug report: 0.0001 secs