Forums / Developer / Online Editor: Writable Custom Tag (like Factbox)

Online Editor: Writable Custom Tag (like Factbox)

Author Message

Craig Hirsch

Monday 11 April 2005 7:00:51 am

How can I create a custom tag like the Factbox or Quote -- that is, one that allows the user to write content inside it in the Online Editor? My tags all just show up as the "custom tag" questionmark icon, that has to be right-clicked on in order to be edited.

Thanks!

--
chirsch{AT}gmail{d.t}com

Wenyue Yu

Monday 11 April 2005 7:30:13 am

Hi,

You need to add a similar line to content.ini.append

[CustomTagSettings]
AvailableCustomTags[]=my_tag

but remember NOt this line ( it is for inline tag only)

IsInline[my_tag]=true

Regards,
Wenyue

Craig Hirsch

Monday 11 April 2005 8:58:14 am

I have done what you recommend already, but my custom tag just shows up as a "question mark" icon (the Custom Tag icon, actually) inside the online editor window. How can I get it to show up as a box that I can write text inside IN the online editor? (like Quote and Factbox). I don't want to have to right-click on it and enter text in the popup Properties window.

Note that it works fine on the user site, just not in the online editor.

--
chirsch{AT}gmail{d.t}com

Craig Hirsch

Monday 11 April 2005 9:04:33 am

Got it! Actually, here is what I had that DIDN'T work:

[CustomTagSettings]
AvailableCustomTags[]=pullbox
IsInline[pullbox]=false

Now, you would think that would work, right? It's somewhat confusing, but apparently placing the IsInline[custom_tag]=false directive in the content.ini override actually sets it to true...

Shouldn't IsInline[my_custom_tag]=false work the same as not putting the line in at all?

--Craig

--
chirsch{AT}gmail{d.t}com

eZ debug

Timing: Jan 18 2025 11:34:05
Script start
Timing: Jan 18 2025 11:34:05
Module start 'content'
Timing: Jan 18 2025 11:34:06
Module end 'content'
Timing: Jan 18 2025 11:34:06
Script end

Main resources:

Total runtime1.0569 sec
Peak memory usage4,096.0000 KB
Database Queries197

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0079 588.9766180.8125
Module start 'content' 0.00790.8864 769.7891551.6875
Module end 'content' 0.89430.1626 1,321.4766336.7422
Script end 1.0569  1,658.2188 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00410.3904210.0002
Check MTime0.00160.1496210.0001
Mysql Total
Database connection0.00210.199110.0021
Mysqli_queries0.972792.03461970.0049
Looping result0.00230.21631950.0000
Template Total1.021296.620.5106
Template load0.00160.151020.0008
Template processing1.019696.468020.5098
Template load and register function0.00020.018010.0002
states
state_id_array0.00120.110510.0012
state_identifier_array0.00100.097220.0005
Override
Cache load0.00130.1259270.0000
Sytem overhead
Fetch class attribute can translate value0.00140.129330.0005
Fetch class attribute name0.00310.297250.0006
XML
Image XML parsing0.00460.438630.0015
class_abstraction
Instantiating content class attribute0.00000.001770.0000
General
dbfile0.00700.6580270.0003
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
3content/datatype/view/ezimage.tpl<No override>extension/sevenx/design/simple/templates/content/datatype/view/ezimage.tplEdit templateOverride template
4content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
7content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
2content/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
1pagelayout.tpl<No override>extension/sevenx/design/simple/templates/pagelayout.tplEdit templateOverride template
 Number of times templates used: 20
 Number of unique templates used: 7

Time used to render debug report: 0.0001 secs