Forums / Extensions / eZ Flow / Problems with adding HTML content to objects

Problems with adding HTML content to objects

Author Message

Marius Edvardsen

Saturday 20 September 2008 10:11:03 am

Im trying to create links or buttons so users easy can add content to the page. My only idea on how I do this is through a HTML <form> with the proper information inside. I did not manage to use a normal url with parameters in (like index.php?ClassID=38&NodeID=76 etc).

However when I try to paste my <form> into any page (after disabeling the WYSIWUG editor) I get the error message:

Input did not validate

* Left column: Unknown tag: <form>.

Is there any way to paste forms into pages, or is there any easyer way to create such shortcuts without using frames (using direct urls etc).

Gaetano Giunta

Sunday 21 September 2008 4:27:34 am

"I did not manage to use a normal url with parameters in (like index.php?ClassID=38&NodeID=76 etc)"

In eZ land, the parameters are not added to the url using the standard query string, but rather using a index.php/module/view/param1value/param2value syntax, such as in
/content/view/full/2 (content = module, view = view, 'full' = 1st param, 2 = 2nd param).
For more details see http://ez.no/doc/ez_publish/technical_manual/4_0/concepts_and_basics/modules_and_views

Note that your problem has nothing to do with frames - you cannot simply insert any kind of HTML you want in an xml-block attribute of an object, even though you have a rich editor for it. The html that is allowed in the attribute is quite limited, and it does not include forms.
To generate a real html form you will have to modify template code (ie. not in the admin interface, but via a programming GUI such as eclipse or phpedit).

If you do not need users to really create content object, but just participate in polls or send feedback, a useful feature and very simple to use is "information collector attributes". See http://ez.no/doc/ez_publish/technical_manual/4_0/concepts_and_basics/content_management/information_collection or http://ez.no/developer/articles/how_to_create_ez_publish_forms for more details

For allowing users to create content, a slightly outdated tutorial can be found here:
http://ez.no/ezpublish/documentation/building_an_ez_publish_site/the_guestbook Details might be slightly different, but the concept is the same.

The powercontent extension might also be helpful.

Principal Consultant International Business
Member of the Community Project Board

Michael schraeber

Monday 02 March 2009 2:04:57 am

Hello,
you can insert it very simple, if you have the HTML tag <literal> enabled:

<literal class="html">
YOUR HTML CODE
</literal>

best regards,
Michael

Cori Roberts

Wednesday 20 May 2009 8:49:19 am

@ Michael

So where would I put the literal tags, around the HTML every time it's added? Does it go in the CSS? Some PhP file?

The work around I came up with, because I use affiliate links that generate HTML for me, I just copied their image and then pulled out the URL and linked it to the image. But having the code actually work would be great! Let me know!

Gaetano Giunta

Thursday 21 May 2009 5:49:02 am

<i>So where would I put the literal tags, around the HTML every time it's added</i>

You need to develop your custom templates for this. Please read at least about the basic eZ Publish concepts in the online docs.

Principal Consultant International Business
Member of the Community Project Board

Cori Roberts

Wednesday 01 July 2009 3:18:40 pm

I'm looking through my old posts and still I've not figured out how to get this to work and I've read the docs as suggested but as I've said on every forum I post in, everyone here needs to understand that not everyone here is a developer and doesn't understand what you mean when you start going into great detail about strings and paths etc.

If I understood the programming mechanics of how eZ worked I wouldn't need to ask for help, I'd write them myself and be done with it.

Is there ANYONE here who can actually post some simple instructions like:

1. login
2. click go
3. type go dog run
4. Save
5. Refresh

Something..ANY help would be appreciated other than super super complicated explanations. I run a gaming site and simply don't have the time to read tons of documents, some terribly outdated, to find one solution when it would be easy for some of you to just explain in simpler terms. Not asking for a hand out, just a hand.