Template talk:Make a portal/Tab2

BASEPAGENAME Problems
I am trying to create a new portal, that has its own infrastructure, and I am using the Tabbed portal template to do it. Everything works well in the first page, but when I try to tab in a sub-page it drops me back to the second page of the original Portal when I click on the second tab. This essentially would act to limit the Tabbed portal template to only one level of portal

I have traced the problem back to the BASEPAGENAME constant which is set for the Base page the actual first page of the portal. Not the base page of the original tab.

I am a relative newbie at Wiki programming but have extensive experience programming in other languages. The problem seems to be with BASEPAGENAME, what I need to do is to override, or redefine it for the particular page I am working in.

Is there a way to locally change BASEPAGENAME or should I do a subst: and reprogram the tab and tabbed portal? I thought this discussion should be associated with the tab, in case other people try to use the template and are not as sophisticated as I am.