Adding a script to every topic in an existing WebHelp project
I've got WebHelp (RH8, but could upgrade if necessary) running on Apache.
What are my options for adding a script (probably PHP) to every topic?
In the past, with other HATs, I've put stuff like that in master pages and in skins.
From a comment in http://forums.adobe.com/message/3939811 I get the impression that nothing I do to a master page will affect existing topics?
How about skins?
Any other options besides running a script to make global changes to the source files or output files?
Obviously if I define the script globally I'd need to use variables or replaceable parameters or the like in the script to customize it for each page. Is Robo helpful for that or should I be looking to the Apache environment for those values?
Hi there
Okay... Master Pages... Topic Templates... They are essentially the same thing. RoboHelp 8 began calling them Master Pages.
For starters, do we want to use Master Pages to create new topics with? Or do we want to define something inside the Master Page and apply it to existing topics?
My assumption is that you already have topics and simply wish to associate a Master Page with them.
When you define a Master Page in RoboHelp 8 or 9, it will contain a Body placeholder. Whatever is inside the Body placeholder will end up being copied into any new topics you create that use the Master Page. But that's where it ends with stuff in the Body placeholder. After you create the topic, changes to the Body placeholder inside the Master Page *ARE NOT POPULATED* into the topics created from the Master Page. So you may change the Master Page substantially and the topics associated with it will remain unaffected.
Note that you may also use a Master Page to populate Headers and Footers across existing topics. You have to do this by editing the Master Page and clicking View > Header or View > Footer in order to bring them into view. And once you do this, you may populate them with information. And using Master Pages in this fashion *DOES* allow subsequent changes to the Master Page to be populated across all topics associated with the Master Page.
The problem here is this. You are wanting to use the latter feature to populate additional content across topics. So far so good. But you also have a need to make that content customized to each topic, no? And if that's the case, you won't be able to use Master Pages to maintain that content. I suppose you might put it in a Master Page initially just to get the code copied to all topics. But when you make changes to it to individualize it on a per topic basis, RoboHelp will pop up a warning advising the topic content is different and it will ask you what you want to do. Update the Master Page so ALL topics associated see the changed code? Or disconnect from the Master Page and leave your changes as you wish inside the topic.
Another issue with this is that based on your other post, you need some PHP code above the topic content in a place that occurs before the HTML page is even defined. And that one may prove tricksy to implement. I suppose you might use what I suggested earlier to get the code in the topic, but you will still need to carefully hand edit each topic and move the code to where it should go.
Hopefully this was helpful... Rick
Helpful and Handy Links
RoboHelp Wish Form/Bug Reporting Form
Begin learning RoboHelp HTML 7, 8 or 9 within the day!
Adobe Certified RoboHelp HTML Training
SorcerStone Blog
RoboHelp eBooks
Similar Messages
-
Adding a background to all topics
Hi again
I have searched the forum for this and have not found
anything. Has anyone got any ideas as to how to add a watermark to
every topic on a HTML Help File made using RH HTML (X5.01 with 5.02
upgrade)? In RH for Word, you go to the project settings and can
add an image as a watermark there and specify if you want it to
scroll with text or not.
I suppose I can do this on my RH HTML Help File, maybe in my
CSS but I am not very familiar with the way CSS files are displayed
in RH. Is there a style that relates to a topic body and that is
valid for all topics? My watermark is a jpg with the company logo
and apart from adding the relevant code in True Code on each topic,
I do not know how to do this?
Thanks in advance for your help.1. Select Format > Styles.
2. In the Styles: window, select Background + Text (BODY),
and click Modify...
3. In the Modify Style window, click Format and select
Borders and Shading.
4. In the Borders and Shading.window, select the Shading tab.
5. In the Pattern > Image area, browse for your image and
experiment with the other settings until you get what you want.
Good luck,
Leon -
I am trying to create my first SSIS package using SQL 2012 Server Data Tools which will invoke a script task. I added the script task, put in the code, and when I try to test out the package, I get a "data at the root level is invalid" error
message. I tried creating a new project from scratch, did a build and run w/in the IDE (with no code behind), worked ok. Added the script task (with no code behind), and I get the same error.
Can someone please point me in the right direction?Are you sure it is not XML?
How would I repro the issue?
Please share all the steps, but I think the code has an issue.
Arthur My Blog -
How to debug a dll added in script component in SSIS package
Hi All,
I have created a Integration Services project in SQL Server Data tools for VS 2012 and added a SSIS package in it. Added a script task to this SSIS package and a DLL referenced in VSTA project. I am trying to debug the dll code by using the following steps
but unable to do so.
1. Added break points in script task
2. Started debugging
3. Stopped at one of the break points in VSTA projects
4. Opened new instance of VS 2012 project for DLL library
5. Added break points in the C# DLL library
6. Attached this process to the VSTA project
7. Code is not going through into C# DLL library.
Any ideas would be appreciated.
Thanks,
PravYes, you can debug from a library (DLL) project, or even console. Just attach the debugger, but the DLL will be part of a different project. Make sure you have the pdb of the DLL, or source code, otherwise it is not possible.
Arthur My Blog -
Launchd: how to make a script run every weekday?
I'm trying to make a script run every weekday as a LaunchAgent. Is there a way to do this like you could in cron?
Here is the relevant portion of my LaunchAgent plist:
<key>StartCalendarInterval</key>
<dict>
<key>Hour</key>
<integer>9</integer>
<key>Minute</key>
<integer>0</integer>
<key>Weekday</key>
<integer>3</integer>
</dict>
I have tried changing the Weekday integer to 1-5 or 1,2,3,4,5 but neither worked. It only works with a single integer. Do I have to create 5 separate plists for each weekday?
Any ideas?Thanks VK, for others who are looking to do something similar, here is the relevant part of the code to make the command run every day (since that field is missing) at 7:00pm and 7:01pm:
<key>StartCalendarInterval</key>
<array>
<dict>
<key>Hour</key>
<integer>19</integer>
<key>Minute</key>
<integer>00</integer>
</dict>
<dict>
<key>Hour</key>
<integer>19</integer>
<key>Minute</key>
<integer>01</integer>
</dict>
</array> -
Have a bash script run every time an application is opened.
Hi,
On my Arch box I would like to have a bash script run every time a certain application is opened from the menu. I would prefer a delay of a 5 - 10 seconds after the program opens if that is possible. Could someone please let me know if and how I can achieve this?Problem is, OP wants the "meat" of his script to run after the program, which would mean putting it after the exec. But AFAIK, anything after the exec will be ignored. You could call another script to run in the background before the exec, but that seems hackish.
Last edited by alphaniner (2013-04-10 14:57:01) -
Script to know the status of existing FS
OS: SLES 10
Quite often we have FS unavilablilty issue.
FS become full, we need to request our Sys Admin group to increase the size.
Specially It is very painful when we are in the middle of soem thing.
Can I write script to know the status of existing FS in every 8 hours?
If yes, please give me the example. thanks
DNDas N wrote:
OS: SLES 10
Quite often we have FS unavilablilty issue.
FS become full, we need to request our Sys Admin group to increase the size.
Specially It is very painful when we are in the middle of soem thing.
Can I write script to know the status of existing FS in every 8 hours?
If yes, please give me the example. thanks
DNThe command:
df -h /+dirInMyProblemFS+
Should do the trick for a one off.
Perhaps as a starter for ten the easiest (?) way is add the following line to your crontab:
15 4,12,20 * * * ( date ; /usr/bin/df -h /dirInMyProblemFS ) >> /tmp/FSwatch.log 2>&1Note: crontab -e changes your crontab :: (or if 'fails' try: export EDITOR=vi; crontab -e). Your crontab may of course be deny'd.
Rgds- bigdelboy -
How to know when a topic does not exist
I have an app that is created with Visual Studio 6, which
does not have native support for HTML help (upgrading VS is
currently not an option). I have an HTML help that I would like to
call from my app. I need to call the html help with a context id
number. Since there is no html help calls in this version of VS, I
am calling hh.exe directly using ShellExecute ("hh.exe -mapid
<id> <chm file>"). I dont know of any other way. The
problem I am having is that there are times when my app and the
help may be out of sync. It is possible that my app will call the
help with an id that does not exist in the help. In WinHelp, the
user would get a message indicating that the topic did not exist.
Unfortunately, hh.exe does not return any messages. This makes the
users think something is wrong with the app.
Am I doing this the right way? Is there a way to find out if
a topic exists and notify the user if it does not?
Thanks in advance for you help.
LAHi LAYALA,
We also develop with Visual Studio 6. You can override the
WinHelp calls and redirect to HtmlHelp. Our app was originally
developed using WinHelp. We made the change to HTMLHelp several
years back and my developer claims it only took one line of code,
though he's never told me what that line is. If nobody enters into
this forum, I'll ask him tomorrow. I'm on Paciifc time so it will
be quite a few hours from now.
John -
Every time I convert a CVI project to Visual C++(6.0) project, there are errors:
Wizard was unable to locate the following function panel modules referenced by your project: easyio.fp
Wizard was unable to locate the following function panel modules referenced by your project: fieldpoint.fp, niimaq.fp
what's the problem?Every time I convert a CVI project to Visual C++(6.0) project, there are errors:
Wizard was unable to locate the following function panel modules referenced by your project: easyio.fp
Wizard was unable to locate the following function panel modules referenced by your project: fieldpoint.fp, niimaq.fp
what's the problem? -
Need to disable script or ActiveX control in WebHelp project
Two of our WebHelp projects display the following two
messages prior to loading the first page:
1) "To help protect your security, Internet Explorer has
restricted this file form showing active content that could access
your computer. Click here for options."
2) "It seems javascript is disabled in your browser, please
enable it abd reload again, or click here to view without
javascript."
I don't know my way around well enough in RoboHelp to solve
these problems. I've read that you can disable the ActiveX issue
through options in the Windows Control Panel, but that is not a
valid resolution for these customers, as that will pose security
vulnerabilities. Not sure either about how to enable javascript, as
indicated in the second message.
Obviously there is something in these WebHelp projects that
cause these messages to display. I want to address the issues at
the project level - not the OS level. Is there a way to search a
WebHelp project foe embedded ActiveX controls and java scripts that
may cause these messages, and then figure out a way to change this
behavior?
I am using RoboHelp HTML, version 5.0.2, build 801, and
generating the primary layout as WebHelp. I've played with the
Preferrred Format options when I generate the project, but nothing
has solved the problem yet.
Any suggestions? Help! This novice is stumped.It's because you are viewing the help locally. Your users
will be viewing it from a server so they will not have this issue.
To fix it to help you work, see Snippet 19 on my site. -
Adding a new system to existing ChaRM Project
Hi,
We have configured Charm in our landscape and we use Solution Manager 7.1 SP08.
Requirements:
Add a new system to the existing ChaRM Project.
Edit the logical components for e.g. To replace current SID (QA1) with another SID (QA2)
Add items (Systems or Tasks)to the existing task list
We faced problems (duplicate record dumps), while configuring as per our requirements above. SAP suggested us to
Close the Project and create a new one to include a new system. [This is not feasible for us]
Close the current maintenance cycle and create a new one if you want to edit the logical systems or to add any task or system to the existing task list.
So we have the following questions
What is the impact on closing the current maintenance cycle? We have half of transports in released and half in locked status.What happens to the transports that are not yet released?
Will they automatically get released or
Will they not get impacted or
Will they get assigned to the new maintenance cycle automatically or
Do we need to do it manually or does it not matter
Since we are close to starting our ITC, how do we go about that? How will we bundle our transports for our ITC with different maintenance cycles holding transports
What is the impact on locking a maintenance cycle?
What is the impact on project team members on creating a new maintenance cycle?
How does the maintenance cycle get impacted if we refresh existing systems?
Have you faced a similar problem? Is there an alternate solution?
If we need to add a new development system to the Project do we need to close the current project or just add it to a new maintenance cycle?
Reporting
How do we run a report for stats by Maintenance cycle
--> System --> Transport released
--> System --> Transports created (not released)
How does reporting get impacted if we make the changes stated aboveHi Nanada,
check the below blog,to adding - Add a new system to the existing ChaRM Project.
Charm task list creation for newly added system... | SCN
So we have the following questions
What is the impact on closing the current maintenance cycle? We have half of transports in released and half in locked status. - dont close the MC with out proper TR movement in PRD. it will make the system inconsistency. if it is released TR not able to unassigned from MC . this feature available from SP10. What happens to the transports that are not yet released?
Will they automatically get released or - no
Will they not get impacted or - make solman inconsistency
Will they get assigned to the new maintenance cycle automatically or- if not released from DEv, it needs to assign manually from one MC to other MC
https://websmp106.sap-ag.de/~sapidb/011000358700000611352012E/index.htm
Do we need to do it manually or does it not matter - yes, check the above link
Since we are close to starting our ITC, how do we go about that? How will we bundle our transports for our ITC with different maintenance cycles holding transports
What is the impact on locking a maintenance cycle?
What is the impact on project team members on creating a new maintenance cycle?
How does the maintenance cycle get impacted if we refresh existing systems?
Have you faced a similar problem? Is there an alternate solution?
If we need to add a new development system to the Project do we need to close the current project or just add it to a new maintenance cycle?
Check the Dolores blog -
Change Request Management scenario: Usual questions and known errors
Rg,
Karthik -
Siri used to work fine when making mobile calls in Ecuador until yesterday, when the administration of Ecuador added an aditional number in all mobile numbers existing in Ecuador. Since then Siri is unable to make any mobile calls with any new number.Help
I`ve tried restarting, rebooting, nothing works.
The interesting thing is that SIRI can call to previous mobile numbers (without the new digit) obviously not connecting , and, can call to any other numbers as an office or home number. So the problem is the new digit in the mobile numberEcuador has added an extra digit to mobile phone numbers but apple wont accept 10 digit phone numbers so we cant use facetime or apple IM or verify our new phone numbers. ( and Siri won't work either!) I have contacted apple support online but can't request a call back as the apple system says our new phone numbers are invalid. I am going to phone them tomorrow and you should complain too at http://www.apple.com/support/contact/. . The more people that bring this to their attention the faster it will get fixed
-
"Your script uses objects from a non-existent collection"
I have a multiple page form with a barcode on each form. I created a separate collection for each barcode. The auto generated code looks fine and has the correct collection created, however I still get the error, Paper Forms Barcode error "Your script uses objects from a non-existent collection".
I'm not sure what is wrong and I don't know how to fix it. Anyone else run into this?You will need to create a shared folder in Dropbox, then populate that with what ever folders you need to organize the files. It appears the DropBox app,will not handle this, but you can do, it by logging in to you account via Safari. Once the folders are created, they will show up in the app. Likewise with designating the folders as shared. Anyone you wish to share with will need a Dropbox account. (using the public folder will not work since links out it are for files only, not folders. An odd restriction, but it is what it is).
IF you have copies of the files on a PC, you will find that will be the easiest place to upload them from. If they are only in iBooks on the iPad, you will need to synch and use the file management function to copy them off. not sure if you can synch them back over to DropCopy within iTunes (never tried it).
DEpending on your needs, a couple of apps to look into are iCab Mobile (a browser), and GoodReader (doc viewing and management app). Both integrate well with DropBox. -
Hard drive loosing space every time I do a imovie project
Hi,
It seems like every time I do a imovie project, I lose 1 gig or so of space on my hard drive. I've tried looking in my files to see where this is happening. I can't find anything. I'm afraid to just start deleting stuff.I don't even know what most of the things in "library" are.
Please help, John.Hi Templeton,
I complete the project. In other words, I burn a dvd, throw the iMovie project in the trash, throw the
iDVD project in the trash, and empty the trash.
I also have a problem with iMovie. When I throw clips in the trash and then empty the trash, it doesn't always free up space on the hard drive. This usually happens when it is really important to free up enough space on the hard drive to actually burn the DVD. It is verrrry frustrating!!! -
[svn] 656: Added a short readme explaining how to use the Eclipse projects.
Revision: 656
Author: [email protected]
Date: 2008-02-26 09:38:38 -0800 (Tue, 26 Feb 2008)
Log Message:
Added a short readme explaining how to use the Eclipse projects.
Added Paths:
flex/sdk/trunk/development/eclipse/readme.txtRevision: 656
Author: [email protected]
Date: 2008-02-26 09:38:38 -0800 (Tue, 26 Feb 2008)
Log Message:
Added a short readme explaining how to use the Eclipse projects.
Added Paths:
flex/sdk/trunk/development/eclipse/readme.txt
Maybe you are looking for
-
How can I hide the extension in multiple pdf files?
I make a lot of PDF files and would like to know if there is a way to hide the extensions without using the 'Finder - Preferences - Advanced' tick box method. It is very time-consuming doing this for every file.
-
I have many songs in my itunes library that were purchased by me that did not convert to my new email address when I moved. How can I get them to play?
-
SSRS 2012 service application error in sharepoint 2010
Hi, I have installed MS SQL SERVER 2012 enterprise edition and sharepoint 2010 SP2 standalone as i want to learn a few things. Everyting went smooth upto the point when i wanted to configure a Create the Reporting Services Service application in sha
-
JPY Currency - Decimal Notation in SMARTFORMS
When outputing an amount field how do you ensure the correct number of decimal places is displayed in smartforms?
-
Field lengnth is more than 60.....
Hi Gurus, there is one field VAKEY from KONP table which is having the length is 100, how we can create an info object in BW side? BW will alllow max of 60 length, in this case how we can solve this issue, if any routine is requires please provide me