Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#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

#25 2007-01-28 04:44:59

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

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

not currently. You can pay for the upgrade :)


Offline

#26 2007-01-28 12:38:37

nardo
Member
From: tuvalahiti
Registered: 2004-04-22
Posts: 743

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

what was the thinking behind the ‘duplicate’ event name and description? i.e. the article & the event can have different names & bodies

not a critique, just curious!

Offline

#27 2007-01-28 14:02:26

nardo
Member
From: tuvalahiti
Registered: 2004-04-22
Posts: 743

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

is there a way to output all event categories (linked) ?

Offline

#28 2007-01-28 15:04:23

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

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

Hi nardo,

<txp:category_list type="event" link=1 />

Offline

#29 2007-01-28 22:24:26

nardo
Member
From: tuvalahiti
Registered: 2004-04-22
Posts: 743

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

thanks rick

another question re: categories…

if u create an event subcategory (e.g. “Over 35s”, which has a parent event category “Football”) is it possible to output all children when specifying a parent?

e.g. <txp:zem_event_list category="Football" /> would preferably output all events in the “Football” category, as well as those in the subcategories “Over 35s”, “Under 15s”, etc etc

this may not be desired behaviour for some/many users – so an attribute children_categories=1 might be the go (if the above isn’t possible at present)

Offline

#30 2007-01-28 22:37:12

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

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

nardo

I’m just now getting my first close look at category behaviours, I don’t really have a good answer to your questions. I don’t think the capability you describe is available without further development or a seperate plugin though.

Offline

Board footer

Powered by FluxBB