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

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 18 2025 16:10:53
Script start
Timing: Jan 18 2025 16:10:53
Module start 'layout'
Timing: Jan 18 2025 16:10:53
Module start 'content'
Timing: Jan 18 2025 16:10:54
Module end 'content'
Timing: Jan 18 2025 16:10:54
Script end

Main resources:

Total runtime0.9176 sec
Peak memory usage4,096.0000 KB
Database Queries60

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0058 588.0469152.6406
Module start 'layout' 0.00580.0025 740.687539.4766
Module start 'content' 0.00830.9079 780.1641546.5938
Module end 'content' 0.91620.0014 1,326.757812.1250
Script end 0.9176  1,338.8828 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00390.4204160.0002
Check MTime0.00130.1457160.0001
Mysql Total
Database connection0.00070.080110.0007
Mysqli_queries0.863094.0470600.0144
Looping result0.00050.0566580.0000
Template Total0.885596.520.4427
Template load0.00350.381820.0018
Template processing0.882096.117120.4410
Template load and register function0.00020.016410.0002
states
state_id_array0.00090.097410.0009
state_identifier_array0.00150.164920.0008
Override
Cache load0.00230.2560270.0001
Sytem overhead
Fetch class attribute can translate value0.00050.055120.0003
Fetch class attribute name0.00130.136950.0003
XML
Image XML parsing0.00220.239520.0011
class_abstraction
Instantiating content class attribute0.00000.001870.0000
General
dbfile0.00290.3163160.0002
String conversion0.00000.000640.0000
Note: percentages do not add up to 100% because some accumulators overlap

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
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_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