How to Create Sub Items/Object and show it directly in pages

Author Message

Vins Prasad

Wednesday 24 March 2010 5:14:11 am

Hi,

 

I need to create own designed sub item which then I can use it other pages as well usig "Insert object" facility. For example, I need to show a text block (Rectangle with text) which shows a Help tip. There are many help tips and same help tip can shows in many other pages.

So far my solution is,

 

1. Create a "Class" with "XML Block" to accept help tip.
2. Create a relevant template (.tpl) to show the tip.
3. Then the newly created class will appear at under “Create Here”.
4. Select new class and click “Create Here”, Enter the required text in text are, named it as “HelpTip_1” and publish it. Continue till “HelpTip_X”.
5. Then when ever new page created, I can add required “Help tip” which already create using “Insert Object function”

My Problem
I have success on all above steps and able to add “Help Tip” to pages but those are showed in pages as Links rather than shows the content. If I clicked the Link then it’ll show the content. So, How can I showed the text directly rather than link?
Or,
Any mistake on my approach?

Thanks in advance,

Vins

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 01:57:40
Script start
Timing: Jan 18 2025 01:57:40
Module start 'layout'
Timing: Jan 18 2025 01:57:40
Module start 'content'
Timing: Jan 18 2025 01:57:41
Module end 'content'
Timing: Jan 18 2025 01:57:41
Script end

Main resources:

Total runtime0.6702 sec
Peak memory usage4,096.0000 KB
Database Queries46

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0061 588.1719152.6563
Module start 'layout' 0.00610.0034 740.828139.5078
Module start 'content' 0.00950.6593 780.3359406.0313
Module end 'content' 0.66880.0014 1,186.36728.0938
Script end 0.6702  1,194.4609 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00340.5024160.0002
Check MTime0.00130.2013160.0001
Mysql Total
Database connection0.00080.119710.0008
Mysqli_queries0.629093.8550460.0137
Looping result0.00040.0667440.0000
Template Total0.635894.920.3179
Template load0.00230.347520.0012
Template processing0.633494.512320.3167
Template load and register function0.00020.025410.0002
states
state_id_array0.00150.217310.0015
state_identifier_array0.00190.285720.0010
Override
Cache load0.00190.2807230.0001
Sytem overhead
Fetch class attribute can translate value0.00050.068210.0005
Fetch class attribute name0.00050.081010.0005
XML
Image XML parsing0.00020.031110.0002
class_abstraction
Instantiating content class attribute0.00000.000610.0000
General
dbfile0.00140.2032100.0001
String conversion0.00000.001340.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
1content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
3content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
3content/datatype/view/ezxmltags/line.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/line.tplEdit templateOverride template
2content/datatype/view/ezxmltags/strong.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/strong.tplEdit templateOverride template
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 11
 Number of unique templates used: 6

Time used to render debug report: 0.0002 secs