Forums / Setup & design / Images inside content, xml tags, two questions.

"Please Note:
  • At the specific request of Ibexa we are changing this projects name to "Exponential" or "Exponential (CMS)" effective as of August, 11th 2025.
  • This project is not associated with the original eZ Publish software or its original developer, eZ Systems or Ibexa".

Images inside content, xml tags, two questions.

Author Message

alvaro alvaro

Tuesday 06 June 2006 12:59:44 am

1) How could i insert an image inside a content with an OWN size, not defined in the ini files, a dynamic width and height. I know xmltag embed, but it work with filters defined in ini files.

2)The xmltag embed works with references to objects, how could i insert an image from a path? like the img tag in xhtml.

Thx.

Łukasz Serwatka

Wednesday 07 June 2006 5:09:58 am

Hi alvaro,

Ad.1

You can override the image emded template and pass parameters to it like width and height. Then you can use that values in the template and scale the original image.

Ad.2

You can define the new custom tag:
http://ez.no/doc/ez_publish/technical_manual/3_6/reference/datatypes/xml_block/custom_tags

http://ez.no/products/ez_publish_cms/documentation/customization/components/datatypes/ezxmltext/custom_tags

As one of parameters pass path to the image.

Personal website -> http://serwatka.net
Blog (about eZ Publish) -> http://serwatka.net/blog