Static Pages

Random stuff about serendipity. Discussion, Questions, Paraphernalia.
Post Reply
markw314
Regular
Posts: 17
Joined: Wed May 30, 2007 5:51 pm

Static Pages

Post by markw314 »

I'm feeling quite stupid these days. I'm trying to use the static pages plugin, but I just cannot see how to actually access the pages that I create. I'm sure I'm missing something very basic. Is there any documentation on this?

I'm not sure what I should be changing (if anything) in the permalink and URL Shorthand boxes, as well.

Thanks for any info.

Mark
yellowled
Regular
Posts: 7111
Joined: Fri Jan 13, 2006 11:46 am
Location: Eutin, Germany
Contact:

Re: Static Pages

Post by yellowled »

markw314 wrote:I just cannot see how to actually access the pages that I create.
Try installing the sidebar plugin which shows a list of static pages in the sidebar. It should give you proper links to the static pages you created.

YL
markw314
Regular
Posts: 17
Joined: Wed May 30, 2007 5:51 pm

Post by markw314 »

Great. Thanks. Do you know if there is a way to include javascript in a static page? I'm trying to put a javascript-based flv viewer in a static page. But it does not seem to include the external js file. I don't know enough about javascript to know if I can include a js file from inside the HTML, or if it needs to be in the head block.

I guess I'l poke around and find out...
yellowled
Regular
Posts: 7111
Joined: Fri Jan 13, 2006 11:46 am
Location: Eutin, Germany
Contact:

Post by yellowled »

markw314 wrote:Do you know if there is a way to include javascript in a static page? I'm trying to put a javascript-based flv viewer in a static page. But it does not seem to include the external js file. I don't know enough about javascript to know if I can include a js file from inside the HTML, or if it needs to be in the head block.
Well, how exactly are you trying to include it? Do you use a WYGIWYS editor? And what do the instructions for that js code (if there are any) say how it should be included?

YL
markw314
Regular
Posts: 17
Joined: Wed May 30, 2007 5:51 pm

Post by markw314 »

The includes are normally in the head section. It works fine when they are there, however I do not know enough about how Serendipity works (and JavaSScript) to know if includes should work in the body section.

I'm going to play around and see what I come up with.

Thanks.
yellowled
Regular
Posts: 7111
Joined: Fri Jan 13, 2006 11:46 am
Location: Eutin, Germany
Contact:

Post by yellowled »

markw314 wrote:The includes are normally in the head section. It works fine when they are there, however I do not know enough about how Serendipity works (and JavaSScript) to know if includes should work in the body section.
I'm assuming you have to include JavaScript in the head and some dummy HTML code in the body (i.e. the static page which is supposed to hold the player)? If so, you can (probably) simply include the JS in the head part of your template's index.tpl.

YL
markw314
Regular
Posts: 17
Joined: Wed May 30, 2007 5:51 pm

Post by markw314 »

D'oh! Thanks. I didn't think of that.

Thanks again...
Post Reply