Events Made Easy › Forums › How do I … › New template_id feature
Tagged: template_id
- This topic has 5 replies, 2 voices, and was last updated 11 years, 9 months ago by
Franky.
-
AuthorPosts
-
Sun 12 Jan 2014 at 20:30 #44120
Anonymous
InactiveFranky,
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?
Sun 12 Jan 2014 at 22:16 #51031Franky
KeymasterJust 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?
Mon 13 Jan 2014 at 04:10 #51032Anonymous
InactiveYes, 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=Mon 13 Jan 2014 at 04:21 #51033Anonymous
InactiveAlso, 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], #oMon 13 Jan 2014 at 07:03 #51034Franky
KeymasterAre you sure the update went OK?
Mon 13 Jan 2014 at 20:04 #51035Franky
KeymasterOk, the truncating part is fixed here (stupid field in the database was declared as tinytext, should’ve been just text):
-
AuthorPosts
- The forum ‘How do I …’ is closed to new topics and replies.