More Extended Properties for events

Creating and modifying plugins.
Post Reply
rj
Regular
Posts: 477
Joined: Sun Sep 10, 2006 2:53 pm

More Extended Properties for events

Post by rj »

Boy would I ever like an event plugin that would present in the editor page (along with extended properties) that would let me get rid of the date, title and footer of an article.

My immediate use is for a sub header for a few parent categories.

But it could also come in handy to place advertising or to add a little graphic or video.

I would pay for one like that! :)

RJ
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Re: More Extended Properties for events

Post by garvinhicking »

Hi!

You can already do that with custom properties.

1. Created fields like "HideTitle", "HideDate", "HideFooter" in the entryproperties plugin configuration

2. Create an entry where you insert ANYTHING inside those Hide* fields. You can insert "1", "Yes" or whatever.

3. Edit your index.tpl template. At the places where the footer etc. is emitted, you put Smarty IF-Checks around it:

Code: Select all

{if $entry.properties.HideTitle}
// do nothing here!
{else}
// here put the usual stuff to show {$entry.title}
{/if}
Rinse and repeat that for the footer and date section.

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/
judebert
Regular
Posts: 2478
Joined: Sat Oct 15, 2005 6:57 am
Location: Orlando, FL
Contact:

Post by judebert »

The include entries/templates/blocks plugin can also add advertisements or jokes to your webpage. It's configurable to which categories you want the blocks added and how often they should appear.
Judebert
---
Website | Wishlist | PayPal
rj
Regular
Posts: 477
Joined: Sun Sep 10, 2006 2:53 pm

Post by rj »

I am going to put this off for a bit... I want to see how much I can personalize each area by just using the Manage Sidebar Visibility.

I just ran into an issue there regarding presentation on the single article page which is where 4 out 5 of my traffic ends up.

I will do another message I guess on that issue.

Thank you both, I copied and saved .

RJ
Post Reply