Technology Tools for Ministry

Community

Web-Empowered Church User Community
All Categories > Ministry Tools > Staff Directory > Editing TEMPLATE_STAFF_SINGLE
Total Posts: 7 - Pages (1): [1]
Author: Katharina May
Posted: Oct 19 2007 - 11:39 AM
Subject: Editing TEMPLATE_STAFF_SINGLE
Hello,

I've got a problem with the display of my staff single pages which should only
display the personal details of a person.
Except for the information about each staff person also the titles of all of my
other staff directories are shown in that page.
I'm not sure what I have to edit from my template configuration shown below,
so that the staff directory titles are not displayed.
Hope that I made myself clear (I'm not so good in explaining stuff in English,
sorry). Thanks a lot for any help...

Best regards,

Katharina


Here goes my single page template section:

<snip>
<!--
=====================================================================================================
###TEMPLATE_STAFF_SINGLE### begin
=====================================================================================================
-->
<div class="tx-wecstaffdirectory-content">
<div class="tx-wecstaffdirectory-responseMsg">###RESPONSE_TEXT###</div>
<div class="tx-wecstaffdirectory-staffpage">

<table width="100%" border="1"><tr>
<td width="150" rowspan="2">
<div class="photo">
<!-- ###SHOW_PHOTO_MAIN### begin-->
###PHOTO###
<!-- ###SHOW_PHOTO_MAIN### end-->
<center>###SHOW_EDIT_BTN### ###SHOW_DELETE_BTN###</center>
</div>
</td>
<td>
<!-- ###SHOW_NAME### begin --><div class="tx-wecstaffdirectory-fieldHeaderLarge"> &nbsp;###NAME###</div><!-- ###SHOW_NAME### end --></br>
<!-- ###SHOW_POSITION_TITLE### begin --><div class="tx-wecstaffdirectory-fieldLabel">###POSITION_TITLE_LABEL###</div><div class="tx-wecstaffdirectory-fieldDescription">###POSITION_TITLE###</div><!-- ###SHOW_POSITION_TITLE### end -->
<!-- ###SHOW_ADDRESS### begin --><div class="tx-wecstaffdirectory-fieldLabel">###ADDRESS_LABEL###</div><div class="tx-wecstaffdirectory-fieldDescription">###ADDRESS###<br />###CITY###, ###ZONE### ###ZIP###</div><!-- ###SHOW_ADDRESS### end -->
<!-- ###SHOW_COUNTRY### begin --><div class="tx-wecstaffdirectory-fieldLabel">###COUNTRY_LABEL###</div><div class="tx-wecstaffdirectory-fieldDescription"> ###COUNTRY###</div><!-- ###SHOW_COUNTRY### end -->
<!-- ###SHOW_TELEPHONE### begin --><div class="tx-wecstaffdirectory-fieldLabel">###TELEPHONE_LABEL###</div><div class="tx-wecstaffdirectory-fieldDescription">###TELEPHONE###</div><!-- ###SHOW_TELEPHONE### end -->
<!-- ###SHOW_CELLPHONE### begin --><div class="tx-wecstaffdirectory-fieldLabel">###CELLPHONE_LABEL###</div><div class="tx-wecstaffdirectory-fieldDescription">###CELLPHONE###</div><!-- ###SHOW_CELLPHONE### end -->
<!-- ###SHOW_FAX### begin --><div class="tx-wecstaffdirectory-fieldLabel">###FAX_LABEL###</div><div class="tx-wecstaffdirectory-fieldDescription"> ###FAX###</div><!-- ###SHOW_FAX### end -->
<!-- ###SHOW_EMAIL### begin --><div class="tx-wecstaffdirectory-fieldLabel">###EMAIL_LABEL###</div><div class="tx-wecstaffdirectory-fieldDescription"> ###EMAIL_LINK###</div><!-- ###SHOW_EMAIL### end -->
</td></tr><tr>
<td>&nbsp;</td>
</tr></table>
<div class="fullwidth">
<!-- ###SHOW_DEPARTMENT### begin -->
<div class="tx-wecstaffdirectory-fieldLabel">###DEPARTMENT_LABEL###</div><div class="tx-wecstaffdirectory-fieldDescription">###DEPARTMENT###</div>
<!-- ###SHOW_DEPARTMENT### end -->
<!-- ###SHOW_POSITION_DESCRIPTION### begin -->
<div class="tx-wecstaffdirectory-fieldHeader">###POSITION_DESCRIPTION_LABEL###</div>
<div class="tx-wecstaffdirectory-fieldDescriptionLarge">###POSITION_DESCRIPTION###</div>
<!-- ###SHOW_POSITION_DESCRIPTION### end -->
</div>
<div class="fullwidth">
<!-- ###SHOW_BIOGRAPHY### begin-->
<div class="tx-wecstaffdirectory-fieldHeader">###BIOGRAPHY_HEADER###</div>
<div class="tx-wecstaffdirectory-fieldDescriptionLarge">###BIOGRAPHY###</div>
<!-- ###SHOW_BIOGRAPHY### end-->
<!-- ###SHOW_NEWS### begin-->
<div class="tx-wecstaffdirectory-fieldHeader">###NEWS_HEADER###</div>
<div class="tx-wecstaffdirectory-fieldDescriptionLarge">###NEWS###</div>
<!-- ###SHOW_NEWS### end-->
</div>
<div class="fullwidth">
<!-- ###SHOW_PHOTOS_ETC### begin-->
<span>###PHOTO1###</span>
<span>###PHOTO2###</span>
<span>###PHOTO3###</span>
<span>###PHOTO4###</span>
<!-- ###SHOW_PHOTOS_ETC### end-->
</div>
</div>
</div>
<div class="tx-wecstaffdirectory-spacer"></div>
<!-- ###TEMPLATE_STAFF_SINGLE### end -->
</snap>
Author: Dave Slayback
Posted: Oct 19 2007 - 12:58 PM
Subject: re: Editing TEMPLATE_STAFF_SINGLE
Hi Katharina,

