Forums / Developer / add tabber functionality

add tabber functionality

Author Message

Dhaval Patel

Thursday 10 January 2008 3:13:37 am

hello all,

i want to add tabber functionality like http://www.barelyfitz.com/projects/tabber/

so what do i do?

should i create new datatype or something else?

and if i create new datatype based on matrix datatype then i want to add textarea instead of text box. currently it is creating text boxes at creation/edition time of article in matrix datatype attribute , but i want to create textarea. and i don't know where to change code in ezmatrix datatype files to create textarea.

please help me.

With Best Regards,

Dhaval Patel
Team Leader - iNETProcess(I) Pvt. LTD.
dhaval.patel@inetprocess.com
Ph No: +91 79 65 12 35 00
http://www.inetprocess.co.in

Heath

Thursday 10 January 2008 3:29:33 am

Neat idea Dhaval!

Where and how do you want to use these features?

Cheers,
Heath

Brookins Consulting | http://brookinsconsulting.com/
Certified | http://auth.ez.no/certification/verify/380350
Solutions | http://projects.ez.no/users/community/brookins_consulting
eZpedia community documentation project | http://ezpedia.org

Dhaval Patel

Thursday 10 January 2008 3:40:24 am

hi

thank you for replying

now i have created 1 class named "article_solution".

I want the tabber functionality in the full view of the article of type "article_solution".

and i have different data for different "article_solution" articles.

and if u want more details then plz tell me.

i m using 3.9 version.

With Best Regards,

Dhaval Patel
Team Leader - iNETProcess(I) Pvt. LTD.
dhaval.patel@inetprocess.com
Ph No: +91 79 65 12 35 00
http://www.inetprocess.co.in

Heath

Thursday 10 January 2008 4:00:35 am

Sounds like you would like to create a template override of (at least) the user site article template, ie: <i>full/article.tpl</i>

You may wish to also customize the article class to provide for multiple xmlblocks for each page within a single content object.

Here are two similar topics (but with different solutions not related directly to the idea shared above).
[1] http://ez.no/developer/articles/building_a_custom_template_for_a_news_portal/news_article_view_modes
[2] http://ez.no/ezpublish/documentation/customization/tips_tricks/splitting_an_article_over_several_pages

Cheers,
Heath

Brookins Consulting | http://brookinsconsulting.com/
Certified | http://auth.ez.no/certification/verify/380350
Solutions | http://projects.ez.no/users/community/brookins_consulting
eZpedia community documentation project | http://ezpedia.org

Piotrek Karaƛ

Thursday 10 January 2008 1:20:09 pm

One idea that comes to my mind is a custom datatype with dynamically-extensible architecture (similar to ezauthor, for example), that can store pairs of node id and attribute identifier. Then attribute view gui for this datatype would automatically fetch proper node attributes and create tab's hypertext/javascript. Seems to me that it could be fully automatic and useful for tabbing documents scattered around the structure. I may actually put this into an extension, if I have a 'minute' some time this year... ;)

--
Company: mediaSELF Sp. z o.o., http://www.mediaself.pl
eZ references: http://ez.no/partners/worldwide_partners/mediaself
eZ certified developer: http://ez.no/certification/verify/272585
eZ blog: http://ez.ryba.eu

eZ debug

Timing: Jan 20 2025 20:09:45
Script start
Timing: Jan 20 2025 20:09:45
Module start 'content'
Timing: Jan 20 2025 20:09:45
Module end 'content'
Timing: Jan 20 2025 20:09:45
Script end

Main resources:

Total runtime0.0267 sec
Peak memory usage2,048.0000 KB
Database Queries4

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0080 587.9141180.8359
Module start 'content' 0.00800.0066 768.7500101.8672
Module end 'content' 0.01460.0119 870.617278.7031
Script end 0.0266  949.3203 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.002910.9151120.0002
Check MTime0.00155.6525120.0001
Mysql Total
Database connection0.00103.622910.0010
Mysqli_queries0.004817.895340.0012
Looping result0.00000.056320.0000
Template Total0.011442.810.0114
Template load0.00114.207610.0011
Template processing0.010338.577510.0103
Override
Cache load0.00083.160610.0008
General
dbfile0.006022.4668100.0006
String conversion0.00000.030430.0000
Note: percentages do not add up to 100% because some accumulators overlap

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