Digital Workshop

Welcome to the Digital Workshop Message Boards
It is currently January 10th, 2025, 5:35 pm

All times are UTC [ DST ]




Post new topic Reply to topic  [ 6 posts ] 
Author Message
 Post subject: Trigger for MasterPage?
PostPosted: September 21st, 2006, 12:58 pm 
Offline

Joined: November 8th, 2004, 5:23 pm
Posts: 279
Opus: Opus Pro 9
OS: Win 10/64
I like to check some variables on a masterpage each time a page that uses this masterpage is opened.

Which trigger is fired in this case on the masterpage? I tried it with Pre-show, but this does not work.

Thanks in advance for your help.

T.

_________________
Opus Pro 9.75, Win 10/64, 8 GB RAM, Intel(R) Core(TM) i5-3570K CPU @ 3.40GHz (4 CPUs), ~3.4GHz, NVIDIA GeForce GTX 660 Ti, Roland OctaCapture


Top
 Profile Visit website  
 
 Post subject:
PostPosted: September 22nd, 2006, 9:48 pm 
Offline

Joined: October 25th, 2004, 3:03 pm
Posts: 540
Location: Tyalgum Creek. Australia
Opus: Opus Pro Latest version 9.02 Build 16458
OS: Won 10
System: Asus laptop Intel Core i5 8 gig ram, big monitor, reading glasses
Tara

Have you tried just making a simple text box and used the insert variable function?
I know very little about masterpages but the above might be an idea. Might not either!
Hope this helps?
Cheers
Graham

_________________
Too much coffee can result in frequent toilet breaks!


Top
 Profile  
 
 Post subject:
PostPosted: September 23rd, 2006, 3:23 am 
The main restriction I find with Master Pages is that you cannot modify the MP contennts or actions when you associate a MP with a "normal" page.

MPs are really great for adding consistent elements such as navigation buttons, backgrounds, running page titles etc. They are not so great when variable (not variables) elements are involved. :)

Bear in mind that you can use several MPs in a pub, and you can "nest" MPs. This can sometimes help in complex pages.

OK, now back to your specific problem, which I hope I understand correctly. I would not use a MP to do what you want to do. I would add a frame to the page (not to the MP) and use the On Show trigger to activate the actions associated with the frame.

If your checking of the variables is complex, add a series of IF statements (or an appropriate script) to identify the specific prerequisites.

If you have a number of different prerequisites that need to be checked, design a separate frame for each check. Copy these frames to a gallery. You can then paste these back to pages as you need them.

HTH


Top
   
 
 Post subject:
PostPosted: September 25th, 2006, 8:50 am 
Offline

Joined: November 8th, 2004, 5:23 pm
Posts: 279
Opus: Opus Pro 9
OS: Win 10/64
Thanks for your replies.

I think I have to explain my problem a little bit better (sorry for my bad english):

What I want to do is this:

I have some navigation buttons on the MP. When entering a page two variables are modified: v_nextpage and v_previouspage.

I use these variables to to tell the next button and the back button on the MP to which page they should go.

Now I have two special cases:

1. The user has entered the last page of the publication. In this case I set the variable v_nextpage to "NONE".

2. The user has entered the first page of the publication. In this case I set the variable v_previouspage to "NONE".

What I want to do is to hide the next button or the back button on the MP when one of these cases appears.

So I put actions on the MP that check if one of the above variables has the value "NONE" and hide one of the buttons if this is the case.

This should happen automatically when the user enters the first or the last page of my publication.

My question was how I can trigger such an action on a MP?


T.

_________________
Opus Pro 9.75, Win 10/64, 8 GB RAM, Intel(R) Core(TM) i5-3570K CPU @ 3.40GHz (4 CPUs), ~3.4GHz, NVIDIA GeForce GTX 660 Ti, Roland OctaCapture


Top
 Profile Visit website  
 
 Post subject:
PostPosted: September 25th, 2006, 10:53 am 
Offline

Joined: October 26th, 2004, 10:23 am
Posts: 666
Location: Digital Workshop
Please see the attached example


You do not have the required permissions to view the files attached to this post.

_________________
ddww Opus Developer


Top
 Profile Visit website  
 
 Post subject:
PostPosted: September 25th, 2006, 11:28 am 
Offline

Joined: November 8th, 2004, 5:23 pm
Posts: 279
Opus: Opus Pro 9
OS: Win 10/64
Duncan Lilly wrote:
Please see the attached example


Duncan, thank you very much. This is what I was looking for. :D

T.

_________________
Opus Pro 9.75, Win 10/64, 8 GB RAM, Intel(R) Core(TM) i5-3570K CPU @ 3.40GHz (4 CPUs), ~3.4GHz, NVIDIA GeForce GTX 660 Ti, Roland OctaCapture


Top
 Profile Visit website  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 6 posts ] 

All times are UTC [ DST ]


Who is online

Users browsing this forum: No registered users and 93 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
cron
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group