Forums / Developer / Glossary Operator : problem displaying links

Glossary Operator : problem displaying links

Author Message

David Zaoui

Friday 15 June 2007 7:08:41 am

Hi everyboduy,

I have a strange issue using the glossary operator in my articles : when i add links into them in editing mode, everythinghs seems ok (they are well displayed on the input form).
But when i see them after they are published, the links aren't displayed anymore...
I tried to search the reasons of this problem and i think it comes from the glossary operator.
When i look at the source code of my page , it appears that there is a "<skip0>" tag where there should normally be a "<a href = ..>" tag.

Does anybody know this problem ?

Thank You

David

Fabricio Guerrero

Friday 15 June 2007 7:34:24 am

hi..

exactly as you mention.. the operator is built such way that it doesn't support links...

you'd need to get into the extension and hack it so it supports your links...

where will your links be exactly?? in the middle or with in the article? or will these always at the beggining or end of the article?

http://www.solobromasychistes.com <<Joomla Site :P
http://www.recipesforhealthyfood.com/ <<Drupal Site :P
http://www.ezforge.com/ <<future ezCommunity, Articles, forums and more...

David Zaoui

Tuesday 19 June 2007 1:13:29 am

Hi Fabricio,

The Glossary Operator doesn't work with links, but isn't it supposed to avoid these links ( = putting them out of the article during its process then reinjecting them into it) ? Is there a way to indicate to the Glossary operator not to touch to these links?
To answer your question, the links can be inserted anywhere in the article.

Thank you,

David

Hans Melis

Tuesday 19 June 2007 2:48:04 am

Hi David

The glossary operator should indeed discard links and the <skip0> tag indicates that it was in fact trying to do so. The operator inserts those tags where the discarded tags occur. After that, it applies the glossary to the remaining content. When that's done, all skip-tags are replaced by their original counterparts again.

In your case, it appears the last step failed for some odd reason. So I have a couple of questions for you:

1. What version of eZ publish are you using?
2. What version of the glossary operator are you using?
3. Do you see any (remotely) related error messages in the debug output?

Hans
http://blog.hansmelis.be

David Zaoui

Wednesday 20 June 2007 1:37:06 am

Hi Hans ,
to answer your questions :

- i'm using ez publish 3.9.1 ( and unfortunately i can't upgrade it since it was decided to work with this version)
- I have the Glossary Operator version 3.0.2
- When i turn the debug output on , i have one message related the Glossary operator :
"Undefined variable: teller in /home/intranet/svn/intranet/ezpublish-3.9.1/extension/glossary/autoloads/sckglossarytemplateoperator.php on line 501"

Have you got any clue?

Thanks

David

Hans Melis

Wednesday 20 June 2007 6:13:42 am

Unfortunately, I don't have a clue at the moment. Putting the original tags back is unconditional code, so I don't understand why it isn't happening. The SVN version of the operator has been changed to support 3.8+ and it works here on a 3.9 site.

I'll try some scenarios on a 3.9 install to see if I can recreate the problem.

Hans
http://blog.hansmelis.be

Hans Melis

Thursday 21 June 2007 2:28:31 am

I was unable to reproduce the problem until I decided to download the contribution and try that code. The problem you were experiencing was simply not possible with the code I had. As soon as I installed the contribution package, the problem appeared. And then it hit me...

I have been using svn versions of contributions for years, and the glossary contribution page didn't contain the most recent version. So of course I couldn't reproduce it because I was using a fixed version.

I have repackaged the operator and uploaded it to the contribution page. The operator is now also multilingual-aware, but this limits its compatibility to eZ publish 3.8+. For those who need a version compatible with an older eZ publish version, there's an explanation in the changelog on the contribution page how to get it from svn.

Version 4.0 is live and it should fix your problem :-)

Hans
http://blog.hansmelis.be

David Zaoui

Thursday 21 June 2007 2:51:51 am

Thank you very much !

David

Marcus M.

Wednesday 19 December 2007 7:12:35 am

Hi,

I noticed some strange behavior with the glossary operator.

