Forums / General / I need use typograph

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

eZ debug

Timing: Jan 18 2025 11:46:58
Script start
Timing: Jan 18 2025 11:46:58
Module start 'content'
Timing: Jan 18 2025 11:46:58
Module end 'content'
Timing: Jan 18 2025 11:46:58
Script end

Main resources:

Total runtime0.1869 sec
Peak memory usage4,096.0000 KB
Database Queries141

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0061 589.0313180.8516
Module start 'content' 0.00610.0056 769.8828101.9297
Module end 'content' 0.01170.1751 871.8125530.1094
Script end 0.1868  1,401.9219 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00341.8247200.0002
Check MTime0.00150.7913200.0001
Mysql Total
Database connection0.00080.429710.0008
Mysqli_queries0.143276.65931410.0010
Looping result0.00130.67351390.0000
Template Total0.174693.410.1746
Template load0.00080.453310.0008
Template processing0.173892.985410.1738
Override
Cache load0.00060.316810.0006
Sytem overhead
Fetch class attribute can translate value0.00110.592410.0011
XML
Image XML parsing0.00030.147710.0003
General
dbfile0.00412.1758200.0002
String conversion0.00000.002630.0000
Note: percentages do not add up to 100% because some accumulators overlap

CSS/JS files loaded with "ezjscPacker" during request:

CacheTypePacklevelSourceFiles
CSS0extension/community/design/community/stylesheets/ext/jquery.autocomplete.css
extension/community_design/design/suncana/stylesheets/scrollbars.css
extension/community_design/design/suncana/stylesheets/tabs.css
extension/community_design/design/suncana/stylesheets/roadmap.css
extension/community_design/design/suncana/stylesheets/content.css
extension/community_design/design/suncana/stylesheets/star-rating.css
extension/community_design/design/suncana/stylesheets/syntax_and_custom_tags.css
extension/community_design/design/suncana/stylesheets/buttons.css
extension/community_design/design/suncana/stylesheets/tweetbox.css
extension/community_design/design/suncana/stylesheets/jquery.fancybox-1.3.4.css
extension/bcsmoothgallery/design/standard/stylesheets/magnific-popup.css
extension/sevenx/design/simple/stylesheets/star_rating.css
extension/sevenx/design/simple/stylesheets/libs/fontawesome/css/all.min.css
extension/sevenx/design/simple/stylesheets/main.v02.css
extension/sevenx/design/simple/stylesheets/main.v02.res.css
JS0extension/ezjscore/design/standard/lib/yui/3.17.2/build/yui/yui-min.js
extension/ezjscore/design/standard/javascript/jquery-3.7.0.min.js
extension/community_design/design/suncana/javascript/jquery.ui.core.min.js
extension/community_design/design/suncana/javascript/jquery.ui.widget.min.js
extension/community_design/design/suncana/javascript/jquery.easing.1.3.js
extension/community_design/design/suncana/javascript/jquery.ui.tabs.js
extension/community_design/design/suncana/javascript/jquery.hoverIntent.min.js
extension/community_design/design/suncana/javascript/jquery.popmenu.js
extension/community_design/design/suncana/javascript/jScrollPane.js
extension/community_design/design/suncana/javascript/jquery.mousewheel.js
extension/community_design/design/suncana/javascript/jquery.cycle.all.js
extension/sevenx/design/simple/javascript/jquery.scrollTo.js
extension/community_design/design/suncana/javascript/jquery.cookie.js
extension/community_design/design/suncana/javascript/ezstarrating_jquery.js
extension/community_design/design/suncana/javascript/jquery.initboxes.js
extension/community_design/design/suncana/javascript/app.js
extension/community_design/design/suncana/javascript/twitterwidget.js
extension/community_design/design/suncana/javascript/community.js
extension/community_design/design/suncana/javascript/roadmap.js
extension/community_design/design/suncana/javascript/ez.js
extension/community_design/design/suncana/javascript/ezshareevents.js
extension/sevenx/design/simple/javascript/main.js

Templates used to render the page:

UsageRequested templateTemplateTemplate loadedEditOverride
1pagelayout.tpl<No override>extension/sevenx/design/simple/templates/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