Forum postings - can't control rendering of links

Author Message

Cefn Hoile

Thursday 07 April 2005 9:44:45 am

I have set up an EZPublish site, based on the 'forum' template, but find that forum topics which contain URLS do not wrap correctly. They end up being as wide as the longest URL in the posting, and hence overflow onto the right bar.

I cannot apparently use <link> or <a> tags in the forums, as I can elsewhere in the site. If I could, this would allow these links to be shortened.

Possible fixes might include
- turn on html for forum postings
- find another way of expressing links in forum postings
- change the template so it is naturally wider, (there is a lot of space either side of the layout on a 1024 * 768 screen) and hence URLs would not normally overflow.

I'm afraid I don't know where to start with any of these.

Can anyone help with this?

Ɓukasz Serwatka

Monday 11 April 2005 5:54:53 am

Hi Cefn,

You can use wash and autolink operators.
Example:

{$node.object.data_map.message.content|wash()|autolink()|nl2br} 

In
forum_topic_full -> /node/view/full.tpl

Personal website -> http://serwatka.net
Blog (about eZ Publish) -> http://serwatka.net/blog

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 03:31:28
Script start
Timing: Jan 31 2025 03:31:28
Module start 'layout'
Timing: Jan 31 2025 03:31:28
Module start 'content'
Timing: Jan 31 2025 03:31:28
Module end 'content'
Timing: Jan 31 2025 03:31:28
Script end

Main resources:

Total runtime0.0408 sec
Peak memory usage6,144.0000 KB
Database Queries3

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0055 588.2656151.2266
Module start 'layout' 0.00550.0039 739.4922220.7344
Module start 'content' 0.00940.0300 960.2266997.9609
Module end 'content' 0.03940.0014 1,958.187529.9922
Script end 0.0408  1,988.1797 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00266.4513140.0002
Check MTime0.00112.6192140.0001
Mysql Total
Database connection0.00092.146110.0009
Mysqli_queries0.00317.480330.0010
Looping result0.00000.046710.0000
Template Total0.00102.410.0010
Template load0.00081.893310.0008
Template processing0.00020.497610.0002
Override
Cache load0.00051.325110.0005
General
dbfile0.017843.596380.0022
String conversion0.00000.022240.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