Formatting Javascript Output in Staticpages

Creating and modifying plugins.
Post Reply
oroboros
Posts: 2
Joined: Fri Mar 14, 2008 4:13 pm

Formatting Javascript Output in Staticpages

Post 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.
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Re: Formatting Javascript Output in Staticpages

Post 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
# Garvin Hicking (s9y Developer)
# Did I help you? Consider making me happy: http://wishes.garv.in/
# or use my PayPal account "paypal {at} supergarv (dot) de"
# My "other" hobby: http://flickr.garv.in/
oroboros
Posts: 2
Joined: Fri Mar 14, 2008 4:13 pm

thanks for the reply

Post 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.
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Re: thanks for the reply

Post 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
# Garvin Hicking (s9y Developer)
# Did I help you? Consider making me happy: http://wishes.garv.in/
# or use my PayPal account "paypal {at} supergarv (dot) de"
# My "other" hobby: http://flickr.garv.in/
Post Reply