• Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
    Dedicated community for Japanese speakers
  • 한국 커뮤니티
    Dedicated community for Korean speakers
Exit
0

Time related conditional build

New Here ,
Mar 26, 2008 Mar 26, 2008

Copy link to clipboard

Copied

I need to create a build that will allow pages to be viewed during a certain period of time, say Friday mornings, but would not be displayed during the rest of the week. Is this possible? If so, how is it done?

Thanks in advance.

Views

422

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
LEGEND ,
Mar 26, 2008 Mar 26, 2008

Copy link to clipboard

Copied

There is nothing in the standard RH functionality to allow what you want. You don't say what output you are producing but if it is webhelp you could generate two different types of output and ensure the correct one is published for the relevant time period. You could use build tags to maintain the relevant output from the same source. It would just be something to remember to do each Friday morning.

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Mar 26, 2008 Mar 26, 2008

Copy link to clipboard

Copied

We have thought of just switching pages, that is what we are doing now actually. However I would like the switch to happen automatically.

What we are doing is offering a class at a certain time and the page we are displaying provides links to secured areas where we don't want people playing when the class is not open. Therefore, I want the link page just to say something like links are only available during class time when it is out of the appropriate time frame. And I want it to do that without having to manually replace the pages.

Does this make sense?

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
LEGEND ,
Mar 26, 2008 Mar 26, 2008

Copy link to clipboard

Copied

Just a thought....

.....you don't say which version of RH you are using but RH6 onwards has a command line prompt facility. Maybe you could setup your compile to run from the command line and then generate a batch file to run at set days/times.

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Mar 26, 2008 Mar 26, 2008

Copy link to clipboard

Copied

We are using version 7 so this option might work. How would one go about doing that?

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Mar 26, 2008 Mar 26, 2008

Copy link to clipboard

Copied

We are using version 7 so this option might work. How would one go about doing that?

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Mar 26, 2008 Mar 26, 2008

Copy link to clipboard

Copied

Sorry about the duplicate. For some reason I'm getting scripting errors with everything I do on this site.

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
LEGEND ,
Mar 26, 2008 Mar 26, 2008

Copy link to clipboard

Copied

Don't worry about the duplicate posts. They sometimes happen on these forums.

Unfortuately I was shooting from the hip with this suggestion as I only have RHX5 installed and have experience at either command line compiling or creating batch files. You could start by looking at the RH help file for details of compiling your output via the command line. Once you have that set-up, you would have to find someone with experience of creating a batch file (e.g. a developer) to write something for you to kick off the command line prompt.

Sorry I can't be of much more help. Maybe there is someone else out there in forumland who can provide further info?

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
LEGEND ,
Mar 26, 2008 Mar 26, 2008

Copy link to clipboard

Copied

Hi all

bigbrook, I'm thinking what you want could be accomplished using JavaScript to parse the times and dates, then redirecting accordingly. Not sure if you are familiar enough with JavaScript coding to not let this intimidate you, but it should be doable.

Cheers... Rick

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Mar 26, 2008 Mar 26, 2008

Copy link to clipboard

Copied

LATEST
Thanks - I will look into both options

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Resources
RoboHelp Documentation
Download Adobe RoboHelp