Support

Home Forums Community Forum EE4 Table View add-on: click on event title to register

EE4 Table View add-on: click on event title to register

Posted: January 8, 2015 at 1:13 pm

Viewing 3 reply threads


Jonathan

January 8, 2015 at 1:13 pm

I think people’s tendency is to click on the title of something to find out about it, so having to scan across to click on the word “Register” is not ideal. I know I shouldn’t edit the core but this is something simple which may assist others who have the same opinion. I wonder if it could possibly be an option in the next version.

In espresso-events-table-template.template.php change:


<td class="event_title event-<?php echo $post->ID; ?>"><?php echo $post->post_title; ?></td>

to


<code><td class=&quot;event_title event-<?php echo $post->ID; ?>&quot;><?php echo &#039;<a href=&quot;&#039;.$registration_url.&#039;&quot;>&#039;.$post->post_title.&#039;</a>&#039;; ?></td></code>


Jonathan

January 8, 2015 at 1:15 pm

I meant this to be the “to” code, sorry:

<code><td class="event_title event-<?php echo $post->ID; ?>"><?php echo '<a href="'.$registration_url.'">'.$post->post_title.'</a>'; ?></td></code>


Jonathan

January 8, 2015 at 1:19 pm

Weird. I’ll try again but replace out the tag symbols.

*LT*td class="event_title event-*LT*?php echo $post-*GT*ID; ?*GT*"*GT**LT*?php echo '*LT*a href="'.$registration_url.'"*GT*'.$post-*GT*post_title.'*LT*/a*GT*'; ?*GT**LT*/td*GT*

This really wasn’t worth clogging up your forum with 🙂


Dean

January 9, 2015 at 2:10 am

Thanks for posting that and sorry about the syntax highlighter, it has a mind of its own… which is why we often post code snippets to Github Gists or Pastebin.

Viewing 3 reply threads

The support post ‘EE4 Table View add-on: click on event title to register’ is closed to new replies.

Have a question about this support post? Create a new support post in our support forums and include a link to this existing support post so we can help you.

Event Espresso