Sunday 29 June 2003 5:38:37 am
Hi,
The easier way to create html code in 3.1 with editor is using literal tag. First of all, edit content.ini under folder settings, add following line under block [literal] AvailableClasses[]=html Secondly, edit override.ini.append under forder settings/siteaccess/your_site(admin, for example)/ by appending following:
[html_code]
Source=content/datatype/view/ezxmltags/literal.tpl
MatchFile=html.tpl
Subdir=templates Match[classification]=html
The last thing to do is create html.tpl and put it under design/your_site(admin,for example) /override/templates/. The tpl may only contain one line: {$content} After all this is done, when you edit an article using editor, whenever you need to write html code, just insert literal tag and set it to class "html", then you will get the desired result. Actually, lots of thing can be done using class attribute introduced in 3.1 such as render table, table cell in different style, assign color, font to header, list and many more. What you need to do is just creating different template files for each defined class. About the image size "original", since ez publish 3.1 does not support it totally, ( no template for rendering), so does the online editor. But we will support it in later releases.
Regards, Wenyue
|