Page 1 of 1
More Extended Properties for events
Posted: Wed Jun 25, 2008 2:26 am
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
Re: More Extended Properties for events
Posted: Wed Jun 25, 2008 11:43 am
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
Posted: Wed Jun 25, 2008 3:26 pm
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.
Posted: Thu Jun 26, 2008 4:34 am
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