ezPublish -> 3.10.0
glossary operator -> 4.0
no related debug messages

I have the following HTML-Text which was generated by ezPublish using a XML-Field.

<p>
<b>Melden Sie sich direkt bei </b><a href="http://www.affili.net/publisher/signup.aspx?pid=4589" target="_blank"><b>Affilinet</b></a><b> für Steuercheck24 an.</b>
</p>

If I activate the glossary operator the link will be destroyed. Afterwards it looks like this

<p>
<b>Melden Sie sich direkt bei </b><skip1><b> für Steuercheck24 an.</b>
</p>

The following tags are masked using the IgnoreTags setting in glossary.ini

IgnoreTags[]
IgnoreTags[]=a
IgnoreTags[]=link
IgnoreTags[]=object
IgnoreTags[]=b
IgnoreTags[]=br

Any ideas??

Regards
Marcus

Hans Melis

Wednesday 19 December 2007 8:42:17 am

Hi Marcus,

I can see the problem there... you have both 'a' and 'b' elements in the ignore list. The generated HTML has a nested 'b' inside an 'a' element and that doesn't seem to work. Time to fix some stuff :-)

I do have to say that is some very weird output. I don't understand why the bolding is stopped before the link and resumed after the link when the link text is also bold. Everything can go inside a single b-tag. Are you using the default XML output handler? If so, I'd file a bug because it's making this more complicated than it should be.

Hans
http://blog.hansmelis.be

Marcus M.

Monday 07 January 2008 7:59:45 am

Hi Hans,

sorry for my late response!

What do you mean with "XML output handler" ?
Do you mean the way how XML-content will be displayed?

Anyway I use the default way of displaying XML-content:

{if $node.object.data_map.description.has_content}
  <div class="contentText">
    {attribute_view_gui attribute=$node.data_map.description}
  </div>
{/if}

Also there exists no override template for displaying XML-content.

Regards
Marcus

eZ debug

Timing: Jan 18 2025 10:53:04
Script start
Timing: Jan 18 2025 10:53:04
Module start 'content'
Timing: Jan 18 2025 10:53:05
Module end 'content'
Timing: Jan 18 2025 10:53:05
Script end

Main resources:

Total runtime1.3916 sec
Peak memory usage4,096.0000 KB
Database Queries222

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0088 588.9609180.8125
Module start 'content' 0.00881.1290 769.7734730.3672
Module end 'content' 1.13790.2537 1,500.1406348.4297
Script end 1.3916  1,848.5703 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00470.3393210.0002
Check MTime0.00170.1219210.0001
Mysql Total
Database connection0.00080.054310.0008
Mysqli_queries1.220287.68242220.0055
Looping result0.00330.23522200.0000
Template Total1.343196.520.6715
Template load0.00180.130120.0009
Template processing1.341396.379220.6706
Template load and register function0.00020.014210.0002
states
state_id_array0.00140.097710.0014
state_identifier_array0.00350.250620.0017
Override
Cache load0.00170.1241910.0000
Sytem overhead
Fetch class attribute can translate value0.00220.157450.0004
Fetch class attribute name0.00200.1455140.0001
XML
Image XML parsing0.01280.917750.0026
class_abstraction
Instantiating content class attribute0.00050.0394180.0000
General
dbfile0.03172.2751380.0008
String conversion0.00000.000730.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
11content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
23content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
10content/datatype/view/ezxmltags/line.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/line.tplEdit templateOverride template
7content/datatype/view/ezimage.tpl<No override>extension/sevenx/design/simple/templates/content/datatype/view/ezimage.tplEdit templateOverride template
3content/datatype/view/ezxmltags/literal.tpl<No override>extension/community/design/standard/templates/content/datatype/view/ezxmltags/literal.tplEdit templateOverride template
1pagelayout.tpl<No override>extension/sevenx/design/simple/templates/pagelayout.tplEdit templateOverride template
 Number of times templates used: 56
 Number of unique templates used: 7

Time used to render debug report: 0.0002 secs