Forums / Developer / Can not determin the name for the custom tag

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

eZ debug

Timing: Jan 21 2025 16:10:41
Script start
Timing: Jan 21 2025 16:10:41
Module start 'content'
Timing: Jan 21 2025 16:10:41
Module end 'content'
Timing: Jan 21 2025 16:10:41
Script end

Main resources:

Total runtime0.1694 sec
Peak memory usage2,048.0000 KB
Database Queries141

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0068 588.9609180.8125
Module start 'content' 0.00680.0048 769.773497.9453
Module end 'content' 0.01160.1578 867.7188526.6250
Script end 0.1694  1,394.3438 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00352.0580200.0002
Check MTime0.00140.8261200.0001
Mysql Total
Database connection0.00070.440310.0007
Mysqli_queries0.120270.92301410.0009
Looping result0.00130.73941390.0000
Template Total0.157492.910.1574
Template load0.00080.498710.0008
Template processing0.156592.379510.1565
Override
Cache load0.00060.350710.0006
Sytem overhead
Fetch class attribute can translate value0.00100.605510.0010
XML
Image XML parsing0.00030.171710.0003
General
dbfile0.00502.9450200.0002
String conversion0.00000.004130.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
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