Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#13 2007-01-25 05:19:11

zak
New Member
Registered: 2007-01-24
Posts: 2

Re: [plugin] [ORPHAN] zem_event [flexible integrated event management]

Thanks for the response,

Fixed the publishing issue. One remaining problem. When embedding the form zem_event_display in a page, “<txp:output_form form=“zem_event_display” />”, I get the following error:

tag_error <txp:zem_event_name label=“Event” wraptag=”“ /> -> Warning: array_key_exists(): The second argument should be either an array or an object on line 550

tag_error <txp:zem_event_name label=“Event” wraptag=”“ /> -> Textpattern Notice: unknown_field: name on line 551

Using Textpattern 4.0.4

Thanks again for your patience.

Offline

#14 2007-01-25 19:38:10

dkruitbosch
New Member
Registered: 2004-12-17
Posts: 9

Re: [plugin] [ORPHAN] zem_event [flexible integrated event management]

Hi,

Did some further testing. I created my first event. Everything seems OK. Next I created a new article and I noticed that all the ‘event’ fields contained the data for the event I just created before. When I clear all the event fields, I get a normal event. But whenever I create a new article, the event fields are always filled with my latest created event.

Any ideas?

Regards,

Danny

Offline

#15 2007-01-25 22:20:00

rsilletti
Moderator
From: Spokane WA
Registered: 2004-04-28
Posts: 707

Re: [plugin] [ORPHAN] zem_event [flexible integrated event management]

I am not having much luck with txp:zem_event_categories /, I’ve tried it in both a page template and an article form with no result. I’m using it without attributes as I would txp:category_list, and I am assuming that it should render an event category list. I have two event categories defined and they are both being recognized with other tags and usage?

Offline

#16 2007-01-25 23:27:00

squaredeye
Member
From: Greenville, SC
Registered: 2005-07-31
Posts: 1,495
Website

Re: [plugin] [ORPHAN] zem_event [flexible integrated event management]

zak, you’re using the tag incorrectly.
You need to use zem_event_list as a single or wrap tag.
as a single tag it displays zem_event_display

as a wrap tag, you can put the contents of zem_event_display inside it. (similar to how zem_contact works)

dkruitbosch,
that seems like a browser issue? I don’t have that problem. you may need to check your preferences?

rsilleti,
zem_event_categories needs to be displayed from within the zem_event_list tag (similarly to zaks problem above).
you can think of zem_event_list as a new article tag in many respects. The categories will not display on their own, they need the loop of zem_event.

For all of you, here is an example of one of my pages: more to come:

<txp:if_section name="zem_event_list">
	<div id="content">
	<txp:if_individual_article>
		<txp:article status="live" form="zem_event_new" limit="1" />
		<txp:else />
			<h2 class="divider">[txp:zem_event_list limit="10" /]</h2>
			<ul class="event_post">
				<txp:zem_event_list limit="10" />
			</ul>

<h2 class="divider">[txp:zem_event_list date_from="now" date_to="+2 weeks" /]</h2>
			<ul class="event_post">
				<txp:zem_event_list date_from="now" date_to="+2 week" />
			</ul>			

<h2 class="divider">[txp:zem_event_list category="important" /]</h2>
			<ul class="event_post">
				<txp:zem_event_list category="important" />
			</ul>



			<h2 class="divider"><a href="/zem_event_month">Look at the Month</a></h2>
	</txp:if_individual_article>
	</div><!--/content-->
</txp:if_section>

Offline

#17 2007-01-26 01:13:32

rsilletti
Moderator
From: Spokane WA
Registered: 2004-04-28
Posts: 707

Re: [plugin] [ORPHAN] zem_event [flexible integrated event management]

I see, Thanks
For example, and the latter of the two is not intended as a design suggestion, but merely for the sake of argument; both of these tag setups behave as if the tags contained in zem_event_list were a form, such as you would use with linklist.

