Forums / Developer / Nonbreaking spaces

Nonbreaking spaces

Author Message

Kévin S.

Wednesday 18 August 2010 2:31:35 am

Hello !

I think everybody has ever had the problem of the question mark that goes down on the next line, all alone...

I did not see any solution to this problem in eZ Publish, though. Is there a way to add automatically nonbreaking spaces in an ezxml block, for instance ?

Or maybe someone has found another way to stop the questions mark from going on the next line ?

Thank you !

___

Kévin

Kévin S.

Wednesday 18 August 2010 2:46:57 am

I've just found the solution of the problem : in the ezxml editor just use shift+space to create a nonbreaking space. The code used when the editor is desactivated is " ".

Some issues have also been made for that : http://issues.ez.no/IssueView.php?Id=13032 http://issues.ez.no/8494, I should have begun to search there !

___

Kévin

Nicolas Pastorino

Wednesday 18 August 2010 3:15:22 am

Hi Kevin !

Small note : don't hesitate to add a comment to the issues you found, giving more information on the issue based on your findings. Generally, this is a good practice, on any issue you may encounter.

Cheers,

--
Nicolas Pastorino
Director Community - eZ
Member of the Community Project Board

eZ Publish Community on twitter: http://twitter.com/ezcommunity

t : http://twitter.com/jeanvoye
G+ : http://plus.tl/jeanvoye

Kévin S.

Friday 20 August 2010 2:03:48 am

OK Nicolas, I'll add some comments to the issues :)

___

Kévin

Lo' F.

Friday 27 August 2010 6:01:23 am

...Speaking of nonbreaking spaces, in a situation like this...

{foreach $news as $new}
   <li><a href={$new.url|ezurl}>{attribute_view_gui attribute=$new.object.data_map.intro}&gt;&gt;&gt;</a></li>
{/foreach}

...on screen, it comes like this...

"

- Porttitor magna, at vehicula pede dui id enim
>>>

- Porttitor magna, at vehicula pede dui id enim
>>>

"

how can I make it come in the same line, like this?..

"

- Porttitor magna, at vehicula pede dui id enim >>>

- Porttitor magna, at vehicula pede dui id enim >>>

"

loredanaebook.it

Lo' F.

Tuesday 07 September 2010 1:54:26 pm

Well, regarding what I said here above.. I figured out that it is not an eZ issue (..though I was looking for some template operators!)

The intro attributes here contain a paragraph <p>text</p> and by adding those &gt;s after it, they break to a new line.

Just fixed the thing through css: .. p {display:inline};

loredanaebook.it

eZ debug

Timing: Jan 17 2025 23:36:43
Script start
Timing: Jan 17 2025 23:36:43
Module start 'content'
Timing: Jan 17 2025 23:36:45
Module end 'content'
Timing: Jan 17 2025 23:36:45
Script end

Main resources:

Total runtime1.6738 sec
Peak memory usage4,096.0000 KB
Database Queries205

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0059 591.4609180.8438
Module start 'content' 0.00591.5370 772.3047621.3203
Module end 'content' 1.54290.1307 1,393.6250337.0703
Script end 1.6737  1,730.6953 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00450.2660210.0002
Check MTime0.00150.0882210.0001
Mysql Total
Database connection0.00080.047110.0008
Mysqli_queries1.580494.42362050.0077
Looping result0.00200.12132030.0000
Template Total1.620296.820.8101
Template load0.00230.138020.0012
Template processing1.617996.660720.8089
Template load and register function0.00020.013710.0002
states
state_id_array0.00110.065510.0011
state_identifier_array0.00140.086320.0007
Override
Cache load0.00200.1205470.0000
Sytem overhead
Fetch class attribute can translate value0.00110.063040.0003
Fetch class attribute name0.00150.090080.0002
XML
Image XML parsing0.00150.088740.0004
class_abstraction
Instantiating content class attribute0.00000.001190.0000
General
dbfile0.00550.3270330.0002
String conversion0.00000.000330.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
1node/view/full.tplfull/forum_topic.tplextension/sevenx/design/simple/override/templates/full/forum_topic.tplEdit templateOverride template
6content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
12content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
3content/datatype/view/ezimage.tpl<No override>extension/sevenx/design/simple/templates/content/datatype/view/ezimage.tplEdit templateOverride template
1content/datatype/view/ezxmltags/literal.tpl<No override>extension/community/design/standard/templates/content/datatype/view/ezxmltags/literal.tplEdit templateOverride template
2content/datatype/view/ezxmltags/line.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/line.tplEdit templateOverride template
2content/datatype/view/ezxmltags/quote.tpldatatype/ezxmltext/quote.tplextension/ezwebin/design/ezwebin/override/templates/datatype/ezxmltext/quote.tplEdit templateOverride template
2content/datatype/view/ezxmltags/emphasize.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/emphasize.tplEdit templateOverride template
1pagelayout.tpl<No override>extension/sevenx/design/simple/templates/pagelayout.tplEdit templateOverride template
 Number of times templates used: 30
 Number of unique templates used: 9

Time used to render debug report: 0.0003 secs