- This topic has 5 replies, 2 voices, and was last updated 10 years, 10 months ago by .
Viewing 6 posts - 1 through 6 (of 6 total)
Viewing 6 posts - 1 through 6 (of 6 total)
- The forum ‘How do I …’ is closed to new topics and replies.
Events Made Easy › Forums › How do I … › New template_id feature
Tagged: template_id
Franky,
I’m so thankful you’ve implemented this feature. However, I’m having a little trouble getting it to work. Perhaps I’m doing something wrong. The shortcode I am using is the following:
[events_list scope=future limit=1 template_id=1]
My template is the following:
<p class="impact-text-large" style="color: white; text-align: center;">[events_if tag='#_IS_ONGOING_EVENT' value='1']Current[/events_if][events_if tag='#_IS_ONGOING_EVENT' value='0']Next[/events_if] Meeting:
#_EVENTNAME </p>
The result that I am getting is my default events list as set in my settings event page.
Also, I noticed that it somehow truncated my original template significantly upon saving. Is there a character limit set for that field somehow?
Just tested with your shortcode and your template: works fine here with 1.2.0
Does your id match the template ID you created?
Also: I don’t think there’s a limit, so what was the original template?
Yes, definitely truncating my template. Here it is:
<p class="impact-text-large" style="color: white; text-align: center;">[events_if tag='#_IS_ONGOING_EVENT' value='1']Current[/events_if][events_if tag='#_IS_ONGOING_EVENT' value='0']Next[/events_if] Meeting:
#_EVENTNAME </p>
<div class="impact-text" style="color: white; text-align: center;">#_TOWN</div>
<div class="impact-text" style="color: white; text-align: center;"><i>#_EVENTCATEGORIES</i></div>
It is cutting if off after the first <div class=
Also, it keeps returning the default events list format no matter what I do.
I created a second template, which ended up with a template id of 2. I called the following shortcode: [events_list scope=future limit=1 template_id=2]
, but all I’m getting is the default events list!
The second template I designed was the following code:
#_{M j}[events_if tag="#ESC_{j M Y}" notvalue="#ESC@_{j M Y}"]-[events_if2 tag="#ESC_{M}" notvalue="#ESC@_{M}"]#@_{M }[/events_if2]#@_{j}[/events_if], #o
Are you sure the update went OK?
Ok, the truncating part is fixed here (stupid field in the database was declared as tinytext, should’ve been just text):