How can I use a template in a site with different tags <; lang >;?
My site contains pages in six different languages. For example, the page in French is
" < html xmlns =" http://www.w3.org/1999/xhtml "XML: lang ="fr"lang ="fr"> ".
My model, however, reads:
< ! DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional / / IN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd" > ""
" < html xmlns =" http://www.w3.org/1999/xhtml ">
ERGO, whenever I update my site because I changed the template, my foreign language pages lose their language statements.
You can't have an editable for this. When I tried, I got error messages.
Anyone know a good work-around?
At this point, I have to manually change these foreign language pages, whenever I do an update of the whole of the site.
Thank you.
I just tested this very quickly, but it seems to work.
Dreamweaver templates allow you to create editable attributes. You can't do it for thetag through the interface of Dreamweaver, but it seems to work without problem if you hand-code in the template.
In the main template, change thetag to look like this:
Just before the closing tag, add this:
Save the model.
All the child pages will be updated automatically for XML: lang = "fr" lang = "fr".
In the pages that use a different language, go to edit > properties of the model and change the value of lang to en, or whatever the language he uses.
Another approach is to keep your pages of language in different folders, and then use search and replace in the entire file to change the values in thetag.
Tags: Dreamweaver
Similar Questions
-
How can I use the templates that I generated in Bridge CS5, Lightroom 4.4?
How can I use the templates that I generated in Bridge CS5, Lightroom 4.4?
It seems that I can not connect the models I use in bridge some time in Lightroom 4.4.
Is it done on purpose?
Thanks in advance
Doppy
Totally different formats and no, you have to start over in LR.
-
How can I use a vector image to stretch with the background in Muse master pages?
How can I use a vector image to stretch with the background in Muse master pages?
-
How can I use my photo albums as screensaver with Apple TV 4th gen
How can I use a photo album that I created as a screensaver on the generation of Apple TV 4 because it is not an option in this sense?
What follows is the Apple TV 4 user guide...
Screensavers
Apple TV displays a screen saver when it remains inactive for a predefined number of minutes.
Air screensaver shows beautiful videos of slow motion of the places of the world, upload to an online server, making the screen saver more engaging and dynamic. For the antenna, you can control how many times Apple TV check and download new videos.
Change the frequency of aerial screensaver download. In settings, go to general > screen saver and select Download New Videos, and then select an option.
Return by using Apple TV. When the screen saver is active, press the contact surface to get to some app have been previously using.
Choose a different screen saver. In settings, go to general > screen saver and select the Type. Then select the screen saver you want to use.
Select the photos to display. Many of the screen saver options display a slide show of photos - it can include photos provided by Apple, or your own collection stored in iCloud. To choose which photos are used, in the settings, go to general > screen saver and select the Type. Then choose one of the types of screensaver-photographers.
If you choose my Photos, the Photos app opens. Follow the instructions to put photos as screensaver.
Set the screensaver time-out. In settings, go to general > screen saver and select the setting starts after, and then specify a number of minutes. This indicates to the Apple TV to start the screen saver automatically if the unit has been idle for the specified time.
Activate the screen saver immediately. Press the Home button to go to the home screen (if it isn't already), and then press the button twice.
-
How can I use a panel of single query with criteria of two view?
Hi all
I have a requirement to allow users to change the "display mode" on a table of tree search results for an advanced search page. What this will do, is change the structure of how the data are arranged. In one case, the picture of the tree is 3 levels deep, otherwise, it's only 2 with different data at the level of the root node.
What I've done so far:
1) I exposed the relationship of data for these two ways to view the data in the data model of the module of the application.
(2) I created a view of criteria in two view objects that are originally relationships, where (for simplicity) I'm comparing only one field.
It is in the object from a point of view:
<ViewCriteria Name="PartsVOCriteria" ViewObjectName="gov.nasa.jpl.ocio.qars.model.views.PartsVO" Conjunction="AND"> <Properties>... </Properties> <ViewCriteriaRow Name="vcrow23" UpperColumns="1"> <ViewCriteriaItem Name="PartDiscrepantItemsWithIRVO" ViewAttribute="PartDiscrepantItemsWithIRVO" Operator="EXISTS" Conjunction="AND" IsNestedCriteria="true" Required="Optional"> <ViewCriteria Name="PartDiscrepantItemsWithIRVONestedCriteria" ViewObjectName="gov.nasa.jpl.ocio.qars.model.views.PartDiscrepantItemsWithIRVO" Conjunction="AND"> <ViewCriteriaRow Name="vcrow26" UpperColumns="1"> <ViewCriteriaItem Name="InspectionRecordNumber" ViewAttribute="InspectionRecordNumber" Operator="=" Conjunction="AND" Value="" Required="Optional"/> </ViewCriteriaRow> </ViewCriteria> </ViewCriteriaItem> </ViewCriteriaRow> </ViewCriteria>
and it is in the other display object:
<ViewCriteria Name="IRSearchCriteria" ViewObjectName="gov.nasa.jpl.ocio.qars.model.views.InspectionRecordVO" Conjunction="AND"> <Properties>... </Properties> <ViewCriteriaRow Name="vcrow7" UpperColumns="1"> <ViewCriteriaItem Name="InspectionRecordNumber" ViewAttribute="InspectionRecordNumber" Operator="=" Conjunction="AND" Required="Optional"/> </ViewCriteriaRow> </ViewCriteria>
(3) I had a query Panel table and automatically generated tree by doing drag control data for ONE of the relationship of view object data that is exposed in the app module. Then, I created a second query Panel table and tree in the same way but using the data control to the other. I am one of the query cache permanently panels and toggling the visibility of the tree based on the user tables selects display mode. Both have separate links and iterators.
It is a part of the definition of the page:
<executables> <variableIterator id="variables"/> <searchRegion Criteria="IRSearchCriteria" Customizer="oracle.jbo.uicli.binding.JUSearchBindingCustomizer" Binds="InspectionRecordVOIterator" id="IRSearchCriteriaQuery"/> <iterator Binds="InspectionRecordVO" RangeSize="25" DataControl="QARS_AppModuleDataControl" id="InspectionRecordVOIterator" ChangeEventPolicy="ppr"/> <iterator Binds="Root.QARS_AppModule.PartsVO1" DataControl="QarsMasterAppModuleDataControl" RangeSize="25" id="PartsVO1Iterator"/> <searchRegion Criteria="PartsVOCriteria" Customizer="oracle.jbo.uicli.binding.JUSearchBindingCustomizer" Binds="PartsVO1Iterator" id="PartsVOCriteriaQuery"/> </executables>
(4) I have created a queryListener custom to delegate the query event.
It's in my jsp to advanced search page:
<af:query id="qryId1" headerText="Search" disclosed="true" value="#{bindings.IRSearchCriteriaQuery.queryDescriptor}" model="#{bindings.IRSearchCriteriaQuery.queryModel}" queryListener="#{pageFlowScope.SearchBean.doSearch}" queryOperationListener="#{bindings.IRSearchCriteriaQuery.processQueryOperation}" resultComponentId="::resId2" maxColumns="1" displayMode="compact" type="stretch"/>
It's in my grain of support:
public void doSearch(QueryEvent queryEvent) { String bindingName = flag ? "#{bindings.IRSearchCriteriaQuery.processQuery}" : "#{bindings.PartsVOCriteriaQuery.processQuery}"; invokeMethodExpression(bindingName, queryEvent); } private void invokeMethodExpression(String expr, QueryEvent queryEvent) { FacesContext fctx = FacesContext.getCurrentInstance(); ELContext elContext = fctx.getELContext(); ExpressionFactory eFactory = fctx.getApplication().getExpressionFactory(); MethodExpression mexpr = eFactory.createMethodExpression(elContext, expr, Object.class, new Class[] { QueryEvent.class }); mexpr.invoke(elContext, new Object[] { queryEvent }); }
When no number inspection (the only field of research so far) is provided in the query Panel, then it behaves properly. Namely, table tree shows all the search results. However, when a record number of inspection is supplied the table from the tree that was created with the query running Board (don't forget there are two query panels, one of them hides) shows a single result (this is correct), while the other table tree (the one with the control panel hidden query that is not used) shows all the results (this is NOT correct).
What I'm trying to accomplish is still doable? If so, what Miss me?
I use JDeveloper 11.1.1.7
Thank you
Bill
I ended up keeping a single query visible panel permanently and the other hidden permanently. When you perform a search using the table that has the hidden query Panel, I have the descriptor of the request for the Panel to request hidden using the descriptor of the request of the Commission in visible motion of the seeds and then delegate the request:
public void doSearch(QueryEvent queryEvent) { String bindingName = null; if(isIrTableRendered()) { bindingName = "#{bindings.IRSearchCriteriaQuery.processQuery}"; } else { seedPartsQueryDescriptor(); bindingName = "#{bindings.PartsVOCriteriaQuery.processQuery}"; queryEvent = new QueryEvent(partsQuery, partsQuery.getValue()); } invokeMethodExpression(bindingName, queryEvent); } private void seedPartsQueryDescriptor() { ConjunctionCriterion criterion = irQuery.getValue().getConjunctionCriterion(); for(Criterion criteria : criterion.getCriterionList()) { AttributeCriterion attributeCriteria = (AttributeCriterion)criteria; List values = attributeCriteria.getValues(); String qualifiedName = attributeCriteria.getAttribute().getName(); int indexOfDot = qualifiedName.lastIndexOf("."); String name = indexOfDot < 0 ? qualifiedName : qualifiedName.substring(indexOfDot + 1); ConjunctionCriterion partsCriterion = partsQuery.getValue().getConjunctionCriterion(); for (Criterion partsCriteria : partsCriterion.getCriterionList()) { AttributeCriterion partsAttributeCriteria = (AttributeCriterion) partsCriteria; String partsQualifiedName = partsAttributeCriteria.getAttribute().getName(); if (partsQualifiedName.endsWith(name)) { partsAttributeCriteria.setOperator(attributeCriteria.getOperator()); List partsValues = partsAttributeCriteria.getValues(); partsValues.clear(); for (int i = 0, count = values.size(); i < count; i++) { partsValues.set(i, values.get(i)); } } } } } private void invokeMethodExpression(String expr, QueryEvent queryEvent) { FacesContext facesContext = FacesContext.getCurrentInstance(); ELContext elContext = facesContext.getELContext(); ExpressionFactory expressionFactory = facesContext.getApplication().getExpressionFactory(); MethodExpression methodExpression = expressionFactory.createMethodExpression(elContext, expr, Object.class, new Class[] { QueryEvent.class }); methodExpression.invoke(elContext, new Object[] { queryEvent }); }
Then when the basis advanced/Panel visible query button, I put the same mode for the control panel hidden query programmatically:
public void handleQueryModeChange(QueryOperationEvent queryOperationEvent) { if(queryOperationEvent.getOperation() == QueryOperationEvent.Operation.MODE_CHANGE) { QueryMode queryMode = (QueryMode) irQuery.getValue().getUIHints().get(QueryDescriptor.UIHINT_MODE); QueryDescriptor queryDescriptor = partsQuery.getValue(); queryDescriptor.changeMode(queryMode); AdfFacesContext.getCurrentInstance().addPartialTarget(partsQuery); } }
-
When I type in a web address it gets filtered by bing and the web site I want is not displayed.
How can we the a web address with it being sorted to be a search engine
Not sure what you mean. If I type in a web address and press 'Go', it takes me straight to this site. The drop-down list that appears is the most popular hits that match what you type.
-
How can I use my iPad as a monitor with my DSLR NIKON camera
I have wa
https://iTunes.Apple.com/us/app/wireless-mobile-utility/id554157010?Mt=8
It's for the iPhone, but it should work.
-
How can I get a list of Web sites with their Firefox passwords information
There used to be a list of websites with their password. I can't find it now. I need information because I forgot some of the passwords that are filled
Hello cellardweller221, you can access this list when you go to firefox > options > Security > passwords saved.
-
Can I use Lightroom CC between two Macs with different versions of the operating system
I have the CC for photographers. I keep my work to Dropbox LR catalog and access them from my MacBook Air laptop or my desktop iMac computer. Currently, two computers are running the same version of Mac OS. I think to upgrade the laptop for the new OS of Sierra, but because the office is older, I thought maybe not upgrade (it is near the minimum end of systems that can run Sierra). Can someone tell me if there is a conflict with the help of the LR catalog between two computers if they are not both running the same version of Mac OS. When the catalog is saved in the operating system that you are starting, it would still be compatible for use on the computer with the previous version of Mac OS? Thank you! Barbara
If the machines use the same version of the software, then the files should be feasible in both machines.
-
How can I use Windows on the Mac desktop?
How can I use Windows on MAC desktop products? OS X El Capitan
You can install it in BootCamp or virtual VMWare, Parallels or VirtualBox machine
-
I have a designed iWeb site I need to update. I know I can't use iWeb so want to design and publish a new Web site. I want to use my current domain name. How can I get rid of the existing site?
So, you want to delete this Web site. That's right?
If so, you can make trought accessing the website 'admin panel' or 'FTP '.An administration panel (or "administration panel") is a site that your host/domain provides to you, where you can change everything you want - even is for 'FTP', 'FTP' is a server where you access your Web site and change what you want, and that includes delete the current Web site.
Questions please ask.
-
How can I use my watch to snap the shutter on my iPhone?
How can I use my watch to snap the shutter on my iPhone?
Click here > https://help.apple.com/watch/
Then click on: Remote Camera on the left.
You'll see instructions.
-
How can I use firefox to open the public sybercafe.
How can I use firefox in open public sybercafe.and what precautions should be taken.
Hi, you can use the Firefox private - browsing Mode navigate the web without saving the information on the sites you visit
The incognito on Firefox for Android
-
How can I use my instore credit for a movie
How can I use my instore credit for a movie
Hello R Larson,
I see that you are wanting to use a store credit for a movie. I'll be happy for you have said in the right direction. First of all, let's see if we can find out if the credit is a credit of iTunes gift card or a credit from the Apple Store. This article will help you determine what may be:
What kind of card do I? -Apple Support
If credit is iTunes, you can just check your balance using the instructions found in the section below and use to either rent or buy a movie to display:
See your credit balance - Apple Support iTunes
If the store is an Apple Store Gift card credit, you would not be able to use iTunes to watch a movie.
I hope this helps. See you soon!
-
How can we use this page Windows Genuine?
How can we use this page once the developers of Firefox has removed the option "Enable Java"?
Now, I downloaded this tool to check if the Windows Genuine or not! But kept getting the error message during the installation of the application.
This is not sound/look like a problem of firefox at all, but could be a problem with the integrity of your windows system (perhaps related to malicious software): http://support.microsoft.com/kb/2617842/en-us
Maybe you are looking for
-
Satellite A40: How to boot from an external USB device?
Dear all, I wonder if it is possible to start A40 - 261 (BIOS v1.50) from the external USB device such as a flash or external HARD disk drive? Thank you in advance, Oleg
-
transfer my license to a new pc (off allowing the old pc)
Hello I have a macbookpro running windows vista SP2 under bootcamp - I just bought a mac pro also and want to run windows on the mac pro than the macbook (removal of the windows partition on my macbook for free space). What is the best way to do this
-
The challenge for Blackberry is just?
We have our application finished and ready to be submitted to the app store for blackberry, and we also want to save it for the challenge. So I asked the record to become a seller and received confirmation but still didn't get no answer after 13 days
-
Hi all I have a VBA program that worked like a charm on Win XP. I just installed on my Windows 7 computer. It installed fine but when I try to run it, it fails on the line where it tries to load an XML file with the following error: Runtime error '-2
-
Pixi used to sync contacts or calendar with Exchange
I have a pixi and configure Exchange synchronization. Email is works very well, but no contact or synchronization of calendar occurs. I tried to delete the account and add in contacts, it did not work. Tried the same thing using the calendar acco