Paths in templates
hi,
read some threads about it, but still cannot find out. it's a
simple piece of code where is a path to a specific folder which DW
doesn't treat as a link/path and that's why pages on different
level than a tempalate doesn't works. here is the line of code
which makes problem:
Const ImagesRoot = "../splosno/foto/najprodajalec/random"
now what exactly i need to do that pages relative to the
template file will works?
thanx!
bostjan
Show us a page where this process is failing, please.
Murray --- ICQ 71997575
Adobe Community Expert
(If you *MUST* email me, don't LAUGH when you do so!)
==================
http://www.dreamweavermx-templates.com
- Template Triage!
http://www.projectseven.com/go
- DW FAQs, Tutorials & Resources
http://www.dwfaq.com - DW FAQs,
Tutorials & Resources
http://www.macromedia.com/support/search/
- Macromedia (MM) Technotes
==================
"bossti" <[email protected]> wrote in
message
news:[email protected]...
> what i would like to do is random image from all
subfolder on all the
> pages
> (1000+). most pages are based on a template file.
> structure of directories where are images is like
>
root>splosno>foto>najprodajalec>random>album1,.......
>
> and this is the code for which is workable itself, but
when i use it on a
> template it doesn't show images (led cross sign):
>
> <!- Image Rotator Script provided by Greg Gibson of
Sitepros Network
> Solutions
> ->
> <!-
http://weblog.sitepros.net
and
http://www.sitepros.net ->
> <!- Download this script at
>
http://weblog.sitepros.net/stuff/ImageRotator.zip
> ->
>
> <%
>
> 'Declare Variables
> dim fsoFolder, FolderRoot, FolderSubs, RndFolderNum,
objFolder,
> intFileLooper
> dim objFolderToUse, objFolderToUsePath, fsoFile,
objFolderObject,
> objFileCollection
> dim intFileNumberToUse, objFile, objImageFileToUse,
strImageSrcText
>
> 'This is a relative path to your image gallery root
> Const ImagesRoot = "/splosno/foto/najprodajalec/random"
>
> ' Get List of Subfolders under ImagesRoot
> Set fsoFolder =
CreateObject("Scripting.FileSystemObject")
>
> Set FolderRoot =
> fsoFolder.GetFolder(Server.MapPath(ImagesRoot))
>
> Set FolderSubs = FolderRoot.subfolders
>
> ' Get a Random Folder Number from List
> randomize
> RndFolderNum = Int(FolderSubs.count * Rnd)
>
> ' Associate Folder name based on Random Number Results
> For Each objFolder in FolderSubs
> If intFileLooper = RndFolderNum Then
> ' Get a "handle" on the appropriate file
> Set objFolderToUse = objFolder
> Exit For
> End If
> intFileLooper = intFileLooper + 1
> Next
>
> 'Clean up Above Variables
> Set fsoFolder = Nothing
> Set FolderRoot = Nothing
> Set FolderSubs = Nothing
> Set RndFolderNum = Nothing
>
>
> ' Build Complete Virtual Path to Random Folder
> objFolderToUsePath = (ImagesRoot & "/" &
objFolderToUse.name & "/")
>
> ' Get a List of Image Files from Folders
> Set fsoFile =
Server.CreateObject("Scripting.FileSystemObject")
> Set objFolderObject =
> fsoFile.GetFolder(Server.MapPath(objFolderToUsePath))
>
> Set objFileCollection = objFolderObject.Files
>
> ' Get a Random File Number from List
> randomize
> intFileNumberToUse = Int(objFileCollection.Count * Rnd)
+ 1
>
> ' Associate File name based on Random Number Results
> intFileLooper = 1
> For Each objFile in objFileCollection
> If intFileLooper = intFileNumberToUse Then
> ' Get a "handle" on the appropriate file
> Set objImageFileToUse = objFile
> Exit For
> End If
> intFileLooper = intFileLooper + 1
> Next
>
> ' Clean up Above Variables
> Set fsoFile = Nothing
> Set objFolderObject = Nothing
> Set objFileCollection = Nothing
>
> ' Build our img src tag text (Note this is a full
physical path, not
> virtual)
> strImageSrcText = objImageFileToUse
>
> %>
>
>
> <!- Display The Image ->
> <img src
="/splosno/foto/najprodajalec/sendbinary.asp?strImage=<%=
> strImageSrcText %>&Width=150&Height=150"
border="1" Width="150"
> Height="150">
> <%
>
> 'Clean up Remaining Variables
> Set objFolderToUse = Nothing
> Set objFolderToUsePath = Nothing
> Set objImageFileToUse = Nothing
> Set strImageSrcText = Nothing
>
> %>
>
>
> inside the directory najprodajalec is one more file who
cares about image
> properties (resize image). it's called sendbinary.asp:
>
>
> <%
> Response.Expires = 0
>
> ' create instance of AspJpeg
> Set Jpeg = Server.CreateObject("Persits.Jpeg")
>
> ' Open source file
> Jpeg.Open( Request("strImage") )
>
> ' Set new height and width
> Jpeg.Width = Request("Width")
> Jpeg.Height = Request("Height")
>
> ' Perform resizing and
> ' send resultant image to client browser
> Jpeg.SendBinary
>
> %>
>
> if you find out it would be your present for my
tommotrows birthsday:-)
>
> enyoj!
> bostjan
>
Similar Messages
-
Document-relative Template paths in templated files?
Is it possible to make Dreamweaver use document-relative
paths to parent Templates rather than root-relative? My site
definition is setup so such that the local folder is the root of
the web site. However, on the server the site is actually in a sub
folder, so the real web root is not the same as this web sites
root. So, something like this:
Local root folder = C:\...\Project Name\www2\
(Local templates folder = C:\...\Project
Name\www2\Templates\)
HTTP Address =
http://www.mysite.com/clients/client-site/
(Remote templates folder =
http://www.mysite.com/clients/client-site/Templates/)
The end user will be using Contribute to manage the content
on this site, so I'm using Templates to control some aspects of the
site. My problen is that the path back to the Template is being
written as a root-relative link:
InstanceBegin template="/Templates/navigation-sub.dwt.php"
When I then connect to the site using Contribute and try to
edit a page, I get an error saying that it can't find the template
(which is true because the template is actually in
"/clients/client-site/Templates/navigation-sub.dwt.php" and not
"/Templates/navigation-sub.dwt.php"). I have the Links Relative to
Document option checked in my site definition, but that appears to
only apply to regular links and not paths to Template files.
Murray had mentioned some technotes that addressed this, and
I think I found the ones he was thinking of, but they seemed to
only address regular links and it wasn't clear if the Template
paths were affected by the solution (which was to set the Links
Relative to Document option which I mentioned above).
So is it possible to tell DW to use document relative paths
to its template files? I know you're thinking "Why not just create
the local folder with the client and client-name folders," but this
wouldn't work as the site will eventually be moved to the clients
own website where the site files really will be in the site root.
This is the whole reason for using document relative files in the
first place. Any help would be greatly appreciated.OK, apparently I'm not explaining myself enough here because
you guys keep giving me the same answer to something that I've
already said isn't a viable solution. Let me explain in greater
detail why just updating the local folder structure won't work.
Let's assume that I did do what you suggest. My local folder
could technically stay the same but I'd add two additional
directory levels ('clients' and 'client-site') to match the site
structure on my testing server. I then move all of the existing
files into the lower 'client-site' directory *except* for the
Templates folder because DW likes that to be at the "root" of the
"site". So now assume my local site looks something like this:
C:\...\Project Name\www2\ (DW would consider this the "root"
of the site)
.....clients\
..........client-site\ (i'll refer to this as the client root
for simplicity sake)
...............articles\
....................doc_a.html
...............images\
....................img_a.jpg
...............index.html
.....Templates\
..........client-template.dwt
If DW is writing the Paths back to the Template file using
site-relative paths then file index.html in the client root (i.e.
/clients/client-site/) would have the path back to template
client-template.dwt written as follows:
InstanceBegin template="/Templates/client-template.dwt"
Also assume that img_a.jpg is the client logo that will be
used on all of the pages and so it is in a protected part of the
template. The document-relative path from the template
client-template.dwt to the image would be:
<img src="../clients/client-site/images/img_a.jpg">
Of course since my site is defined to use document-relative
links then this path would resolve to just "../images/img_a.jpg"
for index.html.
OK, so far so good. I upload all of this to my testing
server, give my client a connection key for Contribute and let them
test away. They love it (naturally) and want to move everything to
production. This is where your suggested solution falls apart.
In order for the site to continue to work as-is I would have
to copy the entire directory tree (/client/client-site/etc) to the
clients web site, so what should be www.client-site.com/index.html
becomes www.client-site.com/clients/client-name/index.html. I also
have to copy over the Templates folder, stripping out any other
Templates that might be in there (my own site template for
example). Not only is this cumbersome, but the client hates the
fact that there are all these subdirectories in their URL (as
finicky as clients are) and they think it is unprofessional. My
whole purpose for developing using document relative links is so
that no matter where I plop the site, it will work as intended.
OK, the first fox for this that comes to mind is to take just
the site files (so everything under /clients/client-name/) and plop
that into the root folder on production. All of the existing files
should work fine since they use document-specific links. However,
the client still needs to use Contribute to edit these documents so
I have to copy over the Template folder. I can put that into the
root since all of the paths back to the template are root-relative,
right? Wrong - because all of the links in the template still point
to the files as if they were in '/clients/client-name/', which they
no longer are. So any new files based on the template will contain
broken links, and any updates to the existing files might also
result in broken links.
So then I need to keep two versions of the site? And if I
make a change to the template on the testing site, I then have to
reconcile the changes to the production version? Way too much. And
all of this would be irrelevant if I could just use
document-specific links back to my templates.
Does it make sense now why updating the site structure isn't
as optimal of a solution as you are making it out to be.
quote:
Originally posted by:
Newsgroup User
Create a new site definition for this testing site that uses
the correct
root directory. Then it doesn't matter.... -
MS Office Report Express VI - How to programatically use multiple Path to Template
Good Afternoon,
I'm testing MS Office Report Express VI and i need to know if it's possible (and how) to programaticaly change "Path to Template" field? I need that in order to change it through front panel.
Best Regards.Hello aj2011,
Thank you for your post on the National Instruments forum.
a solution for what you want to do is:
when you placed your express VI on the diagram, perform a right click on the express VI. From the dialog box choose "open front panel". Choose "convert". then when the front panel of the express VI is open, modify the connector of the VI and put the template path as an input.
This way you can use the express VI input path template programmatically.
Is the solution you were looking for?
Sincerely
Romain D.
Romain DUVAL || Application Engineer Specialist ||Certified LabVIEW Architect (CLA) || Certified TestStand Architect (CTA)
National Instruments France -
Can't edit path to template " Configure MS office report"
I am trying to change the path to my template in " Configure MS Office Report" (see attached screen shot)
I can place my cursor into the "Path to Template" field, my keystrokes don't appear.
How can I change the path name? I am setting up another VI on this computer but it needs a separate template.
Thanks,
Bill
Attachments:
Screen shot 4-11-07.jpg 968 KBYou need to change the ring selection from "Basic Report for Excel" to "Custom Report for Excel". This allows you to specify your own template.
-D
Darren Nattinger, CLA
LabVIEW Artisan and Nugget Penman -
I have a question on paths and templates
I have a question on how I should structure my site
At my root directory on my server I have this set up.
index.html
/pages
page1.html (all of these were created from my own template)
page2.html
page3.html
and so on....
/webReadyGraphics
/css
/library
/templates
genericTemplate.dwt
Each folder has their own respective files in it.
The problem I'm bumping into is relative and absolute paths in my DW templates/assest. I will do my best to explain.
I've create a menu with text that links to various pages. An example would be a home button which always returns you to the index.html. I turned that home button into an asset. I've placed that asset into my genericTemplate.dwt. The link attached to the home button is a relative path and looks something like ../index.html.
I have used my genericTemplate to create all my pages, even index.html. So on my index page is my home button which tries to link to a parent directory ../index.html. I decided to use absolute paths instead which is great on my local machine but when I go to upload to my server won't this be a problem? As browsers will be looking for a local absolute path?
How should I structure my website? I've been thinking about putting all my pages at the root directory but that just gets mess looking.
I hope I explained that well. My understanding of web theory is a bit novice.
Thanks!
-DweininHow do I do that? The pages which have the asset (button) have different paths to get to the index.html... some paths would be ../index others would be ../../index.html
I don't know how to explain this. I have 1 button. that button is on 15 webpages. Those pages are located at various directories from within my website. So all their paths would be different but I only have 1 button. So how do I put a relative path in there?
I can put all the pages in 1 location so the button path would be the same. That's not a problem BUT! I also have that button on my index.html page which is at the root of my site.
All of my pages would be located at root/pages/______.html. The button would have a relative path of ../index.html
The index is located at root/index.html and that SAME button would have an incorrect path of ../index.html and return an error saying page not found.
I want to keep the button an asset since I will likely be changing it's destination in the future or may want it to link a different page. So I made the button an asset so that I when I do want to change it I only have to do it once and it updates across all my pages.
Does that make sense? Should I just put all my pages at the root? Is that normal to do? My root would start to look pretty mess with 15-20+ html pages.
-Drew -
How to correct SpryAssets/SpryMenuBar paths in template for sub-directories?
I recently converted my real estate web site to CSS using Dreamweaver CS4. I use a primary template for most of my pages, which have both a horizontal and a vertical spry menu bar. When I create a page with the template and save it in a sub-directory (not at root level), after a page view, I get errors on the server such as:
File does not exist: /home/I_DELETED_THIS/public_html/homes_for_sale/SpryAssets, referer: http://locatehome.com/homes_for_sale/10-2264.htm
(I replaced part of the URL with "I_DELETED_THIS" since this is posted publicly)
The SpryAssets directory is at the root level of my site. The template includes the code further below at the bottom of the source code in a non-editable area of the template, which I think is the source of the problem, especially since I get two error messages for each page view and the SpryAssets directory is referenced twice in the following code after the last div. Part of the code is commented out:
<script type="text/javascript">
<!--
var MenuBar1 = new Spry.Widget.MenuBar("MenuBar1", {imgRight:"SpryAssets/SpryMenuBarRightHover.gif"});
var MenuBar2 = new Spry.Widget.MenuBar("MenuBar2", {imgDown:"SpryAssets/SpryMenuBarDownHover.gif", imgRight:"SpryAssets/SpryMenuBarRightHover.gif"});
//-->
</script>
</body>
Can I delete this code from the template or will my menu bars not function if they have sub-menus?
The template changes the file path for other CSS scripts in the head of the template and links, etc. in the body, but not for this section of code. Is there a way to modify my template so that the path files will be correct when a create new pages in sub-directories?
I saw one suggestion in the Forum to another user with a related problem that he should manually change the code in this section of the template to have a file path relative to the root, but it seems that the program should automatically be taking care of things like that.
Many thanks,
Dave K.<script type="text/javascript">
<!--
var MenuBar1 = new Spry.Widget.MenuBar("MenuBar1", {imgRight:"SpryAssets/SpryMenuBarRightHover.gif"});
var
MenuBar2 = new Spry.Widget.MenuBar("MenuBar2",
{imgDown:"SpryAssets/SpryMenuBarDownHover.gif",
imgRight:"SpryAssets/SpryMenuBarRightHover.gif"});
//-->
</script>
No you cannot delete the menu constructors, they are the ones that call the menus. The comment tags are purely for browsers that do not have JavaScript enabled.
As far as template behaviours are concerned, I am afraid that this is not a very helpful forum. You will need to go to the Dreamweaver Forum for that http://forums.adobe.com/community/dreamweaver/dreamweaver_general
I hope this helps.
Ben -
Updating of paths in templates when saving file
HI,
I am using CS3 and I have a person using ver 8.
In a template I have some paths for include files. These are
not in editable regions. My templates are in a template folder.
When I go to create a new page from a template and save it in
another folder the paths are modified appropriately to reflect
where the file is now located.
However when the person using ver 8 creates a new file from
the template and saves the file in a different folder, Dreamweaver
is not updating the path at all. It still reference everything as
in the template folder. Since the path statements are not in the
editable region these cannot be fixed. I have checked to make sure
that the ver 8 person's site set up is correct so that files are
referenced from the root and not a file.
Is this a problem because they are using ver 8?> Is this a problem because they are using ver 8?
Shouldn't be. But you can work around this by always using a
root relative
link to the include files.
Murray --- ICQ 71997575
Adobe Community Expert
(If you *MUST* email me, don't LAUGH when you do so!)
==================
http://www.projectseven.com/go
- DW FAQs, Tutorials & Resources
http://www.dwfaq.com - DW FAQs,
Tutorials & Resources
==================
"mmesarch1" <[email protected]> wrote in
message
news:gm9kpo$reu$[email protected]..
> HI,
> I am using CS3 and I have a person using ver 8.
> In a template I have some paths for include files. These
are not in
> editable
> regions. My templates are in a template folder.
> When I go to create a new page from a template and save
it in another
> folder
> the paths are modified appropriately to reflect where
the file is now
> located.
>
> However when the person using ver 8 creates a new file
from the template
> and
> saves the file in a different folder, Dreamweaver is not
updating the path
> at
> all. It still reference everything as in the template
folder. Since the
> path
> statements are not in the editable region these cannot
be fixed. I have
> checked to make sure that the ver 8 person's site set up
is correct so
> that
> files are referenced from the root and not a file.
>
> Is this a problem because they are using ver 8?
> -
I upgraded to Dreamweaver 8 this past year, only to run into
an issue when working with templates that i wasn't having in
previous versions. Have been a web designer for 9 years, so
needless to say, frustrating at best! When i create text links on
the bottom of the site on the template, and only put reference to
the site file... i.e. ../sitemap.htm instead of
http://www.mysite.com/sitemap.htm
dreamweaver seems to create a path Template/sitemap.htm on the
actual site pages. THis is happening as well with my navigation,
which is an external js file. My only work around is to put the
full path, which becomes a pain when i'm creating a site on a test
area. I have to re-do the liinks on the final launched version.
Anyone running into this?> and only put
> reference to the site file... i.e. ../sitemap.htm
Are you typing in what you think the path should be, or are
you clicking the
folder icon and browsing to the actual file?
Paths in templates should work IN the template- they should
be the relative
path from where the template is to where the desired file is.
Then when you
create a child file of the template, dreamweaver will adjust
and manage the
path for where the child page is saved to.
Don't make the path in the template what you want it to be in
the child
files- just have it be correct IN the template and dw will
manage it for
you.
Alan
Adobe Community Expert, dreamweaver
http://www.adobe.com/communities/experts/ -
Office 2013 templates Group Policies
There is a GPO related to Enterprise template locations in Office 2013 that is not clear at all and poorly documented. The path to the GPO is:
MS Office 2013 > Shared Paths > Enterprise templates path
What is the purpose and how this path can be used? What is the difference between using this GPO and the following GPOs that I have been using in the past:
MS Office 2013 > Shared Paths > Workgroup templates path
MS Office 2013 > Shared Paths > User templates path
PowerPoint 2013/Word 2013 > Miscellaneous > Personal templates path for PPT or Word
Any information will be greatly appreciated.Hi Petrika,
See the following;
This policy will set the following regkey:
[HKEY_CURRENT_USER\Software\Policies\Microsoft\Office\15.0\Common\General]
"CorporateTemplates" (REG_SZ or REG_EXPAND_SZ)
You can however also deploy this setting as normal user preference (not as policy), e.g.:
[HKEY_CURRENT_USER\Software\Microsoft\Office\15.0\Common\General]
"CorporateTemplates"="\\server\share\corporatethemes"
We are using "Templates" for the regkey and policy description which is somewhat misleading. What we really mean is "Corporate Design Theme Templates" for PowerPoint.
A "Theme" basically contains the following design elements:
• Font
• Colors
• Styles/Effects
Office contains several different design themes out of the box but it is possible to define your own design themes for personal use or for corporate use. This policy targets the corporate use of such themes.
Personal themes are typically stored in the user profile under "%LocalAppData%\Microsoft\Templates\Document Themes".
You can store corporate templates somewhere on a file share and deploy a policy so PowerPoint will always enumerate these themes when displaying them in the themes gallery.
In order to visualize this feature please just try the following:
1. Open the "Design" Tab in PowerPoint and expand the Themes Gallery:
2. You will see a list of Themes and where they are coming from. Currently we see the design in this presentation, maybe custom themes if you once saved your own theme(s) and the Office native themes:
3. Now click on "Save Current Theme…" and save the current theme as "MyTestTheme" to a file share (e.g.
\\server\share\corporatethemes)
Now set a policy or simply set the following regkey in order to load corporate themes from this file share:
[HKEY_CURRENT_USER\Software\Microsoft\Office\15.0\Common\General]
"CorporateTemplates"="\\server\share\corporatethemes"
4. Reboot PowerPoint so this setting takes effect
5. Look into the used file share. It now contains a subfolder "Document Themes" with a thmx file (this is your theme definition) and three subfolders where settings for your design colors, fonts and effects are stored:
6. Now let's look again into PowerPoints's style gallery in the Design tab. This time you see one category more in the list of available themes: You see your corporate theme that you just saved in step 3.
7. Sometimes customers do not want the native themes to be displayed but only the corporate themes. This should make it more likely that users are using only corporate themes and not other themes when creating new presentations.
In this case you can set the following regkey or policy key:
[HKEY_CURRENT_USER\Software\Microsoft\Office\15.0\PowerPoint\Options]
"ThemesGalleryShowCorporateOnly"=Dword:0x00000001
8. If you restart PowerPoint you now see only the default Office-Theme but all other pre-installed office themes are not listed any more
Ok, so bottom line is that you can design your own corporate themes in Office 2013. For PowerPoint (where these themes are mainly used and where corporate design guides are often used) you can specify a central file share where you store your own corporate
design themes. Users will get these themes listed in the design gallery if you are using the "Enterprise Templates" policy.
</u5:p> -
Hiding Workgroup Template folder in Office 2013
Hi,
It was suggested that this may be an appropriate forum for asking the following question
I have the following setup... In Group Policy (Computer Configuration) I copy the corporate Templates to the WorkGroup Templates folder on every PC (under Default\appData). We also have a personal templates folder (under %USERNAME%\appData).
The workgroup templates are available in both the workgroup and users personal templates folder.
When a user creates a new file in WORD or Excel they are presented with 2 templates folders. Is there anyway of hiding the Workgroup Templates folder and just showing the user their personal templates folder? (I want to keep the Workgroups templates
folder, I just do not want to display it in WORD)
Or should I just try to rename the templates folders so they can be distinguished from each other
ThanksHi,
As per the description, I understand that you've copied your corporate templates into the WorGroup Templates folder, and now you would like to hide this folder to users but keep the templates/folder. If I have misunderstood your concern, please let me know.
I have tested this on my own machine, to hide this folder to users, you'll need to clean the location for
Workgroup template in FILE>Options>Advanced>File Locations... button under
General section.
We are not able to clean this directly in Word, but we can do this by modifying the registry key or using GPO:
1) Clean the value of this registry key directly for each user:
HKEY_CURRENT_USER\Software\Microsoft\Office\15.0\Common\General\SharedTemplates
2) Group policy for this is: User Configuration\Microsoft Office 2013\Shared paths\workgroup templates path
Hope it helps.
Regards,
Ethan Hua
Forum Support
Come back and mark the replies as answers if they help and unmark them if they provide no help.
If you have any feedback on our support, please click
here -
Hi all!
I have been using NI Template Editor for a long time. It is a very very useful program, and it can be called form VA / VBA. Thats the reason why it is so useful. I would like to know how should I use this function/program from my own code. ( call parametrized Template Editor e.g. form my pattern matcher program like in VBA/VA - for current Image.)
I used system execute vi- which run standard *.exe files , but in this case, image file must be selected.
I would like to know how should I use T.E. in my own program, as flexible as possible like, VA/VBA - for current image!
Thank you very much!!!
+++ In God we believe, in Trance we Trust +++
[Hungary]
Solved!
Go to Solution.Hi Durnek,
As far as I understand, you want to develop an application in LV which does Pattern Matching.
For this, you need a Template which you define in Template Editor.
In delopyed applications, the templates are predefined, in which case Template Editor is a great tool, but does not need to be called with every run.
Still, We have encountered similar requests, and we also have a product suggestion to embedd Template Editor in LV, just like VA.
We are hoping this feature will be available in the future.
Until then here are some parameters that could be called
/newath -pm -gpm -gpm2 -d
launches the editor and opens the image located at the specified path.
The parameters -pm -gpm -gpm2 and -d are optional and allow to create a template of type pattern matching, geometric matching (legacy), new geometric matching and defect inspection respectively.
You can combine those parameters to create a template of the desired type. Only the specified tabs will be enabled. If you don't specify any optional parameters, all tabs are available.
/editath
edits the template located at the specified path.
This is the responsibility of the user to save the template manually within the interface, since the training interface is called by command line and there is no way for the calling application to know if the user OKs or cancels the editor.
One important point regarding calling the template using a command line: if the path contains a space, you need to use quotes, so that the exec knows that this is only one parameter.
For instance:
"Path to template Editor\NI Vision Template Editor.exe" "/new:\Images\8 bit\image.tif" -pm -gpm -d
Please reply if this fits your application needs
Best regards,
Mircea -
Blocked by template or translator
Hi,
Can someone please tell me what I have to do in order to be
able to put a table on the page.
If its reconstructing the template thats fine but what did i
do wrong?
Code attached.> Can someone please tell me what I have to do in order to
be able to put a
> table on the page.
<p align="left"><!-- InstanceBeginEditable
name="EditRegion3"
--><font
color="#FF9900" size="3"><br />
<br />
</font><!--
InstanceEndEditable --><br />
</p>
The editable region is INSIDE of a <P> paragraph tag
and a <blockquote> tag.
Try this-
Open the template file
click into Editable Region 3
In the quick tag selector (list of tags at bottom left of
design window)
right-click on that <p> tag and pick Delete tag. Same
for the <blockquote>
tag. Save the template. Can you insert a table now?
Next issue:
Most of the link paths have Templates/ in the path.
<a href="Templates/photos.html">Photos</a> |
<a
href="Templates/Budget.html">Budget</a> | <a
href="Templates/bylaws.html">Bylaws</a> | <a
href="Templates/awards.html">Awards</a>
1. Only .dwt template files go into the Templates folder. No
other files. No
images, no css, no html pages.
2. The links should work IN the template file. so open the
.dwt template,
and File-->Check Page-->Check Links. Fix all the broken
links by using the
browse to file dialog box to pick the actual file you want to
link to.
If the file photos.html is in the root level of the local
site folder, a
link to it in the template should be either:
<a href="/photos.html">
or
<a href="../photos.html">
and not:
<a href="photos.html">
Alan
Adobe Community Expert, dreamweaver
http://www.adobe.com/communities/experts/ -
Hi,
I am looking to create a script that pulls the path of the listed PSD from the attached Error Log file.
The files could not be read. Please re-open the files in Photoshop and save them with the ‘Maximize Compatibility’ preference enabled. (20)
\\WDMYCLOUDEX4\imageArchive\Brandon Barre\Bradon\Sheraton Cypress\PSDs\Sheraton Cypress Court Restaurant.psd
\\WDMYCLOUDEX4\imageArchive\Brandon Barre\Bradon\Sheraton Cypress\PSDs\Sheraton Cypress Rock Garden.psd
\\WDMYCLOUDEX4\imageArchive\Brandon Barre\Bradon\Sheraton Cypress\PSDs\Sheraton Link.psd
\\WDMYCLOUDEX4\imageArchive\Brandon Barre\Bradon\Sheraton Cypress\PSDs\Sheraton Cypress Court Area.psd
\\WDMYCLOUDEX4\imageArchive\Brandon Barre\Bradon\Sheraton Cypress\PSDs\SheratonCypress_Guestroom.psd
\\WDMYCLOUDEX4\imageArchive\Brandon Barre\Bradon\PSDS\Ballroom.psd
\\WDMYCLOUDEX4\imageArchive\Brandon Barre\Bradon\PSDS\DiningArea.psd
\\WDMYCLOUDEX4\imageArchive\Brandon Barre\Bradon\PSDS\Lobby.psd
\\WDMYCLOUDEX4\imageArchive\Brandon Barre\Bradon\PSDS\Pool.psd
\\WDMYCLOUDEX4\imageArchive\Brandon Barre\Bradon\PSDS\Meeting Space.psd
\\WDMYCLOUDEX4\imageArchive\Brandon Barre\Bradon\PSDS\Fitness.psd
\\WDMYCLOUDEX4\imageArchive\Brandon Barre\Bradon\Four Points London\PSD\Four Points London_Guestbathroom.psd
\\WDMYCLOUDEX4\imageArchive\Brandon Barre\Bradon\Four Points London\PSD\Four Points London_GuestSuite.psd
\\WDMYCLOUDEX4\imageArchive\Brandon Barre\Bradon\Four Points London\PSD\FP_London_BusinessCenter.psd
\\WDMYCLOUDEX4\imageArchive\Brandon Barre\Bradon\Four Points London\PSD\Four Points London_GuestroomBathroomTwo.psd
\\WDMYCLOUDEX4\imageArchive\Brandon Barre\Bradon\Four Points London\PSD\Four Points London_GuestroomBathroom.psd
\\WDMYCLOUDEX4\imageArchive\Brandon Barre\Bradon\Four Points London\PSD\Four Points London_GuestSuite_Desk.psd
\\WDMYCLOUDEX4\imageArchive\Brandon Barre\Bradon\Four Points London\PSD\Four Points London_Guestroom.psd
\\WDMYCLOUDEX4\imageArchive\Brandon Barre\Bradon\Four Points London\PSD\Four Points London_Guestroom_Double.psd
\\WDMYCLOUDEX4\imageArchive\Brandon Barre\Bradon\Four Points London\PSD\Untitled1.psd
The text above was created when the PSD was saved with Maximum Compatibilyt turned off and Lightroom will not Import them.
I am looking for guidance or someone to create it as I am willing to pay for it that references the text file, each line opening the file in Photoshop and Saving As in same place with Maximize Compatibility and done sequentially.
Thank you kindly,
ThomasSomething to get you started:
var inputFolderPath = "/path/to/folder",
outputFolderPath = "/path/to/other/folder",
templatePath = "/path/to/template.indd",
inputFolder = new Folder(folderPath),
outputFolder = new Folder(outputFolderPath),
template = new File(tempatePath),
files = inputFolder.getFiles(),
file, fileString, doc, idName, i, l;
outputFolder.create();
for (i = 0, l = files.length; i < l; i++) {
file = file.open('r');
idName = file.displayName.replace(/\.[^\/.]+$/, '') + ".indd";
fileString = file.read();
file.close();
doc = app.open(template);
doYourStuff(doc, fileString);
doc.save(outputFolder + "/" + idName);
doc.close();
This would name the versioned InDesign files the same as the input text file but with the ".indd" extension. You might need to consider filtering the files in the getFiles() call, if you have filetypes in your input folder you don't want to process. It's clearer to just re- open the template file on disk, rather than reverting, and amounts to the same thing.
Jeff -
How to clear input field value on back
Hi All,
I have developed an application, in which user put sales order on first page and press a button then its detail display on second page using restAPI. Now when I press back button on second page then it takes me to first page with holding previous sales order value in input field. And when I change its value and press that button again then it shows me previous sales order detail.
Please suggest me, how to refresh cache and input fields value on back button?
Thanks & Regards
ShubhanshuHi Viren,
My code is,
First view
sap.ui.jsview("uitest2.first", {
getControllerName : function() {
return "uitest2.first";
createContent : function(oController) {
var text = new sap.m.Label({
text: 'Dealer Code',
layoutData: new sap.m.FlexItemData({alignSelf: sap.m.FlexAlignSelf.Center })
var input = new sap.m.Input("CUSTOMER",{
type: sap.m.InputType.Text,
placeholder: 'Enter Dealer code...',
layoutData: new sap.m.FlexItemData({growFactor: 1, alignSelf: sap.m.FlexAlignSelf.Center})
var Dealer = new sap.m.HBox({
items:[ text,input
// new sap.m.Label({
// text: 'Dealer Code'
// new sap.m.Input("CUSTOMER",{
// type: sap.m.InputType.Text,
// placeholder: 'Enter Dealer code...'
height : "6em"
var button = new sap.m.Button({
text: "Submit",
press: function(oEvent) {
oController.loadData();
app = sap.ui.getCore().byId("myApp");
app.to("idsecond1");//, sap.ui.getCore().byId("CUSTOMER").getValue());
layoutData: new sap.m.FlexItemData({alignSelf: sap.m.FlexAlignSelf.Center})
return new sap.m.Page({
title: "Sales Dealer Info",
content: [ Dealer,button
First controller
sap.ui.controller("uitest2.first", {
loadData: function() {
var oParameters = ({
"CUSTOMER" : sap.ui.getCore().getElementById('CUSTOMER').getValue(),
console.log(oParameters);
var url = "http://###########:8000/sap/bc/zrst_customer?sap-client=800/";
var oModel = new sap.ui.model.json.JSONModel();
$.ajax({
url : url ,
dataType : "jsonp",
type : "POST",
data: oParameters,
success: function(data,textStatus,jqXHR) {
data = JSON.parse(data);
console.log(data);
oModel.setData(data);
sap.ui.getCore().setModel(oModel);
Second View
sap.ui.jsview("uitest2.second", {
getControllerName : function() {
return "uitest2.second";
createContent : function(oController) {
var oTable = new sap.m.Table("table",{
headerText: "Dealer data",
columns: [
new sap.m.Column({
header: new sap.m.Label({text: "NAME"}),
demandPopin : true,
minScreenWidth : "Tablet",
new sap.m.Column({
header: new sap.m.Label({text: "CITY"}),
demandPopin : true,
minScreenWidth : "Tablet",
new sap.m.Column({
header: new sap.m.Label({text: "COUNTRY"}),
demandPopin : true,
minScreenWidth : "Tablet",
new sap.m.Column({
header: new sap.m.Label({text: "COUNTRYISO"}),
demandPopin : true,
minScreenWidth : "Tablet",
new sap.m.Column({
header: new sap.m.Label({text: "STREET"}),
demandPopin : true,
minScreenWidth : "Tablet",
new sap.m.Column({
header: new sap.m.Label({text: "PST_CODE"}),
demandPopin : true,
minScreenWidth : "Tablet",
new sap.m.Column({
header: new sap.m.Label({text: "TELEPHONE"}),
demandPopin : true,
minScreenWidth : "Tablet",
new sap.m.Column({
header: new sap.m.Label({text: "EMAIL"}),
demandPopin : true,
minScreenWidth : "Tablet",
items: {
path: "/KEY",
template: new sap.m.ColumnListItem({
cells: [
new sap.m.Text({ //new sap.m.ObjectIdentifier
text: "{NAME}"
new sap.m.Text({
text: "{CITY}"
new sap.m.Text({
text: "{COUNTRY}"
new sap.m.Text({
text: "{COUNTRYISO}"
new sap.m.Text({
text: "{STREET}"
new sap.m.Text({
text: "{PST_CODE}"
new sap.m.Text({
text: "{TELPHONE}"
new sap.m.Text({
text: "{EMAIL}"
return new sap.m.Page({
title: "Dealer Info",
showNavButton: true,
navButtonTap:function(){
app = sap.ui.getCore().byId("myApp");
app.to("idfirst1");
sap.ui.getCore().getElementById('CUSTOMER').setValue("");
oModel.refresh();
content: [ oTable
Index.htm
<!DOCTYPE HTML>
<html>
<head>
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<script src="resources/sap-ui-core.js"
id="sap-ui-bootstrap"
data-sap-ui-libs="sap.m,sap.ui.commons"
data-sap-ui-theme="sap_bluecrystal">
</script>
<!-- only load the mobile lib "sap.m" and the "sap_mvi" theme -->
<script>
sap.ui.localResources("uitest2");
var app = new sap.m.App("myApp",{initialPage:"idfirst1"});
var page = sap.ui.view({id:"idfirst1", viewName:"uitest2.first", type:sap.ui.core.mvc.ViewType.JS});
var page1 = sap.ui.view({id:"idsecond1", viewName:"uitest2.second", type:sap.ui.core.mvc.ViewType.JS});
app.addPage(page).addPage(page1);
app.placeAt("content");
</script>
</head>
<body class="sapUiBody" role="application">
<div id="content"></div>
</body>
</html>
Thanks
Shubhanshu -
Office 2013 Silent XML setup works on 64-bit version but not on 32-bit
Hello,
I'm using a powershell script to silently install Lync 2013 (which is part of Office 2013) when domain computers initialize.
The installation is using a XML file to get the configurations and installs only Lync (not Word, Excel, etc). The 64-bit Office version installation I tested several times and is working fine, it installs only Lync 2013, but the 32-bit installation is using
an identical XML file, just changing the 64bit source to the 32bit source, and installs ALL the Office Products, everything. Anyone know whats wrong?
This is the xml file:
<Configuration Product="ProPlus">
<OptionState Id="LyncCoreFiles" State="Local" Children="Force" />
<Display Level="None" CompletionNotice="Yes" AcceptEula="Yes" />
<Logging Type="verbose" Path="%temp%" Template="LyncSetupVerbose(*).log" />
<Setting Id="REMOVEPREVIOUS" Value="" />
<Setting Id="SETUP_REBOOT" Value="Never" />
<DistributionPoint Location="\\grupouniasselvi.local\office\source\office2013_32bit" />
</Configuration>
And starting the setup like this: setup.exe /config configlync.xmlMessing around with the XML file I found a workaround to the problem, explicit added the others products in the config.xml and set to "Absent", like this:
<Configuration Product="ProPlus">
<OptionState Id="LyncCoreFiles" State="Local" Children="Force" />
<OptionState Id="ACCESSFiles" State="Absent" Children="Force" />
<OptionState Id="EXCELFiles" State="Absent" Children="Force" />
<OptionState Id="GrooveFiles" State="Absent" Children="Force" />
<OptionState Id="OneNoteFiles" State="Absent" Children="Force" />
<OptionState Id="OUTLOOKFiles" State="Absent" Children="Force" />
<OptionState Id="PPTFiles" State="Absent" Children="Force" />
<OptionState Id="PubPrimary" State="Absent" Children="Force" />
<OptionState Id="VisualStudio_PreviewServer_SPD" State="Absent" Children="Force" />
<OptionState Id="WORDFiles" State="Absent" Children="Force" />
<OptionState Id="XDOCSFiles" State="Absent" Children="Force" />
<OptionState Id="GrooveFiles2" State="Absent" Children="Force" />
<OptionState Id="TOOLSFiles" State="Absent" Children="Force" />
<Display Level="None" CompletionNotice="Yes" AcceptEula="Yes" />
<Logging Type="verbose" Path="%temp%" Template="LyncSetupVerbose(*).log" />
<Setting Id="REMOVEPREVIOUS" Value="" />
<Setting Id="SETUP_REBOOT" Value="Never" />
<DistributionPoint Location="\\grupouniasselvi.local\office\source\office2013_32bit" />
</Configuration>
It installed only Lync 2013 now, but its really odd that I needed to do this with the 32bit source and a single line did it with the 64bit source. Whats the difference? :(
Maybe you are looking for
-
Reading log file and calculating time between
If someone could help me with this one, I would be very grateful. I have a log file and I need to search a string that contains a start time and end time (eg. <time="11:10:58.000+000">). When I have these two values, I need to measure the time that h
-
Will I qualify? Future!
I am fairly sure I should be fine, but just wondering opinions of experienced people The info I am going to have will be the info for when I am applying not my current info. (current info has judgements that will have fallen off report and been paid
-
How to set ascential status "not aborted" when no file is present
Hi gurus, Can anyone advise how can i set up the job in ascential to by pass the abort status whenever i have no file in place. Normally what happened is, the job is triggered everyday and when a file has missed to maintain in the defined directory,
-
Questionable Legality: HyperlinkListener without URLs
Hey guys, My goal is to have website-style links in a JEditorPane that cause certain behaviors in my GUI when the user clicks them. The SSCCE below works exactly how I'd want it to. The only problem is, I feel a bit dirty using a HyperlinkListener in
-
Successful, but only after disabling all Extensions, quit-ting and restarting (didn't fix it), disabling the Plugin, QuickTime v7.7.1, quit-ting and restarting (didn't fix it), and then disabling the Theme, Walnut 2 for Firefox v2.0.25. Quit-ted agai