Discussion:
ECLecture Instructor Link Not Working
Angela Wong
2009-09-11 15:13:34 UTC
Permalink
Hi,

I am currently using Plone 3.2.3 and ECLecture 1.2.1. I am having
some issues with the instructor link from ECLecture. Here is the
source code for the table rendered in Plone. I entered in jdoe (a
user in Plone) as an instructor and it came up as Jane Doe. So it is
taking the user name and translating it into the full name but it is
not linking to Jane Doe's profile for some reason:

<tr>
<th>Instructor</th>
<td>
<a>Jane Doe</a>
</td>
</tr>


For some reason, tal:attributes="href python: mtool.getHomeUrl
(userid)" is not working. Here are the codes that create the table
row above:

<tal:if condition="userid">
<a href="#"
tal:attributes="href python: mtool.getHomeUrl
(userid)"
tal:content="python: mtool.getMemberInfo(userid)
and mtool.getMemberInfo(userid)['fullname']
or userid">
The instructors' fullnames or user IDs
</a><span tal:condition="not: repeat/userid/end"
tal:replace="string:, "/>
</tal:if>


Does anyone know how to solve this issue? Any help or advise would
be most appreciated.

Thanks so much,
Angela
Mario Amelung
2009-09-26 21:24:57 UTC
Permalink
Hi Angela,
Post by Angela Wong
I am currently using Plone 3.2.3 and ECLecture 1.2.1. I am having
some issues with the instructor link from ECLecture. Here is the
source code for the table rendered in Plone. I entered in jdoe (a
user in Plone) as an instructor and it came up as Jane Doe. So it is
taking the user name and translating it into the full name but it is
[...]
Does anyone know how to solve this issue? Any help or advise would
be most appreciated.
Your user jdoe needs a user folder (aka home folder). Home folder
creation in Plone 3.2 and later is disabled by default. Please got to
»Site Setup → Security« and check the option »Enable User Folders«. A
home folder will be created when a user logs in. After this the above
mentioned link will work fine.

Best wishes,
Mario
--
Dipl.-Wirtsch.-Inf. Mario Amelung <***@iws.cs.uni-magdeburg.de>
Otto-von-Guericke-University Magdeburg WDOK Research Group
Loading...