Sign in

E-mail *, (xx@domain.com)
Password *

Register | Forgot password

Edit html templates

Answered
Not marked as answered yet

Forums  >  Community edition  >  Edit html templates


Author Edit html templates
kanduvisla


Posts: 16

Posted: 25-03-2010 15:41

How can I edit the html-templates? For example, if I wish to change the content of the footer.

I am now editing core files located at:

D:/GX/WebManager9/webmanager-webapps/webmanager-backend-webapp/target/webmanager-backend-webapp-1.0-SNAPSHOT/WEB-INF/project/com.gxwebmanager.solutions.cestyle/page



Is this the right way to work? Or are the main html templates located elsewhere?

johnd



Posts: 36

Posted: 25-03-2010 16:17

That's right but...

your presentation is build up by JSP's and XML descriptor files. You need to package them as a WCB, otherwise your changes will be lost when restarting WebManager!

The WCB in which you are editing files is the Community Edition style WCB

kanduvisla


Posts: 16

Posted: 25-03-2010 16:25

I thought i'dd already changed that footer before! :P

But I still have no success creating a WCB! I installed the JDK 5.0 with Java EE. Is this the correct Java installation?

williamb



Posts: 310

Posted: 25-03-2010 21:19

Hi Kanduvisia,

It might be a good idea to start by reading some of the docs.

A good doc to start, after you have a running Community Edition installation, is the Design API (GXD0051) documentation available at http://connect.gxsoftware.com/Software/Documentation.htm .

This document explains how to create a WCB structure, change the presentation JSP files ('the templates'), and how to deploy this into GX WebManager.

If you change files on the server directly, they will be overwritten after a reboot of the server. You need to deploy them via a WCB.

To set up a (advanced) development environment you can use the 'Quick Start Eclipse (GXD0098)' document. But for just changing some presentations you might also use 'notepad'/'textpad'. The correct java version is also noted in that document.

I've prepared http://connect.gxsoftware.com/confluence/confluence/display/GXDEV/Star... to give you a quick start.

kanduvisla


Posts: 16

Posted: 26-03-2010 09:53

Allright, trying to configure eclipse here.

On page 11 of GXD0098 it states:

In the Window > Preferences > XML > XML Catalog menu, c lick [Add], and c lick the
folder button at the top-rig ht and select FileSystem. Fill in t he following values:
wmedit tags
URI: C:\GX\WebManag er9\webmanag er\webapps\backend\WEB-INF\wm\t ld\wmedit.t ld
Key Type: URI
Key: http://www.gx .nl/tag lib/wmedit
wm tags
URI: C:\GX\WebManag er9\webmanag er\webapps\backend\WEB-INF\wm\t ld\wm.t ld
Key Type: URI
Key: http://www.gx .nl/tag lib/wm
wmfn (function) tags
URI: C:\GX\WebManag er9\webmanag er\webapps\backend\WEB-INF\wm\t ld\ functions.t ld
Key Type: URI
Key: http://www.gx .nl/tag lib/functions


But in my installation of WebManager I dont see a webmanager-folder. I do see webmanager-webapps with in it a webmanager-backend-webapp-folder but there the structure goes totally different.

Is the path in the documentation correct?

williamb



Posts: 310

Posted: 26-03-2010 19:43

Hi Kanduvisia,

That's correct, the GX WebManager Community Edition paths have changed a bit since the documents' last update. Also, some of the eclipse menu's have changed in the latest version of eclipse (3.6).

If you search for wmedit.tld in your installation you'll find the correct path.

The URI etc. did not change, just the path of the .tld file.

williamb



Posts: 310

Posted: 13-01-2011 13:32 Solved

Please note that the eclipse documentation has been updated a while ago.

Please mark this question as solved :).

Back to top

New message: "Edit html templates"
Message:
bold boitalicd underline url quote code smile cool eek grin mad razz sad wink
 
© 2012 GX Software B.V.

Disclaimer

This website (Connect.gxsoftware.com) may discuss or contain opinions, (sample) coding, software or other information that does not include GX official interfaces, instructions or guidelines and therefore is not supported by GX. Changes made based on this information are not supported.  GX will not be held liable for any damages caused by using or misusing the information, software, instructions, code or methods suggested on this website, and anyone using these methods does so at his/her own risk. GX offers no guarantees and assumes no responsibility or liability of any type with respect to the content of this website, including any liability resulting from incompatibility between the content of this website and the materials and services offered by GX. By using this website you will not hold, or seek to hold, GX responsible or liable with respect to the content of this website.