Page 1 of 1
Need Help Embedding S9Y in Existing Web Page
Posted: Mon Apr 02, 2007 11:13 pm
by shuttleboy
I'm a very new s9y user (about 2 days old) and I'm trying to use s9y with an existing web page I take care of. I've got a 3-column web page with a center column that changes frequently based on current events. I've successfully installed s9y and I've got it working very well as an embedded part of my web page until I went over 16 entries.
Uh oh, I hadn't thought about what to do for page 2, page 3, etc... of my s9y entries. And I guess this will also affect the monthly archives. As of now, the first 16 entries look great, but when I click on "next page". I go to an unformatted page. How do i specifiy a container for archived pages?
Here's a link to the web page:
http://www.rockledgesoccerclub.org/zhome.php
I would appreciate any help, guidance and/or ideas to make this work.
Thanks in advance!
Kevin
Re: Need Help Embedding S9Y in Existing Web Page
Posted: Tue Apr 03, 2007 10:02 am
by garvinhicking
Hi!
Did you read all the embedding docs on
www.s9y.org?
What you need to do is set your indexFile s9y config option to your custom PHP file and make sure that file is inside the same directory. Then you need to turn on the "Embed" option as well (which you obviously already seem to have).
Your custom indexFile will take care of including the "real" index.php file and also make sure the rest of your content is emitted. This will then be valid for all follow-up pages of s9y.
HTH,
Garvin
Re: Need Help Embedding S9Y in Existing Web Page
Posted: Tue Apr 03, 2007 1:08 pm
by shuttleboy
Thanks for the reply! From what I've read, you do a great job taking care of this product.
garvinhicking wrote:
Your custom indexFile will take care of including the "real" index.php file
Can you give me an example of a custom indexFile (or point me to it on s9y.org)?
Thanks, Kevin
Re: Need Help Embedding S9Y in Existing Web Page
Posted: Tue Apr 03, 2007 1:13 pm
by garvinhicking
Hi Kevin!
Can you give me an example of a custom indexFile (or point me to it on s9y.org)?
Yes, there are these examples:
http://www.s9y.org/55.html#A2
And even more examples can be found if you search this forum for "indexFile". There should also be longer threads where I tried to explain more about the embed option
Best regards,
Garvin
Posted: Wed Apr 04, 2007 4:33 am
by shuttleboy
Thanks for the help Garvin. I did read the documentation, but tried to take the 'easy' way and skipped the whole indexFile approach. I went back and used the indexFile approach and I think it looks pretty good.
http://www.rockledgesoccerclub.org/serendipity/
My next step is figuring out how and where to add a search feature and categories. I don't want to give up the entire right column and there's not enough room in the main column.
I think I saw somewhere that you can embed parts of s9y in your own web page - thinks like the categories selector. I'll start work on that in a few days.
Regards,
Kevin