Displaying Slide Title in Custom Skin

@ Anton -

Hi Anton – Yes, there is

You’ll need to get your presentation data first Something like this:

var presData = ArtAPI GetPresentationData();

You’ll want to track your current slide number:

var cSlideNum = int(ArtAPI GetCurrentSlide());

Then you’ll set your text element to include the current slide title Here’s what I use (displays the course and slide title):

cTitle htmlText = ” “+presData BuiltinProperties[0] Title[0] _value+” » “+presData Slides[0] Slide[cSlideNum-1] Title[0] _value;

You’re pathing through the XML data to get to your slide title

3 Replies
Anton Gordon

Thanks Steve!

I'm having trouble getting it to update when I navigate to another page though

Heres what I've got:

var presData = ArtAPI GetPresentationData();
var cSlideNum = int(ArtAPI GetCurrentSlide());


var presTitle = presData BuiltinProperties[0] Title[0] _value;
var slideTitle = presData Slides[0] Slide[cSlideNum-1] Title[0] _value;

function updateSlide()

{

     if ( CurrentSlide text == "00")

     {
             ArtAPI Pause();
     }
     CurrentSlide text = ArtAPI GetCurrentSlide();
     Title text =" "+presTitle+"»"+slideTitle;
}
setInterval( updateSlide, 500 );

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

It works for CurrentSlide but not for the Title text!

Steve Flowers

You need to grab the slide title for the current slide within your updateSlide function As written it's only looking at it once and isn't refreshing when that function is called

var presData = ArtAPI GetPresentationData();
var cSlideNum;

var slideTitle;


var presTitle = presData BuiltinProperties[0] Title[0] _value;
function updateSlide()

{

     if ( CurrentSlide text == "00")

     {
             ArtAPI Pause();
     }
     CurrentSlide text = ArtAPI GetCurrentSlide();

     cSlideNum = int(ArtAPI GetCurrentSlide());

     slideTitle = presData Slides[0] Slide[cSlideNum-1] Title[0] _value;
     Title text =" "+presTitle+"»"+slideTitle;
}
setInterval( updateSlide, 500 );