Jump to content

Eric Patrick

Registered Users - Approved
  • Posts

    18
  • Joined

Posts posted by Eric Patrick

  1. Drewstre,

    I don't think you can use a relative path in the Resource Editor. The resource has to be linked directly to it's location when you choose it during the add resource process.

     

    ScreenShot2023-06-21at5_05_36PM.png.25ae7679e4c8ac62073b6a5cdeddc121.png

     

    Then you need to but the relative path in the Composition Settings - Advanced tab Search Paths but you don't need the ./ just the name of the sub folder. In your case just Links.

    Here is an excerpt that helps explain it from the following link:  https://forums.pti.com/topic/1198-relative-file-paths/#comment-4810

     

    jurgmay said:
    At the moment all my resources have to be placed inside the same folder as my template file which I'd like to avoid. What I'd like to do is have a folder within my template's parent folder titled 'Resources'. In my code I would reference it something like '~/Resources/' where the ~ will be the path to the parent folder of my template file.

     

    Ideally my folder structure would be something like...

     

    TEMPLATE FOLDER (Parent Folder)

    INPUT (Child of TEMPLATE FOLDER)

    OUTPUT (Child of TEMPLATE FOLDER)

    RESOURCES (Child of TEMPLATE FOLDER)

     

    All my resources would be places in the RESOURCES folder and all output files would appear in the OUTPUT folder.

     

    It seems though that I have to either set the Search Path (through Compose > Advanced) or hard code the FULL file path. Both of these options mean I have to determine a static path rather than a dynamic one.

    That's not entirely true. If you merely want to reference resources in a subfolder of your template folder, all you need to do is type that folder's name in the "Search Path" box on the Advanced tab of the Composition Settings dialog. Not a relative path with dots and slashes and such, just the folder name, i.e. "RESOURCES". That's all you need. Then any calls to file names in functions like CreateResource will automatically search that folder. The key here is that "RESOURCES" is a relative path; it's the same as "./RESOURCES" (or ".\RESOURCES", or even ":RESOURCES" in the old HFS-style specification on Mac).

     

    You can also type other relative path specifications in the "Search Path" box. For instance, typing "../RESOURCES" there will reference a folder that's a sibling of your template folder. And ".." will reference the parent folder of your template folder.

     

    Note also that you can enter multiple paths in the "Search Path" box, using semicolons to delimit them. So you can type something like "Graphics;../Graphics;../data" and all of those folders will be searched, in order (after the input and format/template file folders, which are always searched first, as I noted in my previous post).

    -----------------------------------

    Hope this helps.

  2. I recently upgraded us from FusionPro VDP Creator 9.2.31 to 9.3.26 and now when I launch multiple jobs for composing one after another, jobs are left out of the process. Before the upgrade all jobs would compose one at a time until all were done. We automate processes whenever possible and have AppleScripts that we use to run multiple jobs up to 6 or 8 at one time. Now depending on how long it takes to process the first job only one other job out of 6 actually compose. Has anyone else run in to this?
  3. I 've been working on this project with a CSR looming over me and can't come up with the right fix.

    I have a table that will have a variable number of rows based on an external data file. I've seen all the posted threads and have tried parts of a lot of them.

    I can get the table to look like I want it to, but i can't get the variable row part to work. I have attached the project where I have it right now.

    I'm just stumped as to where to go from here. Any insight or fixes would be highly appreciated.

     

    Thanks!

    TABLE_SETUP.zip

  4. I am setting up a job that needs a variable slug. I found the set up info in the Rules manual and have created the OnJobStart Rule. I have created a template page. But I can't find any info on how to place the Slug rule on the template page.

    Is there a full explanation somewhere on how to set this up?

     

    Thanks!

×
×
  • Create New...