Can not determin the name for the custom tag

Author Message

David Jones

Thursday 05 October 2006 1:29:40 am

While editing an XML box (via the sjsd editor) I have entered some XHTML code

<div id="shortCutPanel" class="image">
		<ul>
						
			<li class="greyPanel" >
				<a href="#" class="panel_child">
					<span class="title">Shortcut</span>
					<span class="desc">Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Proin l ibero conse-ctetuer.</span>	
				</a>
			/li>
		</ul>
</div>

Howeverm when I click to send for publishing (or click to view the ezp code I get the error "Can not determin the name for the custom tag" followed by a message saying that the code I entered has been ignored.

What does this error mean? Can it be fixed so I can enter code snippits like this?

David Jones

Thursday 05 October 2006 2:05:30 am

I found sjsd.ini and added this code

StartTags[shortCutPanelImage]=div class="image" id="shortCutPanel"
EndTags[shortCutPanelImage]=div

I cleared cached and cleared the browser cache but it still will not allow me to enter

<div div class="image" id="shortCutPanel">test</div>

Is there somewhere else I need to register this or have I simply done it wrong?

Thanks

David Jones

Thursday 05 October 2006 2:17:17 am

I've also added the following to content.ini.append

AvailableCustomTags[]=shortCutPanelImage
IsInline[shortCutPanelImage]=true

Still no joy.

What am I doing wrong?

David Jones

Thursday 05 October 2006 3:14:35 am

It seems that I can't put custom styles in via the editor. They display ok in the editor but when I send for publishing or view ezp source it crashes out with the custom tag error.

It wont even take things like <div class="left">

This is vital for my project. Please, is there a way to get this working?

Claudia Kosny

Thursday 05 October 2006 3:42:49 am

Hi David

I haven't done much with the XML editor so I might be totally wrong here, but I would try it roughly similar to the custom tags in the XML blocks.
http://ez.no/doc/ez_publish/technical_manual/3_6/reference/datatypes/xml_block#custom_tags

According to this you would have to write:

<custom name="shortCutPanelImage">
The quick brown fox jumps over the lazy dog.
</custom>

If such editors would work the way I would want them to work I would use custom tags like this:

<shortCutPanelImage>
The quick brown fox jumps over the lazy dog.
</shortCutPanelImage>

Again - I have not looked at the editor at all - these are just my two uneducated two cents.

I am pretty sure that there are some forum messages about this topic. Unfortunately forum search is down at the moment, so I cannot point you there.

Greetings from Luxembourg

Claudia

David Jones

Thursday 05 October 2006 5:44:49 am

Thanks Claudia, I had decided to go down that route and ditch the SJSD extension.

I now have three questions in order of importance.

1. You can add attricbutes when you insert a custom tag. How do I access these in the templates I've define for the tag.

2. Can I default these attribute names for each custom class rather tahn having the create them each time.

3. CAn I apply a style sheet to the ezdhtml text box to make it appear as it will in the front end?

Thanks for you help

David Jones

Thursday 05 October 2006 6:01:10 am

For question 1 I've tried this

 <div id="shortCutPanel" class="lightGray">
	<ul>
		<li class="greyPanel">
				<a href="#" >
					<span class="title">{attribute_view_gui attribute=$content.title}</span>
				<span class="desc">{attribute_view_gui attribute=$content.text}</span>
					</a>
							</li>
							</div>

But I'm guessing that $content is not what I need to use as it's notdisplaying anything.

THanks

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 19 2025 12:46:50
Script start
Timing: Jan 19 2025 12:46:50
Module start 'layout'
Timing: Jan 19 2025 12:46:50
Module start 'content'
Timing: Jan 19 2025 12:46:52
Module end 'content'
Timing: Jan 19 2025 12:46:52
Script end

Main resources:

Total runtime1.3926 sec
Peak memory usage4,096.0000 KB
Database Queries69

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0062 589.2891152.6406
Module start 'layout' 0.00620.0036 741.929739.4766
Module start 'content' 0.00981.3814 781.4063520.7656
Module end 'content' 1.39120.0014 1,302.171916.1250
Script end 1.3926  1,318.2969 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00310.2246160.0002
Check MTime0.00130.0943160.0001
Mysql Total
Database connection0.00060.045210.0006
Mysqli_queries1.332195.6544690.0193
Looping result0.00070.0473670.0000
Template Total1.343996.520.6719
Template load0.00200.145020.0010
Template processing1.341996.354220.6709
Template load and register function0.00020.017610.0002
states
state_id_array0.00240.172310.0024
state_identifier_array0.00200.145220.0010
Override
Cache load0.00180.1268470.0000
Sytem overhead
Fetch class attribute can translate value0.00090.061820.0004
Fetch class attribute name0.00090.061670.0001
XML
Image XML parsing0.00020.016420.0001
class_abstraction
Instantiating content class attribute0.00000.002270.0000
General
dbfile0.00070.0477100.0001
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
7content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
15content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
7content/datatype/view/ezxmltags/literal.tpl<No override>extension/community/design/standard/templates/content/datatype/view/ezxmltags/literal.tplEdit templateOverride template
1content/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: 32
 Number of unique templates used: 6

Time used to render debug report: 0.0001 secs