Forums / General / Nesting tags within custom tags. Online Editor says they are not allowed?

Nesting tags within custom tags. Online Editor says they are not allowed?

Author Message

Edward Eliot

Thursday 07 October 2004 2:45:34 am

I am trying to nest a list of items within a custom tag but Online Editor strips them out syaing they are not allowed. Also is there any way to see and edit an inline tags within Online Editor. It showws up as a question mark which means I have to swithc to code view to edit. Hardly ideal.

My code is:

<custom name='featuresright'>
<strong>Key Features</strong>
<ul>
<li>Item 1</li>
<li>Item 2</li>
<li>Item 3</li>
<li>Item 4</li>
<li>Item 5</li>
<li>Item 6</li>
</ul>
</custom>

Edward Eliot

Tuesday 12 October 2004 1:20:07 am

Anyone have any ideas on this? I have seen previous posts about this but no solutions.

Edward Eliot

Wednesday 13 October 2004 1:23:37 am

Does anyone have any ideas on this? I find it hard to believe that this is not possible in eZpublish.

Wenyue Yu

Wednesday 13 October 2004 5:07:46 am

Hi,

<custom name='featuresright'>
<strong>Key Features</strong>

<ul>
<li>Item 1</li>
<li>Item 2</li>
<li>Item 3</li>
<li>Item 4</li>
<li>Item 5</li>
<li>Item 6</li>
</ul>
</custom>

will definitely work ( note that there is an extra linebreaks between <strong>Key Features</strong> and <ul> ). The problem is because a line tag is inserted when do not use editor while list is not supported under line tag. You won't get problem to make your list content inside custom tag in editor mode.

About how to edit inline custom tags, right click the question image, choose Properties and then you can edit text in the popup window.

Regards,
wenyue

Edward Eliot

Wednesday 13 October 2004 6:09:55 am

Thanks for replying. I am not sure what you mean by the exra line break. It still doesn't seem to work for me. I wanted to create some content in the Online Editor, then select it ans apply a custom tag to it. I don't think it makes much sense to have to type the code into the properties box of the custom tag. That is hardly WYSIWYG. I have also tried to achieve a similar effect by adding custom classes to the table object. I can apply them without problems but Online Editor forgets them after a Send to Publishing. I have submitted this as a bug. Any more ideas?

Edward Eliot

Thursday 14 October 2004 1:12:20 am

Wenyue Yu, thanks for your previous reply. Do you have any more suggestions as to why the editor may be forgetting the class specified when I click "Send to publishing". I have published a bug report here:

http://www.ez.no/community/bug_reports/online_editor_looses_classes_applied_to_the_table_tag

I need to get one of the methods listed above working soon as our site has to launch next week.

Edward Eliot

Thursday 14 October 2004 1:49:04 am

I am also now getting this error when I tried to disable the Online editor in one of my pages or "Send to publishing". I am guessing that eZpublish is spending to long trying to validate code it doesn't like, but I am not sure. Information displays correctly in the editor but I am guessing there is some kind of code mixup. Not sure how to solve it.

Fatal error: Maximum execution time of 30 seconds exceeded in
/usr/home/sites/lobsterpot.dev.nildram.net/docs/extension/ezdhtml/ezxmltext/handlers/input/ezdhtmlxmlinput.php on line 555
Fatal error: eZ publish did not finish it's request

The execution of eZ publish was abruptly ended, the debug output is present below.

Wenyue Yu

Thursday 14 October 2004 1:53:51 am

Hi,

> I am not sure what you mean by the exra line break.
Compare your code and my code, there is an empty line between <strong> tag line and <ul> line.

>I don't think it makes much sense to have to type the code into the properties box of the custom tag. >That is hardly WYSIWYG.
Nobody said that OE for eZ publish is pure WYSIWYG. But display inline custom tag as a image is not good. We will change this if we found a better idea.

> I have published a bug report here:

> http://www.ez.no/community/bug_re...ses_classes_applied_to_the_table_tag

Sorry, I have closed the bug report since we can't reproduce that. Are you using the correct OE version. ( should be editor 1.3.2 ). Does anyone else have the same problem?

Regards,
wenyue

Edward Eliot

Thursday 14 October 2004 1:59:16 am

How do I check the version? I downloaded the one for eZpublish 3.4. It recognises my classes correctly but doesn't remember on save. In reference to the custom tags, I have tried everything including removing the space between the strong tags and the list tags. I have also tried putting other tagged content within my custom tag. It all gets rejected, so I am not sure where to go from here. Basically, I wanted to be able to wrap my custom tag around any arbitary block of text (with tags or without) to create a floating features box.

Edward Eliot

Thursday 14 October 2004 2:07:04 am

I think it is probably worth pointing out that the code mentioned above was generated whilst in visual editor mode, which would probably be used by non-technical authors who are not aware of spacing issues etc. They should be able to go in, add a title and list, select it and apply a custom tag to it. I have now got my page to save with a custom tag applied but on the front end all the code between the custom tag has disappeared. Looking at the code view in the admin interface show it has also disappeared there as well. The code now reads:

<custom name='featuresright'></custom>

Edward Eliot

Thursday 14 October 2004 2:27:10 am

Yes, running 1.3.2.

Wenyue Yu

Thursday 14 October 2004 2:39:32 am

Hi,

About the table class can't be saved. It do happens if you set table border to '0'. This bug have been fixed and will be available in editor 1.4 ( for eZ publish 3.3 and 3.4 with mozilla support ) and editor 2.0 ( for eZ publish 3.5 with mozilla suport ).

You can change file extension/ezdhtml/ezxmltext/handlers/input/ezdhtmlxmlinput.php around line 1420 to the following:

if ( $attrName == 'ezclass' )
{
     $attrbute->setName( 'class' );
     $convertedAttr[] = $attrbute;
     $literalTagAttr[] = $attrbute;
     $coloredBorderTagAttr[] = $attrbute;
}

The only changes is adding line "$coloredBorderTagAttr[] = $attrbute;".

To find out which version you are using. Check the installation.txt under extension/ezdhtml.

Regards,
wenyue

Edward Eliot

Thursday 14 October 2004 2:52:58 am

Thanks, that works now. So my bug report was correct. ;-)