-
I find I nearly always want to edit the source on a XPage; while a good effort the design tab has yet to be useful for little more than dragging in controls and checking “all properties” to see what to type in the source tab.- So I’d like to be able to have a XPage open in the source tab by default. If I decide I need to see the design tab or properties I can click on that, instead of always having to click on source every single Xpage or Custom Control that I load.
-
I would look myself, but I have never, ever once seen any (ungreyed) menu option to allows me to get to editor properties. I always have to search help and find a link that will let me open it, but I’m using a new client install today and it has to index the help file before it’ll let me find that link.
-
Thanks for your time…
Subject: re: getting to preferences… File - Preferences should be available pretty much all the time
…though as Maureen has pointed out we don’t have a preference for launching into the Source tab by default. We’ll consider the suggestion, thanks.
Subject: Similar here, plus…
yep, I see myself working in source mode more and more. One other reason for example is that in source mode it often is much easier to define an exact place where I want to insert a new control. Which often is quite a nuisance using the standard editor.
Having said that, what I’d love to have is the ability to drop new controls directly into the source editor, right at the current cursor position. Why? Simple example:
say I create a new layout, starting with a set of of cascaded panels like in
<xp:panel id=“outer”>
<xp:panel id="inner1">
</xp:panel>
</xp:panel>
Next I want to place some other control right behind the first inner panel, but inside the outer panel as well. Trying this using the editor is driving you nuts because both panels’ borders are overlaying each other. Being able to drop the new control right into the source editor would be a great help!
My current workaround is to enter a pair of brackets in the source editor then switch back to standard editor, place the cursor between the brackets, drop in the new control, and finally remove the brackets…
Subject: What I do is drop the control at the end…
- Then I click on Source View to copy and paste it where I wanted it to begin with. As I learn more about the controls I want to use I don’t even go that far. Once one knows what to do it’s significantly faster to simply type them in; a drag and drop is a “bare” control that’s easy to enter manually, and the editor is pretty good about autocompletion at the current tag level so closing a control is near trivial.- I generally find it’s more efficient to type twenty characters than take my hand off the keyboard, move the mouse, click it, drag it back, and put my hand back on the keyboard.
Subject: Delete this … network glitch made me double-post
Subject: All Properties works in the Source tab.
FYI, the Properties view and All Properties tabs work in the Source tab,
so you don’t need to switch to the Design tab for that.
For example, move the cursor onto the xp:button tag to get the properties for that button.
Then you can use the All Properties in-line editors to enter or compute a value.
They are useful to generate a CDATA section and this.something tags, instead of typing them in:
<xp:button value="Save" id="button1">
<xp:this.rendered><![CDATA[#{javascript:
// compute here
}]]></xp:this.rendered>
Subject: So it does. Sweet. Thanks!!!
Subject: Drag/drop into Source pane – you’re in good company
We’ve had that suggestion from several people. It’s on the list for consideration. Thanks!
Subject: interesting suggestion
we could add a preference to keep the source page on top when opening. This may not make 8.5.1, but we’ll discuss it!
There has been a substantial improvement in the first index time of help since 8.5.0, so you should see it index in 10 minutes or less.
Subject: By “on top” I presume that’s the tab order?
- I tend to cringe when I hear about things always on top. Help does that, which means it covers the very thing I’m trying to get help for if I undock it. But docked it’s so incredibly narrow that it is, shall we way, less desirable to read. So I tend to avoid help. (grin)- Thanks!!