Forums / Extensions / Dictionary

Dictionary

Author Message

Sao Tavi

Tuesday 12 October 2010 3:04:30 pm

I want to set up an online dictionary system that would contain some features and, as I am new to eZ Publish, I want first to ask for the opinion of the more experienced of how it would be easiest to implement.

So... the dictionary itself will be made out of words. Each word would be made out of title, an explanation and a list of variants separated by comma (",") and will have it's own page.

The dictionary would consist of a list of pages, one for every letter, and on each of these pages there will be the words that start with that letter and a excerpt of the description. Of course, each word will link to it's specific page. There also will be a search form needed that will first look for the words, then for the variants and then the description.

This part would sound a little bit like a blog, each word to be like a blog post, each day of the callendar a letter (sorted, of course, by title alphabetically). Would there be a better way to implement this?

On the other hand, at some articles body, I want to link the words that are also found in the dictionary to the word in the dictionary (so basically replace all the occurrences of 'IRC' with '<a href="http://mydomain.com/dictionary/i/irc">IRC</a>', where IRC was defined in the dictionary, for example).

Is there any filter or hook that would allow me to do that? What would be the best practice?

Sao Tavi

Saturday 06 November 2010 11:27:11 am

Is there any up to date tutorial on how to write extensions for ez publish?

Gaetano Giunta

Saturday 06 November 2010 11:36:20 am

Answering to the original question: all of this sounds prettu standard - no need to create extensions for it to work.

If putting links by hand in the text of blog articles that point to words in the dictionary is an option, just use the 'link' button when editing the rich text.

Principal Consultant International Business
Member of the Community Project Board

Paul Borgermans

Saturday 06 November 2010 1:01:39 pm

There is an improved version based on original work from me and collegues a while ago: ca_glossary, http://projects.ez.no/ca_glossary which does the autolinking.

hth

Paul

eZ Publish, eZ Find, Solr expert consulting and training
http://twitter.com/paulborgermans

Sao Tavi

Saturday 06 November 2010 3:02:43 pm

Thank you very much for your replies!

Gaetano, the problem is that there will be a lot of terms that will have to be linked and I do not believe that the publishers will link everything. I need something coherent, I don't want a term to be linked in one place and in another not.

Paul, great work! This seems to be exactly what I wanted to build! The only issue that may be would be the compatibility with 4.4, but I'll give it a try and see what happens :D

Sao Tavi

Sunday 07 November 2010 4:30:35 am

I tried the extension and there seems to be a problem. I posted it in the extension forum.

On the other hand I am amazed how simple it is to build extensions! I am pretty happy that I choosed ezPublish :D

Also, I am still looking for up to date tutorials/documentation on creating extensions. As I am very new to this, I would like to start with a beginning.

Later edit: I guess this can be marked as solved, thanks for all your help!

Nicolas Pastorino

Sunday 07 November 2010 7:27:00 am

"

Later edit: I guess this can be marked as solved, thanks for all your help!

"

Hi Sao!

You can mark this one as solved yourself, as the author of the thread : simply click the small ticker, right at the left of the topic title, at the top of the page.

Glad to see you got helpful assistance,
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

eZ debug

Timing: Jan 17 2025 23:53:00
Script start
Timing: Jan 17 2025 23:53:00
Module start 'content'
Timing: Jan 17 2025 23:53:00
Module end 'content'
Timing: Jan 17 2025 23:53:00
Script end

Main resources:

Total runtime0.1473 sec
Peak memory usage2,048.0000 KB
Database Queries141

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0057 588.6719180.8594
Module start 'content' 0.00570.0071 769.5313102.0313
Module end 'content' 0.01280.1345 871.5625530.9453
Script end 0.1473  1,402.5078 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00352.3520200.0002
Check MTime0.00140.9298200.0001
Mysql Total
Database connection0.00090.608810.0009
Mysqli_queries0.102269.37221410.0007
Looping result0.00130.86571390.0000
Template Total0.134091.010.1340
Template load0.00100.653710.0010
Template processing0.133090.297210.1330
Override
Cache load0.00070.471810.0007
Sytem overhead
Fetch class attribute can translate value0.00100.645610.0010
XML
Image XML parsing0.00030.186010.0003
General
dbfile0.00322.1449200.0002
String conversion0.00000.004030.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