en:user_advanced:greenbug
no way to compare when less than two revisions
Differences
This shows you the differences between two versions of the page.
— | en:user_advanced:greenbug [2023/03/13 01:46] (current) – created - external edit 127.0.0.1 | ||
---|---|---|---|
Line 1: | Line 1: | ||
+ | |||
+ | |||
+ | |||
+ | ======Greenbug====== | ||
+ | |||
+ | Greenbug is an online XSL template editor for Greenstone3. Named Greenbug as it is a bit like Firebug, but for Greenstone, not Firefox. | ||
+ | |||
+ | To use Greenbug you must have DebugService in the list of services in your siteConfig.xml file. This service handles the saving and retrieving of the XSL templates, and is included by default. | ||
+ | |||
+ | In the web interface you will need to log in. as an administrator. Click the '' | ||
+ | * Note: for 3.06, you need to be in the '' | ||
+ | |||
+ | Once this is done you can go to the page you want to debug and click the green bug icon that shows up at the bottom left. (This will add " | ||
+ | |||
+ | ===== Using Greenbug===== | ||
+ | |||
+ | To view or modify a template for an element in the page, click '' | ||
+ | |||
+ | The editor will open up with a visual representation of the template. You can work with the visual editor or click '' | ||
+ | |||
+ | Modify the template, then click '' | ||
+ | |||
+ | === XML Editor === | ||
+ | In the XML editor, you get the raw XML of the applicable template. Modify the template as you would normally, and save. Note that you will not be able to save invalid XML. Once you have entered valid XML (e.g. closed off all your tags properly, etc), then you will see '' | ||
+ | |||
+ | Undo will undo character by character the typing you have just entered. To undo a saved change, undo the changes to the template and click '' | ||
+ | |||
+ | === Visual Editor === | ||
+ | |||
+ | The visual editor looks a bit more complicated, | ||
+ | |||
+ | Select the element you want and drag it onto the template. You can move it around until it goes into the place you want, then let it go. You can put it beside an existing element, or inside one. | ||
+ | |||
+ | Clicking on an element in the template will show you, to the right hand side, the element name and a list of its attributes. You can add a new attribute to the element by selecting the attribute name from the drop down list, and clicking '' | ||
+ | |||
+ | Plain text and new elements can be added using the '' | ||
+ | |||
+ | Don't forget to '' | ||
+ | |||
+ | |||
+ | |||
+ | |||
+ | |||
en/user_advanced/greenbug.txt · Last modified: 2023/03/13 01:46 by 127.0.0.1