[opencms-dev] Link Management for Form Actions

Steve Bryan steve at bright-interactive.com
Fri Apr 23 12:47:44 CEST 2010


This might be an option, but only if I move the form to a JSP (the cms tags
don't apply in content). 

In this case the HTML for the form is in XML Page content.

Thanks
Steve

-----Original Message-----

Date: Fri, 23 Apr 2010 11:31:51 +0200
From: Borja Fernandez Pillado <borja.fpillado at gmail.com>
Subject: Re: [opencms-dev] Link Management for Form Actions
To: The OpenCms mailing list <opencms-dev at opencms.org>
Message-ID:
	<l2o78be0cd01004230231ifd3887edg4b2fd0a37e3cf033 at mail.gmail.com>
Content-Type: text/plain; charset="iso-8859-1"

Hi Steve,

Did you try to use the cms:link tag??? I don't know if it works but maybe it
does.

Regards

2010/4/23 Steve Bryan <steve at bright-interactive.com>

> Hi all
>
> I wonder if anyone can answer this question about OpenCms internal link
> management? I noticed that the management kicks in for hyperlinks in
> xmlpage
> content, but not for form actions. This is quite an unusual situation I
> guess but we do have a form in our content so we can have a button rather
> than a link.
>
> EG source code of content element:
> <h3>YOUR NEXT STEP</h3>
> <p><a title="Send an enquiry"
> href="/dtw/opencms/en/contact/make-enquiry/form.html">Send us an enquiry
> »</a></p>
> <form style="display: inline" method="get"
> action="/dtw/opencms/en/contact/make-enquiry/form.html">
>    <input type="submit" value="Make an Enquiry" />
> </form>
>
>
>
> OpenCms does it's magic and saves it with this control code:
> <?xml version="1.0" encoding="UTF-8"?>
>
> <pages xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
> xsi:noNamespaceSchemaLocation="http://www.opencms.org/dtd/6.0/xmlpage.xsd
> ">
>  <page language="en">
>    <element name="body">
>      <links>
>        <link name="link0" internal="true" type="A">
>
> <target><![CDATA[/sites/dtw/en/contact/make-enquiry/form.html]]></target>
>          <uuid>34f25d82-ba7d-11dd-912e-9ff002f2dde6</uuid>
>        </link>
>      </links>
>      <content><![CDATA[<h3>YOUR NEXT STEP</h3>
> <p><a title="Send an enquiry" href="%(link0)">Send us an enquiry
> »</a></p>
> <form style="display: inline" method="get"
> action="/dtw/opencms/en/contact/make-enquiry/form.html">
>    <input type="submit" value="Make an Enquiry" />
> </form>]]></content>
>    </element>
>  </page>
> </pages>
>
>
> Notice that the a href attribute is converted to an internal link but not
> the form action. Is there any way to achieve this? I would be grateful for
> ideas - it is a problem for us since we strip the tomcat context and
> opencms
> on live.
>
> Thanks
> Steve
>
>
>
> _______________________________________________
> This mail is sent to you from the opencms-dev mailing list
> To change your list options, or to unsubscribe from the list, please visit
> http://lists.opencms.org/mailman/listinfo/opencms-dev
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL:
http://lists.opencms.org/pipermail/opencms-dev/attachments/20100423/81ea78e4
/attachment-0001.htm 

------------------------------

_______________________________________________
This mail is send to you from the opencms-dev mailing list
To change your list options, or to unsubscribe from the list, please visit
http://mail.opencms.org/mailman/listinfo/opencms-dev

End of opencms-dev Digest, Vol 289, Issue 5
*******************************************




More information about the opencms-dev mailing list