Page 1 of 1

Formatting Javascript Output in Staticpages

Posted: Sat Mar 15, 2008 7:07 pm
by oroboros
It's possible that I'm just stupid and and missing something obvious, but I need some help... :)

I've gotten the rss-to-javascript plugin to work on my staticpage, it shows up in a table like I want it to. The problem is that it breaks my regular formatting and substitutes its own.

How can I change the look of the output?

I'm also not tied to using the rss to javascript plugin to display the content, so if there's another solution I'm all about it. What I need to do is this:

Display the headline and first 20 or so words of one of my s9y blog entries, in a specific category, inside a table on a staticpage. The category will be updated with new entries every day, otherwise i would just manually update the text inside the table. I need the look of the displayed content to match the look of other static content on the page.

Thanks in advance.

Re: Formatting Javascript Output in Staticpages

Posted: Mon Mar 17, 2008 10:51 am
by garvinhicking
Hi!
the rss-to-javascript plugin
The what plugin? Never heard of it. Maybe the serendipity_event_backend plugin? That one can only be changed with CSS coding...

It would maybe help if you tell us your URL. :)

The need you have actually seems to cry for simple smarty template coding. This involves some coding skills, but then you can easily use the function {serendipity_fetchPrintEntries} (see http://www.s9y.org/78.html) to adapt the look.

Regards,
Garvin

thanks for the reply

Posted: Tue Mar 18, 2008 6:03 am
by oroboros
The URL is: justgetthere.us/blog

Don't make too much fun of my bulky code, I'm still learning :-P

I'd really just like to be able to call parts of blog entries within tables. For example:

::Table header::
:Table cell (call blog entry headline):
:Table cell (call image used in blog entry):
:Table call (call first 20 words of blog entry):
::Table end::

Ideally, the parameters would be set for all the calls so that it would show the most recent entry in a specified category.

I know that this sort of thing is possible, I think I'm just too dense to figure out how to get smarty to do this within a staticpage.

Thanks for your help.

PS - the way I am doing it now is through feedburner.

Re: thanks for the reply

Posted: Tue Mar 18, 2008 10:13 am
by garvinhicking
Hi!

Yeah...the table formatting would definitely require you to get famiilar with the Smarty API and the URL I mentioned. It's not really hart once you get the hang of it, but the first steps might take you some time.

So if your alternate feedburner solution is fine with you, I'd suggest you to keep it that way?

Regards,
Garvin