External pages

Random stuff about serendipity. Discussion, Questions, Paraphernalia.
Post Reply
israelp
Regular
Posts: 7
Joined: Tue Feb 26, 2008 3:55 pm

External pages

Post by israelp »

Hi; Since the content is dynamically generated, how do I create a link to an external html page. And how insert Google chatback code into the front page?

Thank you

israelp
judebert
Regular
Posts: 2478
Joined: Sat Oct 15, 2005 6:57 am
Location: Orlando, FL
Contact:

Post by judebert »

It's dynamically generated from the template, so you could modify it.

However, there are easier ways to add links.

If the sidebar is a good place for your links, just go to "Configure Plugins" on your admin page. Then add a new sidebar plugin: HTML Nugget. In its configuration, you can type any HTML you like. Even Google's AdWords code.

You can put more than one nugget in the sidebar. You can put more than one link in a nugget -- any HTML you want, in fact.

If you want some HTML on the top or bottom of the page, you can use an event plugin: HTML Nugget on Page. It's the same as the sidebar plugin, but it allows you to add HTML on the page -- even in the <head>.

If you want something like advertisements sprinkled between the entries, you're looking for the event plugin "Markup: Include entry data/templates/blocks". This allows you create "blocks" of HTML from your admin interface, then add them manually to entries. You can also configure it to put a random block between every n entries on the front page.

If you still want to modify the HTML directly, the page top and bottom are in index.tpl. The entries are printed in a loop in entries.tpl. These are in your template's subdirectory under the templates/ directory. If your theme doesn't override them, the one from templates/default/ is used -- your best course is to copy templates/default/entries.tpl (or whatever is missing) to templates/your_template/ before modifying it.
Judebert
---
Website | Wishlist | PayPal
Post Reply