Developers Sample, Content | Layout bar
Ok, this is a weird question, but here goes. Looking over the template files for the content | Layout link bar, I can't find for the life of me what file actually calls it! I use JSPTabContainer & JSPEditContainer, and have found a few references to it in the files themselves, but never have been able to find the file that actually controls it's content (I want to adjust the code myself).
Thanks
[417 byte] By [
jbjonesjr] at [2007-11-26 7:58:31]

# 1
The "Content" and "Layout" links are part of the edit functionality of the JSPTableContainer. These links allow the user to add/remove portlets and arrange the portlets on the desktop.
The Content | Layout links are generated in default/JSPTableContainerProvider/table.jsp (approx. line 104)
One of these pages will be used to generate the layout edit page, depending on the current layout that has been selected:
layout1.jsp (thin-thick)
layout2.jsp (thick-thin)
layout3.jsp (thin-thick-thin)
- Jim
# 2
Eureka, that's it! Next question. What file calls this code? You were 100% correct, that is the file I want, but I am also curious as to moving it from the top of the developers sample to the bottom, so I need to find out what "higer-level" file is including it.
Somewhat related question: Is there any documentation on how the "templating" system works? Looking over the portal documentation really has given me much help. I figured out the theme sysetm by just pouring over the files, but there are just too many folder and files to understand the "desktop" scheme and how the different portions are organized (Perhaps even documentation on creating a desktop from scratch. Currently, as you can probably guess, I am starting with the developer sample desktop and modifying it piece by piece until I get what I need). Any other docs out there that might be of some assistance?
# 3
I understand that you simply want to move the Content/Layout links to the bottom of the page? Edit table.jsp and move the block of code (line 66-145) to a new position in the HTML (at or about line 206).
The DeveloperSample in Portal 7 is the same as the one that was deployed in Portal 6. You can use the documentation there:
http://docs.sun.com/app/docs/doc/819-4156