开发者

Adding html form and input tags into Symfony static pages

I inherited the management of a Symfony site and need to add some HTMl form tags to one of the "static" pages via the CMS. The scenario I have is: /index.php/splash/welcome pulls up the welcome screen. We want to be able to add a subscription button on that page. The HTML has been supplied for us by the company that handles the subscriptions. The form post method has an action that references a script on a remote site (no lectures on the security implications please ;-). When I add the <form... and <input... tags via the CMS admin开发者_高级运维 panel, the tags get removed automatically by Symfony. Is there a way to tell Symfony to allow these tags?

Thanks in advance, Marty.


This is goign to depend completely on how the developer set up the CMS. Youre using a rich text editor in source mode i would take a look at that editor's config file and documentation because its probably the one responsible for stripping the tags.

If its just a plain text area i would check the submit action for the edit form and take a look at the code... he may be using something to strip them in there.

If youre using one of the Symfony CMS plugins (Diem, Apostrophe, Sympal) i might be able to help further if i know which one youre using. If its something custom we would need to see the code. This isnt really indiciative of the Symfony core, but rather the CMS youre using.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