Each tag is wrapped in a p tag:

<txp:zem_event_list>
<txp:zem_event_categories wraptag=“p” />
<txp:zem_event_name wraptag=“p” />
<txp:zem_event_time wraptag=“p” />
</txp:zem_event_list>

Each tag is wrapped in a p tag, each recursion of the contained tags in an li tag, the whole list is wrapped in a ul tag.

<txp:zem_event_list wraptag=“ul” break=“li” >
<txp:zem_event_categories wraptag=“p” />
<txp:zem_event_name wraptag=“p” />
<txp:zem_event_time wraptag=“p” />
</txp:zem_event_list>

Offline

#18 2007-01-26 13:49:57

squaredeye
Member
From: Greenville, SC
Registered: 2005-07-31
Posts: 1,495
Website

Re: [plugin] [ORPHAN] zem_event [flexible integrated event management]

rsilletti,
Both of these are great examples. Its early, I’m afraid I don’t get your argument, could you elaborate? And semantically smart.
My own examples have yet to move toward any real example of thinking :) I’ve more just tried to get things out on the page for the sake of testing the plugin.
If you’re interested in contributing either styling or coding I WOULD LOVE IT! :)


Offline

#19 2007-01-26 14:41:29

squaredeye
Member
From: Greenville, SC
Registered: 2005-07-31
Posts: 1,495
Website

Re: [plugin] [ORPHAN] zem_event [flexible integrated event management]

I’ve added several more examples to the examples page


Offline

#20 2007-01-26 18:41:52

rsilletti
Moderator
From: Spokane WA
Registered: 2004-04-28
Posts: 707

Re: [plugin] [ORPHAN] zem_event [flexible integrated event management]

Discussion rather than argument may have been a better phrase. I’ve had a chance to look at the code for zem_event_list and the attributes available are extensive. When time permits I’ll write up a tag description and link it in to this thread. The research will give me a chance to formulate some ideas.

Perhaps a spot on Textbook for some writeups, just as a place to assemble them?

Last edited by rsilletti (2007-01-26 20:51:14)

Offline

#21 2007-01-26 20:15:01

disco_stu
New Member
Registered: 2007-01-26
Posts: 3

Re: [plugin] [ORPHAN] zem_event [flexible integrated event management]

ma_smith wrote:

dkruitbosch,
that seems like a browser issue? I don’t have that problem. you may need to check your preferences?

—————————-

It’s not just a browser issue. I have the same problem. I use Firefox for just about all my web browsing. Just to check this, I logged in to my textpattern site’s management interface for the first time ever in both Opera and IE and they both showed the event form filled with the details of the last event I entered. There’s no way these other 2 browsers could have this information locally.

Offline

#22 2007-01-27 04:33:25

rsilletti
Moderator
From: Spokane WA
Registered: 2004-04-28
Posts: 707

Re: [plugin] [ORPHAN] zem_event [flexible integrated event management]

I took the liberty of creating a spot on Textbook to link these to in the “Community Projects area”, the link to the first writeups are:

zem_event_list
zem_event_categories

I’ll add more as I go. Both technical review and contribution would be most welcome.

Last edited by rsilletti (2007-01-28 20:53:59)

Offline

#23 2007-01-27 12:45:50

squaredeye
Member
From: Greenville, SC
Registered: 2005-07-31
Posts: 1,495
Website

Re: [plugin] [ORPHAN] zem_event [flexible integrated event management]

rsilletti,
outstanding. Thank you. I appreciate you doing that.
I’m excited about getting a hold of all the different examples that are possible.

Matthew


Offline

#24 2007-01-28 01:12:17

theLostShirt
Member
From: Hjo, Sweden
Registered: 2006-02-10
Posts: 36
Website

Re: [plugin] [ORPHAN] zem_event [flexible integrated event management]

Can I change it so that Monday is the first day of the week?

Offline

Board footer

Powered by FluxBB