To try to make sure I understand, you are seeing the "Position Title" on the Single page and you do not want it there? The easiest way to do that is to set the fields in the Flexform of the Staff Directory Plugin. Under the Fields tab, you can set the ones you want to see for the Single view. That is why you see all the ###SHOW_xyz### in the template.

It looks like you have taken the approach to edit the template and it looks like you have done that and removed the ###POSITION_TITLE###.

So likely why it shows up is that your template file is not being used but the default one is. Go to Template->Constant Editor or edit the ext+ template directly and see if you can find the following value:
plugin.tx_wecstaffdirectory_pi1 {
templateFile =
}

That templateFile needs to be set to your template, likely a value such as templateFile=fileadmin/templates/staffdir.tmpl

Let me know if this helps solve your problem or not. If this was not your problem, then if you have a URL so I could see the issue, that may help clarify what the problem is.

-Dave

Author: Katharina May
Posted: Oct 19 2007 - 01:15 PM
Subject: re: Editing TEMPLATE_STAFF_SINGLE

Thanks for your fast reply, but I guess I didn't really manage
to explain my problem correctly...

You can have a look at the my staff list here, with the diffrent staff directory
titles (Leitung, Sekretariat, etc.):
http://www.wzw.tum.de/waldinventur/index.php?id=7


and the broken single staff page right here (or just click on any link of
the staff list):
http://www.wzw.tum.de/waldinventur/index.php?id=7&tx_wecstaffdirectory_pi1[curstaff]=6


The problem ist that on the single staff page I don't want all the other existing staff
directory titles like Sekretariat, Emeritus, etc. to be displayed....

Do you know how I can get rid of them?
I would be grateful for every hint I get to solve that problem....

-Katharina
Author: Dave Slayback
Posted: Oct 19 2007 - 02:55 PM
Subject: re: Editing TEMPLATE_STAFF_SINGLE
ok, got it. What is happening is that your 'Single' view is showing the Listing view. And the Listing view shows the departments. So the Template Single is not even being called.

In looking at the code, I am not sure how it could be set. The only thing I can think of is that the Template file was edited and you accidentally took out a <!-- ###TEMPLATE_STAFF_LIST### end --> tag. Or some other tag. One way to test if this is the problem, you can comment out the setting for your custom template file in the extension template, and then use the default template.

If you are still stuck, if you have a backend login I could get temporary access to your site (email me directly please), I can diagnose and figure out the problem.

-Dave
Author: Katharina May
Posted: Oct 22 2007 - 07:58 AM
Subject: re: Editing TEMPLATE_STAFF_SINGLE
Hi Dave,

thanks so much for your offer! I mailed the login details to you.

-Katharina
Author: Dave Slayback
Posted: Oct 22 2007 - 03:17 PM
Subject: re: Editing TEMPLATE_STAFF_SINGLE
Thanks for the login info.

For those reading this in the forum, I was able to help her by email with the issue and it was a problem of multiple plugins on one page.

-Dave
Author: Katharina May
Posted: Oct 23 2007 - 01:43 PM
Subject: Editing TEMPLATE_STAFF_SINGLE
Thanks so much for the help :-)
Total Posts: 7 - Pages (1): [1]
You must login to post a message to this conference.