Forum

Thread tagged as: Question, Events

Events App (or any other Perch app) Help attribute

I'm looking to work with perch:events. I copied the event.html code to my own template. I'm looking to add some help text under the "Name" and "Description" fields, but it doesn't get output to the Events admin page. Is it not possible to modify these "app-core" input fields?

<h2 class="summary"><perch:events id="eventTitle" help="Help text goes here."  /></h2>
<!-- and so on -->
Nicholas Nelson

Nicholas Nelson 0 points

  • 6 years ago
Rachel Andrew

Rachel Andrew 394 points
Perch Support

The Master Template for events is event.html, you need to update that template if you want to make changes.

Copy the templates to perch/templates/events first.

https://docs.grabaperch.com/addons/events/template-tags/

Also make sure you are running the latest version of Events.

Hmm Still doesn't seem to be working.

From Diagnostics

Perch: 2.8.4, PHP: 5.6.2, MySQL: 5.5.38, with PDO
Server OS: Darwin, apache2handler
Installed apps: content (2.8.4), assets (2.8.4), categories (2.8.4), perch_events (1.9.2)
App runtimes: <?php $apps_list = array( 'content', 'categories', 'perch_events', );

Events page function

perch_events_custom(array(
    // 'template' => 'screening.html',
    'filter'=>'eventDateTime',
    'match'=>'gte',
    'value'=>date('Y-m-d'),
    'sort'=>'eventDateTime',
    'sort-order'=>'ASC',
));
Rachel Andrew

Rachel Andrew 394 points
Perch Support

I need to see your template.

Okie Dokie

<div class="vevent">
    <h2 class="summary"><perch:events id="eventTitle" type="text" label="Name / Title" help="Help" /></h2>

    <p class="dtstart"><span class="value-title" title="<perch:events id="eventDateTime" format="c" />"><perch:events id="eventDateTime" format="%c" /></span></p>

    <div class="description"><perch:events id="eventDescHTML" type="textarea" textile="true" editor="markitup" encode="false" /></div>

    <p class="category"><perch:events id="category_names" encode="false" /></p>

    <perch:if exists="image">
        <img src="<perch:events id="eventImage" type="image" label="Image" bucket="event-assets" width="1350" help="Optional Image, please no wider than 1340px"  />" alt="<perch:events id="eventTitle" />" />
    </perch:if>
</div>
Drew McLellan

Drew McLellan 2638 points
Perch Support

In some of these older apps, the fixed fields aren't under full template control. That's what you're seeing here.

Alrighty, thanks!