Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add Another Tab to the Geoportal Interface (Problem) #306

Open
rizkitampan opened this issue Jul 19, 2018 · 2 comments
Open

Add Another Tab to the Geoportal Interface (Problem) #306

rizkitampan opened this issue Jul 19, 2018 · 2 comments

Comments

@rizkitampan
Copy link

i dont know what my mistakes, i am adding add tab in navigation menu, but when i click the link, it didnt go nowhere, here is my code :

quicklink.jsp
<% // quicklink.jsp - Link pages (tiles definition) %>
<%@taglib uri="http://struts.apache.org/tags-tiles" prefix="tiles" %>
<%@taglib uri="http://www.esri.com/tags-gpt" prefix="gpt" %>
<% // initialize the page %>
<gpt:page id="catalog.quicklink"/>
<tiles:insert definition=".gptLayout" flush="false" >
<tiles:put name="body" value="/catalog/quicklink/quicklinkBody.jsp"/>
</tiles:insert>

quicklinkBody.jsp
<% // quicklinkBody.jsp - Links page (JSF body) %>

<iframe id="quicklinkHome" src="http://www.esri.com" style="overflow-y:auto;overflow-x:hidden" width="100%" frameborder="0" marginheight="0" marginwidth="0" height="100%" > </iframe> <script type="text/javascript"> function resizeIframe() { var height = document.documentElement.clientHeight; height += document.getElementById('quicklinkHome').offsetTop; height -= 20; /* whatever you set your body bottom margin/padding to be */ document.getElementById('quicklinkHome').style.height = height +"px";}; document.getElementById('quicklinkHome').onload = resizeIframe; window.onresize = resizeIframe; </script>

primaryNavigation.jsp
<h:commandLink
id="quicklinkHome"
action="catalog.quicklink"
value="#{gptMsg['catalog.quicklink.home.menuCaption']}"
styleClass="#{PageContext.tabStyleMap['catalog.quicklink']}"/>

gpt-faces-config.xml

catalog.quicklink /catalog/quicklink/quicklink.jsp

gpt.properties

quicklink page

catalog.quicklink.home.menuCaption = Links
catalog.quicklink.home.caption = Welcome to the Link Page

is any problem with my code?, can somebody tell me?

@rafteryd
Copy link

Did you get this fixed? I'm having the same issue.

@rizkitampan
Copy link
Author

not yet

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants