Trouble using cfincludes with multi-folder structure
We are rebuilding our site using <cfinclude> to pull in
standard headers and footers for each page. The headers and footers
each have many links in them. How can we deal with the fact that
the pages calling the cfincludes are not all at the same level in
the folder structure? How can we create one include file for the
header and one include file for the footer that can each be used
throughout the site regardless of the level in which the calling
page is located? Thank you.
Cheers!
James
How can we create one include file for the header and one
include file for the footer that can each be used throughout the
site regardless of the level in which the calling page is
located?
Create the one header.cfm and the one footer.cfm. Include
them in Application.cfm/OnRequestEnd.cfm or in Application.cfc.
Similar Messages
-
Building a war file with a folder structure
How do a build a war file with a folder structure? I have code that creates JarEntrys and writes jar files and resource files etc. to the war. When I look at the war that gets created using winzip the path names for all the entries are correct and everything appears correct. When I try to deploy this to Tomcat nothing deploys. It appears my war is in a folder structure. How can a build this folder structure in the war? When I look at a good war using BeyondCompare I see folders and files in the folders just like I would see looking at a directory on my system. When I use BeyondCompare to view one of my "bad" war files that I have created everything is in the root. There are no folders and no folder structure. I am using the java.util.jar API to create the war but I don't see any methods or any API that will let me build up any sort of folder structure. It seems like I am missing something basic here.
command is same for creating jar/war/ear.
u simply need to execute jar /? for detail. -
How to develop repository manager with initial folder structure
Hi 2 all!
I wonder if it is possible to create new repository programmatically with defined folder structure. I'm interested in solutions when repository manager is works with db or file system. Can you provide any example or tell me where can I define my structure?
thnxHi Nata!
Basicly this task consists of two steps:
1. Deploy a new configuration object for the repository manager
2. Create the intial folder structure
Step one is simple. Here is the configuration object of the repository manager for /documents. It's been exported from the KM configuration by using the standard export mechanisms. This can be included into a portal application project in Netweaver Studio.
documents.co.xml
<?xml version="1.0" encoding="UTF-8" ?>
<!-- file generated by configuration framework Jun 27, 2008 9:16:36 AM -->
<Configurable configclass="CmRepositoryManager" owner="km.appl.rep.mgr.prjconfig">
<property name="ro-expiry-time" value="0"></property>
<property name="fsconttrack" value="true"></property>
<property name="poolid" value="dbcon_wcmdb_cm"></property>
<property name="securitymgr.aclcacheid" value="ca_rsrc_acl"></property>
<property name="localroot"></property>
<property name="serverfarm" value="false"></property>
<property name="propertysearchmgr.class" value="com.sapportals.wcm.repository.manager.cm.CmPropertySearchManager"></property>
<property name="keepVersionHistory" value="false"></property>
<property name="securitymgr.aclcfg" value="acl_jdbc_rep"></property>
<property name="versioning.localroot"></property>
<property name="persistence.mode" value="db"></property>
<property name="hidden" value="false"></property>
<property name="fsnosync" value="false"></property>
<property name="cacheid.versionhistory"></property>
<property name="prefix" value="/documents"></property>
<property name="fsContentCacheMaxEntries" value="-1"></property>
<property name="fsContentCache"></property>
<property name="name" value="documents"></property>
<property name="cacheid.content"></property>
<property name="compressLimit" value="-1"></property>
<property name="cacheid.foldercontent"></property>
<property name="cacheid.properties"></property>
<property name="active" value="true"></property>
<property name="cacheid.rid"></property>
<property name="ignorerootdisplayname" value="false"></property>
<property name="class" value="com.sapportals.wcm.repository.manager.cm.CmRepositoryManager"></property>
<property name="cclist"></property>
<property name="intLinksDefaultDynamic" value="true"></property>
<property name="contentmgr.class" value="com.sapportals.wcm.repository.manager.cm.CmNamespaceAndContentManager"></property>
<property name="cacheid.documents"></property>
<property name="versioningmgr.class" value="com.sapportals.wcm.repository.manager.cm.CmVersioningManager"></property>
<property name="securitymgr.w2kcfg.systemid"></property>
<property name="lockmgr.class" value="com.sapportals.wcm.repository.manager.cm.CmLockManager"></property>
<property name="cacheid.locks"></property>
<property name="securitymgr.class"></property>
<property name="persistence.db.instance-id" value="documents"></property>
<property name="cacheid" value="ca_cm"></property>
<property name="namespacemgr.class" value="com.sapportals.wcm.repository.manager.cm.CmNamespaceAndContentManager"></property>
<property name="autoversioning" value="false"></property>
<property name="description"></property>
<property name="securitymgr.ref" value="AclSecurityManager"></property>
<property name="fsContentCacheLimit" value="100"></property>
<property name="propertymgr.class" value="com.sapportals.wcm.repository.manager.cm.CmPropertyManager"></property>
<property name="services" value="accessstatistic, com.dkv.DKVApprovalAndTranslation, com.dkv.jobtool.repository.JobToolCreationService, comment, discussion, feedback, layout, personalnote, properties, rating, statemngt, subscription, svc_acl, tbp"></property>
<property name="sendevents" value="true"></property>
</Configurable>
This is a DB repository. The config object for a filesystem repository might differ.
Step 2, the creation of the initial file structure may be done with in two different ways:
a) Include a Repository Service with your repository, which creates the folder structure on the first access of your repository.
b) Include a Portal app which has to be called once to create the folder structure.
For more info about using the API to create km folders take at look at this:
https://www.sdn.sap.com/irj/sdn/thread?threadID=933638&messageID=5663711#5663711
Cheers,
Jürgen -
McAfee SiteAdvisor is no longer working with my Safari 8.0. I never had trouble using it with Safari before this latest version. Has anyone else had this problem? I contacted McAfee support and they said nobody else is reporting this issue.
Wow, life is certainly tough for you.
S***t happens. That's why there's a warranty. -
Hi. I am having trouble with the folder structure.
I import my pictures like probably most Lightroom users.
They go to:
Pictures / (Year) / (Subfolder name crated checking "Into Subfolder" during import)
Recently, after upgrading to Yosemite, when I import to this structure, Lightroom creates a folder visually outside it. Above, the "01_Sao_Paulo" folder should appear inside 2015 while "12_Atacama" and "12_Hasselblad" under 2014. The right folders were actually created when I check them in Finder.
And when I try to move the folders under the right folder structure, Lightroom recognizes that the folder already exists.
My question two questions are:
1. How do I make the folders appear correctly under the right folder structure?
2. How do I make Lightroom stop creating the folders outside the structure on my next imports?
Thanks for any help.Back up your iPhoto library, Depress and hold the option (alt) and command keys and launch iPhoto - rebuild your iPhoto library database
LN -
Use Applescript to create folder structure from Numbers document
Hello All,
I know this is possible and I am feeling close - I just couldn't find a post that addressed the issue I am having exactly. Essentially I have a client list with 211 business names in it. I am trying to create a script that will scan the first column of my Numbers document and create a folder structure from that list. I found a post on another website that gave me a rough template and this is where I am at:
set destinationFolder to "MacHD:/Users//Documents/Work/Customers/:to:folder:"
tell application "Numbers.app"
set theCells to value of range "A1:A211" of active sheet
end tell
repeat with oneCell in theCells
tell application "Finder" to make new folder at folder destinationFolder with properties {name:item 1 of oneCell}
end repeat
When I run this I get "Expected end of line but found class name." and in the result window it display "
error "Can’t get value of range." number -1728 from «class NMCv» of «class NmCR»"
I am completely new to this and don't really know how to debug. Any help would be appreciated! Thank you so much!
AdamHere is an enhanced version which no longer use a loop to extract the selected values.
--{code}
set destinationFolder to "MacHD:/Users//Documents/Work/Customers/:to:folder:"
tell application "Numbers.app"
set theCells to value of range "A1:A211" of active sheet
end tell
repeat with oneCell in theCells
tell application "Finder" to make new folder at folder destinationFolder with properties {name:item 1 of oneCell}
end repeat
set destinationFolder to "" & (path to desktop) & " dossier"
Select the range of source cells then run the script *)
Grab parameters describing the selected cells *)
set {dName, sName, tName, rowNum1, colNum1, rowNum2, colNum2} to my get_SelParams()
tell application "Numbers" to tell document dName to tell sheet sName to tell table tName
Extract the names from the selected cells *)
tell column colNum1
set theNames to value of cells rowNum1 thru rowNum2
end tell -- column
end tell -- Numbers
I always do my best to use System Events which is faster than the Finder *)
tell application "System Events"
repeat with aName in theNames
try
make new folder at end of folder destinationFolder with properties {name:aName as text}
end try
end repeat
end tell
--=====
set { dName, sName, tName, rowNum1, colNum1, rowNum2, colNum2} to my get_SelParams()
tell application "Numbers" to tell document dName to tell sheet sName to tell table tName
on get_SelParams()
local d_Name, s_Name, t_Name, row_Num1, col_Num1, row_Num2, col_Num2
tell application "Numbers" to tell document 1
set d_Name to its name
set s_Name to ""
repeat with i from 1 to the count of sheets
tell sheet i to set maybe to the count of (tables whose selection range is not missing value)
if maybe is not 0 then
set s_Name to name of sheet i
exit repeat
end if -- maybe is not 0
end repeat
if s_Name is "" then
if my parleAnglais() then
error "No sheet has a selected table embedding at least one selected cell !"
else
error "Aucune feuille ne contient une table ayant au moins une cellule sélectionnée !"
end if
end if
tell sheet s_Name to tell (first table where selection range is not missing value)
tell selection range
set {top_left, bottom_right} to {name of first cell, name of last cell}
end tell
set t_Name to its name
tell cell top_left to set {row_Num1, col_Num1} to {address of its row, address of its column}
if top_left is bottom_right then
set {row_Num2, col_Num2} to {row_Num1, col_Num1}
else
tell cell bottom_right to set {row_Num2, col_Num2} to {address of its row, address of its column}
end if
end tell -- sheet…
return {d_Name, s_Name, t_Name, row_Num1, col_Num1, row_Num2, col_Num2}
end tell -- Numbers
end get_SelParams
--=====
on parle_anglais()
return (do shell script "defaults read 'Apple Global Domain' AppleLocale") does not start with "fr_"
end parle_anglais
--=====
--{code}
Here is an alternate version of the piece of code extracting the values :
--{code}
Grab parameters describing the selected cells *)
set {dName, sName, tName, rowNum1, colNum1, rowNum2, colNum2} to my get_SelParams()
tell application "Numbers" to tell document dName to tell sheet sName to tell table tName
Extract the names from the selected cells *)
set cell1 to name of cell rowNum1 of column colNum1
set cell2 to name of cell rowNum2 of column colNum1
set theNames to value of cells of range (cell1 & ":" & cell2)
end tell -- Numbers
--{code}
Yvan KOENIG (VALLAURIS, France) mercredi 25 janvier 2012
iMac 21”5, i7, 2.8 GHz, 12 Gbytes, 1 Tbytes, mac OS X 10.6.8 and 10.7.2
My Box account is : http://www.box.com/s/00qnssoyeq2xvc22ra4k -
Hello
I am having trouble using Microsoft Outlook 2010. When starting Microsoft Outlook displays the error message Mobileme has stopped working. Can anybody help.
ThanksWell yes, of course you are having trouble using MobileMe because MobileMe no longer exists and has not existed for the last 2 years at least.
MobileMe has been replaced by iCloud, so you will never be able to use MobileMe because it does not exist.
Also, I would suggest that you look more closely before you post, because you have posted this in an iPhone forum and this question has nothing to do with iPhones. You would get more help if you posted in the correct forum. -
ADF11g - integration with OIM -folder structure for OIM configuration files
Hi All,
I'm trying to make call to a remote OIM using OIM API, from my ADF backing bean onclick of a button
on the JSPX page.
I'm able to compile the page, but the issues I'm facing is that I'm not able to read the configuration details
specified for OIM connectivity from the OIM configuration files (authwl.conf, xl.policy, xlconfig.xml).
So do any one know what is going to be the folder structure for these config files (OIM), when we are integrating to
this API from ADF backing bean.
Thanks All .
Thanks & Regards,
Dharmathej MHi Daniel, thanks for the response but i readed that doc before asking here and that's one of the reasons of my question.
On the first line of the doc it says *"This appendix includes instructions that describe how to configure WebSphere so that Oracle Identity Manager (OIM) and Oracle Identity Analytics (OIA) can be installed on separate servers."*
It assumes both products are on different servers and also the creation of an new profile and node for oia.
WAS_NDS_HOME/AppServer/bin/manageprofiles.sh -create*
-templatePath WAS_NDS_HOME/AppServer/profileTemplates/managed*
-profileName oia-managed01 -profilePath WAS_NDS_HOME/profiles/oia-managed01*
-nodeName oia-managed01-node01 -hostname hostname*
Integrate the OIA node to the OIM Cell by typing the following command on the OIA Machine:*
cd OIM_HOME/xellerate/setup; ./xlAddNode.sh oia-managed01 oia-managed01-node01 192.168.21.9 8883 xelsysadm password1*
Our intention is to use same machines, servers,... oim is using so we don't need to use extra machines or create extra websphere objects.
Any tips on that?
Regards. -
Use dtd with multi queries in Reports9i
Hi,
How can i create a dtd file and an xml file for reports with multi queries i.e. join or seperate queries?
thnxhello,
not sure what you are asking for. do you want to know how to create such a file WITH or FOR reports ?
the XML PDS can only consume rowset-row style XML data, so if you want to join XML data you will need multiple XML files or one file with associated XSLT to split it up at runtime and feed into different data sources.
to generate XML, just use desformat=XML. we do not provide DTD generation though.
thanks,
ph. -
Using Lightroom with existing folder hierarchy?
Hello,
What would the recommended work-flow be for using a Lightroom with an existing folder hierarchy? (mix of raw and Jpeg)
Other imaging programs rely on the directory structure, and it is occasionally reorganized.
Basically, in Lightroom I'd like to be able to navigate to the images i want via the directory tree, or a via custom lightroom "collection / group" for specific events, etc.
Thanks for any idea,
DavidIf files are added or moved into the folder tree, you have to tell Lightroom to look again for new files for each folder. Lightroom currently has only one "watched" folder.
It is not a file browser for files that are not in its catalog.
If you want to use it as a catalog, then you may not want files to appear in there without your knowledge or action on your part, which may be why Lightroom doesn't currently include more "watched" folders. When you do ask it to check for new files, the first thing it shows you is that import so you can deal with those new files without being confused by the rest of the files in that folder.
Reading your initial post, you said you want to "navigate" the images and mention collections. I suggest you spend some time thinking about how you are going to tag your images in Lightroom. Lightroom can be very helpful for cataloging your images because there are many metadata fields you can use to help you find images later.
You mentioned events. I want to be able to find trips we take not only by the directory I put them in but also from metadata. One reason I moved from Elements is they didn't have any way but collections to use for this. I didn't care for collections to be used this way for several reasons, one of which is "collections" are entirely in the program, whereas metadata can be permanently saved for use outside of the current program you are using.
I selected the IPTC "Job Identifier" field to identify groups of photos I may want to find together such as trips, workshops, events. I generally fill out caption, keywords, and the various location fields. I created my own metadata preset to make it easy to fill out the fields I generally use. -
Using wlappc with split directory structure
I am trying to generate an EAR file of my application using wlappc in WLS8.1sp3.
I am using the split directory structure, I have a src directory containing my
source and xml descriptors, and a output directory containing the compiled classes.
I am using the split structure to deploy to the app server in development, that
is working fine. I use wlcompile to compile the code, that works ok too.
I assume that the purpose of wlappc would be to take a split directory structure
and create an EAR file from it, but there is only one source directory that you
can pass to the ant task. If I pass the src directory, it complains that it cannot
find the classes. If I use the output directory, it complains that it cannot
find the META-INF directory.
Am I missing a step? Do I have to use wlpackage to put everything in one directory,
then wlappc? Do I have to copy the class files or xml files manually first?Jason Kriese wrote:
I am trying to generate an EAR file of my application using wlappc in WLS8.1sp3.
I am using the split directory structure, I have a src directory containing my
source and xml descriptors, and a output directory containing the compiled classes.
I am using the split structure to deploy to the app server in development, that
is working fine. I use wlcompile to compile the code, that works ok too.Great.
>
I assume that the purpose of wlappc would be to take a split directory structure
and create an EAR file from it, No, wlappc does J2EE code-generation and validation. For instance, it
will do hundreds of checks against your EJBs to make sure they comply
with the spec. It will compile your JSP files into servlets etc. You
just need to pass wlappc the output directory. It will automatically
find the src directory.
When you're ready to deploy to a production or staging server, you can
use wlpackage to put everything into one directory or an archived EAR file.
-- Rob
but there is only one source directory that you
can pass to the ant task. If I pass the src directory, it complains that it cannot
find the classes. If I use the output directory, it complains that it cannot
find the META-INF directory.
Am I missing a step? Do I have to use wlpackage to put everything in one directory,
then wlappc? Do I have to copy the class files or xml files manually first? -
Error while uploading Bank Statement using FF_5 with Multi Cash Option
Hi
I am trying to upload the Bank Statement in FF_5 screen with Multicash (MC) option and am facing the information message that Account XXXX YYYY EUR : Statement 201100059 is not in the bank data storage. This is for the Germany Country Company Codes.
Here XXXX is the Bank Key and YYYY is the Bank Account Number defined in the House Bank configuration (FI12) for our Company Code ABC in Germany. However, when I double click the information, I get the following error message :
No EUR House Bank Account AAAA / BBBB exists (message can be customised). But the AAAA is the House Bank and BBBB is the Bank Account Number in our other Germany Company Code XYZ.
This has become a go-live stopper scheduled in the next two days. Can someone guide me and help me in overcoming this problem.
Also, let me know in case it has anything to do with the Define Search String for Electronic Bank Statement ? If so, please help me in configuring the same.
Thanks a lot for the prompt support.
Regards
GeminiNo, the issue is not search string related. Search strings are only related to transactions and not run until the transactions are processed. The program has to validate the bank accounts before it can process any transactions. Based on the error messages, the program isn't able to validate the bank accounts.
What is the message number? Are you saying that the short text is referencing one bank account and the long text references a different bank account? Does either account ID in FI12 have the alternate account field filled in? If the alternate account field is filled, FF_5 will use that instead of the account number in determining the house bank/acct ID.
Regards,
Shannon -
I have problem using ObjectOutputStream with Multi-Thread
I am writing a network rpg game for the project.
Because it is a network game, so i use thread to support multi-user.
When i using the string to store the command, and send to the server,
it still can work. You can downlod at http://ivebug.tripod.com/new-string.zip
(You cannot click the link, you must use [save target as] to save the file)
1. First compile the files then "java ChatServer",
2. Then you can execute "java ChatClient".
3. Input the name for username in the textfield and then press 'login button'.
4. A small square appear in the up-left corner.
5. Then you can click in the black panel to move the square.
6. If you want more than one square can be move, go step 2 to step 5 again.
It seems everthing is work, but i want more extention for future.
So i change to use object to encapsulate the command.
However, it can't work. It stops working after create the socket and
it can can't run to the line to create an ObjectInputStream and ObjectOutputStream. I don't know why. Who can tell me.
The program using object at http://ivebug.tripod.com/new-object.zip
(You cannot click the link, you must use [save target as] to save the file)Thank you for solve my problem.
Now, i can send the object though the socket, however new problem occurs.
The problem is that after i sent the 'login' object to server,
the client lost the connection.
The program has lost connection problem : http://ivebug.tripod.com/new-lost.zip -
Hi ,
I am using Cisco D9854 Receivers with Multiswitch that is connected to 3 satellites .
How to configure the Receiver to use a specific satellite ?Someone correct me if I'm wrong... (I'm sure they will!)... but I don't believe the iMac can display a video signal input from another source (pc). It certainly can output to a second monitor, but that won't solve the space problem posed by two monitors on your desktop.
TiBook G4 1G, PMac G4 dual 1G, MacPlus Mac OS X (10.4.4) -
hi,
i've got a problem since i use my new notebook (windows 8.1, 64 bit) for ftp sessions. i am not able to edit, up- or download files with umlauts (e.g. "ü, "ä") in file name. i tried 3 ftp-clients (winscp, filezilla, fireftp). in each of them
i checked the option to use the encoding utf8, but it doesn't work. i also tried everything after changing the ftp mode from passive into active in internet explorer. same result. maybe it's important to say, that i firestly made an update from windows 8 to
8.1 before i used the notebook. does anyone have a solution?It seems that this is designed by default.
The Windows built-in FTP service doesn't support utf8.
Maybe you are looking for
-
Some fields missing from the Information interface
On iTunes 12 I can't find the "Description" field that was in the Video page. The field still shows in the list of songs, but it doesn't appear on the new "Information" interface. And I don't think this is the only field missing compared to the previ
-
Is 13-inch MacBook Pro with Retina display configurable to 16GB?
I wanna put in mine, but in Apple KB does not inform (http://support.apple.com/kb/SP668).
-
How do PS CS3 Noise Reduction Filters compare with dedicated third-party plug-ins?
Am I missing something by not installing a dedicated Noise Reduction application into my PS CS3? Can Neat Image, Noise Ninja, Noiseware Pro, etc. do something that the PS CS3 Noise Filters can't do? Do these third-party aplications do it better? Sinc
-
Will an iPod Touch work with the iPod Hi Fi???
Hi I want to upgrade my iPod Classic to an iPod Touch and was wondering if the Touch will work okay with the Hi Fi??? Thanks.
-
Bonjour, mon mac book pro est plus lent depuis la nouvelle mise à jour Mavrick
Bonjour, Mon mac book pro est plus lent depuis la nouvelle mis àa jour Mavericks... et vous ??