Technology Tools for Ministry

Community

Web-Empowered Church User Community
All Categories > Ministry Tools > Staff Directory > Staff directory and RealUrl
Total Posts: 9 - Pages (1): [1]
Author: Søren Frandsen
Posted: Feb 06 2008 - 07:15 AM
Subject: Staff directory and RealUrl
Hi. I am very happy with the staff extension. When I put on RealUrl it however stopped working. Does any one have a code example to put in the realurl config?

Thanks
Søren
Author: Jeff Segars
Posted: Feb 06 2008 - 10:46 AM
Subject: re: Staff directory and RealUrl
Søren,
The possible RealURL configurations will depend on whether you're storing staff information in frontend user records or all in staff directory records. In the WEC Starter Package, we use a very simple configuration within the fixedPostVars, where 62 is the UID of the page where the Staff Directory lives.

CODE:

      '62' => array(
         array(
            'GETvar' => 'tx_wecstaffdirectory_pi1[curstaff]'
         ),
      ),


Hope that helps

jeff
Author: Dave Slayback
Posted: Feb 06 2008 - 11:06 AM
Subject: re: Staff directory and RealUrl
Also Søren, if you want to support the "name" of a person for the URL, that currently will not work if you associated fe_users with the staff directory. That is because there are two "name" fields and realURL cannot differeniate them. So in an upcoming version, the Staff Directory Info field will be renamed so this feature can be supported.

-Dave
Author: Søren Frandsen
Posted: Feb 07 2008 - 11:17 AM
Subject: re: Staff directory and RealUrl
Hi guys

You are fantastisc. I tried to put the code as mentioned above in my realurl config (I changed the 62), but it did not help. The link on the staff persons is unchanged example http://hd-a.dk/profiler.html?tx_wecstaffdirectory_pi1%5Bcurstaff%5D=4

But when I click, nothing happends.

I have a seperate sys folder for the staff

I hope you have an idea. Is there any information that would help you in quessing the problem? I am still a newbee to T3

Søren
Author: Søren Frandsen
Posted: Feb 11 2008 - 03:45 PM
Subject: re: re: Staff directory and RealUrl
Hi Jeff

I got it to work. Thanks guys, you are great.

By the way. You mention a new version. When is that coming?
Author: Dave Slayback
Posted: Feb 11 2008 - 04:30 PM
Subject: re: Staff directory and RealUrl
It is at least 1-2 months before we will get to it. We are busy with many other projects, and when we have the chance for a few days to work on updates, we will. If you have any features you would like to see, let us know.

-Dave
Author: Søren Frandsen
Posted: Feb 13 2008 - 03:58 PM
Subject: re: re: Staff directory and RealUrl
Hi Dave

I have tried playing a bit with having the name shown, but I cannot get it right (and I am not that good at php either)

Could you give me a hint on how and what code I should add to have the name shown in the url?

I appreciate it.

Thanks

Søren
Author: Søren Frandsen
Posted: Feb 28 2008 - 03:43 PM
Subject: re: Staff directory and RealUrl
Hi Dave

I tried inserting the following after the code you mentioned

'lookUpTable' => array(
'table' => 'tx_wecstaffdirectory_info',
'id_field' => 'uid',
'alias_field' => 'name',
'addWhereClause' => ' AND NOT deleted',
'useUniqueCache' => 1,
'useUniqueCache_conf' => array(
'strtolower' => 1,
'spaceCharacter' => '-',
),
),

But when I click on the "staff" page to have all staff listet, I get the details of the first person with uid 1. It does not list the staff, it goes directly to showing the details.

Do you know what I have done wrong?

Søren
Author: Dave Slayback
Posted: Mar 04 2008 - 11:19 AM
Subject: re: Staff directory and RealUrl
Hi Søren,

As long as you put the code above in such a way like below...

'62' => array (
array (
'GETvar' => 'tx_wecstaffdirectory_pi1[curstaff]',
'lookUpTable' => array(
...
),
),
),

And this is put in the localconf.php under 'fixedPostVars' => array( ).

However, if you are using fe_users then the 'name' will conflict. If not, this should work.

Also, you are using realURL, right? The URLs on your site look like simulated static? If so, then I would have to research that more.

If you are still having problems, if you can send me the localconf.php file and I can see if there is any obvious problems.

-Dave
Total Posts: 9 - Pages (1): [1]
You must login to post a message to this conference.