How to make 2nd page inherit home pg's styling?
I have created the home page to my satisfaction and made it index.html. It includes navigation bars but no links as of yet. How do I make the subsequent pages inherit the home page's styling without having to do each page all over again? Thanks.
kahill1919 wrote:
I have created the home page to my satisfaction and made it index.html. It includes navigation bars but no links as of yet. How do I make the subsequent pages inherit the home page's styling without having to do each page all over again? Thanks.
2 options:
1) Save as template>File>Save as template.
This will (assuming you have correctly defined your site folder at the outset) create a page template which you can use to base all your other pages on.
To create a new page after saving your page as a template go>New>Page from Template>Select template from site folder.
You'll probably want to create some 'editable' regions in your template so you can change the text on the new pages made from the template.
The idea of using a template is that when you update the navigation in the main template (given it is in an uneditable region) any page based on the template containing the menu will update as well. Infact the template approach will prove useful for news sections etc which need to be consistant on each page too.
OR
2) You can just duplicate the page, save it with a different name, and work on that. However dont forget that if you do it that way and you have 10 pages and change a link at any stage you'll have to manually change the link on all 10 pages.
Similar Messages
-
How to make first page my home page, not Firefoxe's privacy page
Before version 29 Firefox brought up my home page -- the only one. Now, no matter what I specify to be the home page the Firefox "privacy" page is loaded first with my home page as a secondary (and not shown) page.
Loading the privacy page wastes CPU time and is aggravating. How do I turn off that over-riding, default page?This can be caused by problems with the file(s) that store preferences and possibly other files like the compatibility.ini file.
You may have security software that protects some files against changes.
Delete a possible user.js file and numbered prefs-##.js files and rename (or delete) the prefs.js file to reset all prefs to the default value including prefs set via user.js and prefs that are no longer supported in the current Firefox release.
*http://kb.mozillazine.org/Preferences_not_saved
*http://kb.mozillazine.org/Resetting_preferences
You can use this button to go to the currently used Firefox profile folder:
*Help > Troubleshooting Information > Profile Directory: Show Folder (Linux: Open Directory; Mac: Show in Finder)
*http://kb.mozillazine.org/Profile_folder_-_Firefox -
How to make a page break in numbers
The only way I found to make a new page in Numbers was to make new rows down to where the page would break, but it's only letting me add a few new rows to the new page. I'd like to know how to make a page break without just adding rows.
Hi Yellowbox,
Still I'm not convinced, it gives you indeed some advantages but this page break is a great fault.
All the company is working on Apple, we try even to keep Microsoft away but what when you make a quote of several pages and have to make your lay out at the end, it is a pain in your xxx to make it well.
We cannot make different tables for each page nor I want to make it in Pages with a Numbers table.
Secondly, what do you do when you get a Excell offer that you want to bring to Numbers.
It opens well but again, you need to make all the page lay out afterwards!
Thanks for yoru reply.
It won't change my mind about Apple and Microsoft but for timing earning I won't changes all Excel offers to Numbers anymore. Even if I do not want, it would take me less time to work it out in Excel.
Our own offers will remain in Numbers ...
It is a pity but time is so important nowadays!
Nice week-end. -
How to make turning page with ibooks author?
How to make turning page with ibooks author?
This question has been answered on this thread
https://discussions.apple.com/message/17981772#17981772#17981772
Best regards.
Alex -
how to make a page header
Lynn,
Numbers 3 currently doesn't have page headers.
However, there are some workarounds that can achieve the effect of having headers (though, for footers, you're limited to page number). See this in Print Preview:
You can set up extra Header Rows in your table and have them repeat on each printed page. The Table Name only shows on the first printed page, so you may want to uncheck Table Name before printing:
See this thread for an example of how this workaround worked for one user.
SG -
Hi every body, and thank you for reading my post, here's the question I have
Does anybody know how can I make a page reload???
Thank'sIf you mean how to make the page reload when someone pushes a button or clicks an action component such as a hyperlink, then have that component's action method return null. To create the action method for a component, double click the component in the Visual Designer.
To make the page reload after someone selects from a drop-down or list, or when the user changes the value in an input text field, right-click that component and choose Auto-Submit on Change.
Chris -
When the page will be load how to make the page blank in run time
Dear
when i will run the page the fields shoud come with blank Field.
i want to make it in runtime.
example- i have one page having employees data. but when i will run that page the data will not come only blank fields should come, after thar i will create.duplicate how to make the page blank field in runtime
-
How to make Login Page in ADF?
Hi,
Can anyone suggest me, how to make Login Page in ADF.
I am new on ADF, is any sample code or application is there than it will be helpful for me.
please reply its urgent.
Thanks,
Ramit MathurHI,
Jspx code
<af:panelFormLayout id="pfl1" binding="#{loginBean.mainForm}">
<f:facet name="footer"/>
<af:inputText label="Username" id="it1"
value="#{loginBean.username}"
binding="#{loginBean.usernameId}"
required="true"/>
<af:inputText label="Password" id="it2" secret="true"
value="#{loginBean.password}"
binding="#{loginBean.passwordId}"
required="true"/>
<af:spacer width="1px" height="20px" id="s3"/>
<af:panelGroupLayout id="pgl3">
<af:commandButton text="Submit" id="cb1"
action="#{loginBean.doLogin}"/>
<af:spacer width="85px" height="1px" id="s4"/>
<af:commandButton text="Cancel" id="cb2"
action="#{loginBean.clearFields}"/>
</af:panelGroupLayout>
</af:panelFormLayout>
BackingBean code
public String doLogin() {
String un = _username;
String pw = _password;
// byte[] pw = _password.getBytes();
FacesContext ctx = FacesContext.getCurrentInstance();
System.out.println("ctx" + ctx);
HttpServletRequest request =
(HttpServletRequest)ctx.getExternalContext().getRequest();
CallbackHandler handler = new SimpleCallbackHandler(un, pw);
System.out.println("Handler" + handler);
try {
Subject mySubject = Authentication.login(handler);
System.out.println("mySubject" + mySubject);
ServletAuthentication.runAs(mySubject, request);
ServletAuthentication.generateNewSessionID(request);
String loginUrl =
"/adfAuthentication?success_url=/faces" + ctx.getViewRoot().getViewId();
System.out.println("loginUrl---" + loginUrl);
HttpServletResponse response =
(HttpServletResponse)ctx.getExternalContext().getResponse();
System.out.println("response---" + response);
// loginUrl = "/adfAuthentication?success_url=/faces/WelcomeScreen1.jspx";
sendForward(request, response, loginUrl);
System.out.println("---" + response);
} catch (FailedLoginException fle) {
FacesMessage msg =
new FacesMessage(FacesMessage.SEVERITY_ERROR, "Incorrect Username or Password",
"An incorrect Username or Password" +
" was specified");
ctx.addMessage(null, msg);
} catch (LoginException le) {
reportUnexpectedLoginError("LoginException", le);
return null;
private void sendForward(HttpServletRequest request,
HttpServletResponse response, String forwardUrl) {
FacesContext ctx = FacesContext.getCurrentInstance();
System.out.println("sendForward--ctx--" + ctx);
RequestDispatcher dispatcher =
request.getRequestDispatcher(forwardUrl);
System.out.println("sendForward--dispatcher--" + dispatcher);
try {
dispatcher.forward(request, response);
} catch (ServletException se) {
reportUnexpectedLoginError("ServletException", se);
} catch (IOException ie) {
reportUnexpectedLoginError("IOException", ie);
ctx.responseComplete();
// 12.Implement a reportUnexpectedLoginError() method:
private void reportUnexpectedLoginError(String errType, Exception e) {
FacesMessage msg =
new FacesMessage(FacesMessage.SEVERITY_ERROR, "Unexpected error during login ",
"An incorrect Username or Password" +
" was specified");
FacesContext.getCurrentInstance().addMessage(null, msg);
e.printStackTrace();
} -
How to make the page expired when user click back
how to make the page as expired when i click back button on the browser.
i want a better way.
actually i have a timer.when it reaches 00.00 then the expired page will be called automaticlly using location.href="expired.jsp" then if the user clicks back it should not show the previous page.this concept is applied with paging concept
response.setheader is not working ...
i have redirect when click back using
<body onunload>....i call another page here.
but it is not a good way.
so pls help me to solve this problem
using session or another good wayUse this instead.
Frame.setDefaultCloseOperation(javax.swing.WindowConstants.DO_NOTHING_ON_CLOSE); -
How to make a page that should be inside an iframe load up its parent page?
Hello all
Here's my dilema...
I'm creating a site with page fragments that the user is able to view by having it load into an iframe. So far so good and it's all working perfectly well.
The problem that I envisage is that, even with no-index robot meta tags, Google et al are almost certain to index these page fragments and proffer them in search results.
So, my question to you is two-fold:
1 - how can I make a page fragment load up the parent page should it be selected from a Google search result
and
2 - once the parent page is loaded up, how can I then make it load the selected content page into the iframe so that the user sees what (s)he is expecting to see?
I'm imagining that it will require cookies and scripting, but I'm still at the (very) early stages of learning such stuff, so have no clue whatsoever on how to go about it!
Any bright ideas / tutorials / sites I can nick code from / complete solutions that I don't have to pay for would be much appreciated.
Thanks
PeterAFAIK there's no practical way to do what you require. Sorry. This is one of the many downsides to Framed sites. It also makes bookmarking and printing pages difficult. Not to mention user unfriendly from a web accessibility viewpoint. Re-think your need for Iframes throughout an entire website. The best websites use one complete page for each topic. Index, About Us, Contact Us, etc...
Nancy O.
Alt-Web Design & Publishing
Web | Graphics | Print | Media Specialists
www.alt-web.com/
www.twitter.com/altweb -
How to make a page that should be inside an iframe load up it's parent page?
Hello all
Here's my dilema...
I'm creating a site with page fragments that the user is able to view by having it load into an iframe. So far so good and it's all working perfectly well.
The problem that I envisage is that, even with no-index robot meta tags , Google et al are almost certain to index these pages fragments and proffer them in search results.
So, my question to you is two-fold:
1 - how can I make the page fragments load up the parent page should it be selected from a Google search result
and
2 - once the parent page is loaded up, how can I then make it load the selected content page into the iframe so that the user sees what (s)he is expecting to see?
I'm imagining that it will require cookies and scripting, but I'm still at the (very) early stages of learning such stuff, so have no clue whatsoever on how to go about it!
Any bright ideas/tutorials/sites I can nick code from/complete solutions that I don't have to pay for would be much appreciated.
Thanks
PeterActually, I did carefully choose this forum as being the most appropriate since my question, or rather what I imagine the answer might be, will involve things like scripting and/or cookies.
Would that not make it "dynamic" enough to remain here?
Thanks
Peter -
How to make the Page UP and down work on a table control screen?
Dear all,
Can some one suggest how to make the table control screen work with Page Up and Page down controls.
when I press on Page down it works for the first time and after that i need to select the table to make it work the second time. it there a way I can make the index on the screen stay on the table control at all times.
Regard,
VjTake this code as a referance:
Sample code for vertical scrolling in PAI processing will look like this:
MODULE user_command_XXXX INPUT. (XXXX is screen no.)
CASE ok_code.
WHEN 'P--'.
CLEAR ok_code.
PERFORM paging USING 'P--'.
WHEN 'P-'.
CLEAR ok_code.
PERFORM paging USING 'P-'.
WHEN 'P+'.
CLEAR ok_code.
PERFORM paging USING 'P+'.
WHEN 'P++'.
CLEAR ok_code.
PERFORM paging USING 'P++'.
*& Form PAGING
* Form to do scrolling for screen XXXX
* -->CODE OKCODE value (P--, P-, P+, P++ )
FORM paging USING code.
DATA: i TYPE i,
j TYPE i.
CASE code.
WHEN 'P--'. <table control name>-top_line = 1.
WHEN 'P-'.
<table control name>-top_line =
<table control name>-top_line - line_count.
IF <table control name>-top_line LE 0.
<table control name>-top_line = 1.
ENDIF.
WHEN 'P+'.
i = <table control name>-top_line + line_count.
j = <table control name>-lines - line_count + 1.
IF j LE 0. j = 1. ENDIF.
IF i LE j.
<table control name>-top_line = i.
ELSE.
<table control name>-top_line = j.
ENDIF.
WHEN 'P++'.
<table control name>-top_line =
<table control name>-lines - line_count + 1.
IF <table control name>-top_line LE 0.
<table control name>-top_line = 1.
ENDIF.
ENDCASE.
ENDFORM. " PAGING
Regards,
Ravi -
How to make a page that slides in
Hi,
I am new and i'm trying to add a page that slides in from the
right. I'm gonna be adding this to a dynamic flash template that i
bought. I've managed to make the page slide then stop, as i know
how to make a simple motion tweed. However, how do i make that page
slide in when i click on a link button i will be making? I just
don't know how to make that action happen. Thanks for any repplies
i appreciate it.AFAIK there's no practical way to do what you require. Sorry. This is one of the many downsides to Framed sites. It also makes bookmarking and printing pages difficult. Not to mention user unfriendly from a web accessibility viewpoint. Re-think your need for Iframes throughout an entire website. The best websites use one complete page for each topic. Index, About Us, Contact Us, etc...
Nancy O.
Alt-Web Design & Publishing
Web | Graphics | Print | Media Specialists
www.alt-web.com/
www.twitter.com/altweb -
How to make multi-page PDFs?
A question on this in the Archives did not answer my problem. Until recently, I could easily make multipage PDFs from Pages on my iMac (10.8.4). Now suddenly it only makes a PDF of the first page of multi-page files. Cannot find anyplace to change that back. HOW do I make multi-page PDFs again?
Check this portion of your code.
if(rs.next())
response.sendRedirect("02_dashboard_welcome.jsp");
else
out.println("Wrong username or password");Once the user is authenticated(valid username and password found), he is always redirected to a particular page no matter what kind of user he is. You need to add some if-conditional and redirect him to different pages based on his role.
i have stored their login and password in different tablesI don't understand the need to create different tables for each kind of users. Rather i would do something like this.(Rough Schema)
USER_ROLE(table)
1. USER_ROLE_ID (Eg: 1:salesperson, 2:employees etc)
2. DESC (Eg: salesperson, employees)
USER TABLE
1. USER_ID
2. USER_NAME (Eg: AAA)
3. PASSWORD (Eg: BBB)
4. USER_ROLE_ID<Foreign Key, 1 if user is sales person, 2 if user is an employee etc>
Please note that you will have to create a third table to assign role to an user if an user can have more than
one role ie he can be salesperson and employees at the same time.
Now use USER_ROLE_ID to redirect the user to different pages.
Note: This is just an example(may be a worst one). please design your database and business logic as per your requirements. -
How to Set a page as home page in Oracle portal 10g
Hi,
I have one doubt.
How to set a page (Not Page group) as home page in Oracle portal 10g?
whether it should be a HTML Portlet or some other?
Thanks & Regards
Suthan.SathyaHi,
Welcome to SDN
By defining the Sort Sequence of Navigation Nodes, you can do this, check the links:
http://help.sap.com/saphelp_nw2004s/helpdata/en/92/3e703e632c7937e10000000a114084/frameset.htm
http://help.sap.com/saphelp_nw2004s/helpdata/en/53/89503ede925441e10000000a114084/frameset.htm
If you need more help, just ping back.
Greetings,
Praveen Gudapati
p.s. Points are always welcome for helpful answers
Maybe you are looking for
-
Dunning Print Error: F150_DUNN_01 does not exist
Hi, I have assigned F150_DUNN_01 via FBMP T-code for Dunning texts. While performing the Dunning print I am getting an error "Text object does not exist" or F150_DUNN_01" does not exist. The Event settings via T-code BF31 for event 1720 is "FI_PRINT_
-
Can you have more than one apple id on a computer. We are going away and want to facetime from our macpro to the mac computer at home but both are registered under the same apple ID. What should we do ?
-
In RSA Authentication Manager 7.1, how create multiple security domains
Hi, RSA Authentication Manager 7.1 in configured with LDAP(Sun java system directory server); how create multiple security domains 7.1, is this security domains is releted to LDAP? thanks
-
Hello, Im developing an application in Actionscript3 in Flash for Windows, but recently I try to develop the same code in Flash for Mac and the application don't manage the browser session cookie. Flash have any security restriction in mac??? How Fla
-
Hello, Just like tcode VD51 for Customer - Material Info..do we have a tcode for Vendor - Material Info.. I know we can do that in ME11..Purchase Info record...anything other than these..?? Thanks, Vish