[Zope] Title or ID question
Hi All, this may be a simple question, and I'm still trying to get to grips with Plone so I hope you can help. I want to add the page title into a Plone Document, and also a Zope Page Template. I know in DTML is just a case of inserting the following line: But I'm unsure of how to do it in ZPT and Plone Document. Hope you understand my question and can help. All the best Phil smime.p7s Description: S/MIME Cryptographic Signature ___ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope-dev )
[Zope] DTML problem
I have a problem writing a DTML page. The page will be used to submit data to an SQL database, and the page itself is working great, however I get all of my users to login via an LDAP server using LDAPUserFolder. Once logged in the users can complete a form, click submit and the data is stored (along with their userID and date and time). Problem is, I also want to store the full name (or CN attribute in LDAP tree). I know in ZPT I can use Logged in as: color=#00>replace cn and this works great but I cannot manage to work it out in DTML. Below is my page code (Hope you can help!) Thanks Phil http://www.w3.org/1999/xhtml"; xml:lang="en" lang="en" metal:use-macro="here/main_template/macros/master" i18n:domain="plone"> action="add_stu_modules_method" enctype="multipart/form-data"> fmt=fCommon>"> align="center"> bgcolor="#D6DBDF">Submit Module Choices class="standard">Choice 1 APC101 - Accounting, Planning and Control BUS999 - Marketing & Business Enterprise HRM121 - Human Resource Management SIM222 - Strategy and International Management PSY666 - Psychology LAW421 - Law ADM555 - Administration TEC834 - Technical class="standard">Choice 2 APC101 - Accounting, Planning and Control BUS999 - Marketing & Business Enterprise HRM121 - Human Resource Management SIM222 - Strategy and International Management PSY666 - Psychology LAW421 - Law ADM555 - Administration TEC834 - Technical begin:vcard fn:Phil Beardmore n:Beardmore;Phil org:University of Sunderland;Sunderland Business School email;internet:[EMAIL PROTECTED] title:Senior IT/Network Officer tel;work:0191 515 3436 tel;cell:07766805820 version:2.1 end:vcard ___ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope-dev )
[Zope] UserFolder problem
Hi All, hope you can help... I have a problem trying to use the LDAPUserFolder product. Basically I have a site named www.myname.com, and the site is Plone powered. I have a normal UserFolder at the top level folder which holds the members who have manager roles etc. On the site I have a folder called "Staff" and a folder called students. Now for LDAP. I have an Ldap server which has a tree called Business, then under the tree are two more subfolders (called staff and student). I need to get the staff folder of the site authenticating against the staff tree in LDAP. So I go into the staff folder, add a LDAPUserFolder and set the settings up correctly. I then navigate to the staff folder and make the pages viewable to only members, managers and authenticated users. Thing is, when I try and view the page I am asked to login, but it automatically uses the root acl_users folder, and not the one in the "staff" folder. So, the page re-drects you to http://myname.com/login_form which doesnt work with the LDAP usernames etc, but I know LDAP is definately working because If I point to http://myname.com/staff/login_form it works. Is there any way of setting which userfolder plone looks at? Many thanks for your time. Phil begin:vcard fn:Phil Beardmore n:Beardmore;Phil org:University of Sunderland;Sunderland Business School email;internet:[EMAIL PROTECTED] title:Senior IT/Network Technician tel;work:0191 515 3436 tel;cell:07766805820 version:2.1 end:vcard ___ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope-dev )
[Zope] Re: Password Protection
Hi Guys, still cant get it to work. Is it okay to have multiple ACL_users folders? Basdically I want to grant access to Folder A to all users in one tree of our LDAP server, then grant access to Folder B to all users in another Tree. I can get the folder to be password protected, so they need to login to access the pages, but it always seems to use the acl_users folder at the root of the site. Hope I make sense... Thanks Phil Beardmore wrote: This may be a really simple thing to do (but I'm a bit stuck and searched the web but found no answers). I have a Plone site working great. I have a folder which I wish to password protect (and all of the data in the folder). Thing is, I want to use our LDAP server for authentication. I have the site setup as normal with an ACL_users folder. I then have a folder called "protected". In this folder I have added a LDAPUserFolder object and linked it with our main LDAP server. Question is, how do I use this LDAPUserFolder to provide authentication for the "Protected" folder? Thanks begin:vcard fn:Phil Beardmore n:Beardmore;Phil org:University of Sunderland;Sunderland Business School email;internet:[EMAIL PROTECTED] title:Senior IT/Network Technician tel;work:0191 515 3436 tel;cell:07766805820 version:2.1 end:vcard ___ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope-dev )
[Zope] Password Protection
This may be a really simple thing to do (but I'm a bit stuck and searched the web but found no answers). I have a Plone site working great. I have a folder which I wish to password protect (and all of the data in the folder). Thing is, I want to use our LDAP server for authentication. I have the site setup as normal with an ACL_users folder. I then have a folder called "protected". In this folder I have added a LDAPUserFolder object and linked it with our main LDAP server. Question is, how do I use this LDAPUserFolder to provide authentication for the "Protected" folder? Thanks begin:vcard fn:Phil Beardmore n:Beardmore;Phil org:University of Sunderland;Sunderland Business School email;internet:[EMAIL PROTECTED] title:Senior IT/Network Technician tel;work:0191 515 3436 tel;cell:07766805820 version:2.1 end:vcard ___ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope-dev )
[Zope] TAL/SQL Problem
Hi, hope you can help. We are currently linking a webpage to an SQL database and are pulling in information via the tal:replace function. This is working extremely well however one of our SQL fields is comma deliminated, and we want it to appear as a list. We have accomplished this by using the following code: Interests Interests goes here This works well, and each item of text is displayed as a list item. Only problem we have, is we want to be able to display the SQL text as the link name, but instead each link has the same link text which is the whole of the SQL string. E.g. The text in the interests field is: Swimming,Badminton,Ice Hockey The code seperates the text via the comma, and displays a list item for each activity. Only problem is, the link text for each activity is the same (Swimming,Badminton,Ice Hockey ). Anyone got any ideas? Hope you can understand what I am after. An example page is at: http://lash.sunderland.ac.uk/business/organisationandstaff/test/detail_html?id=10 Thanks Phil begin:vcard fn:Phil Beardmore n:Beardmore;Phil org:University of Sunderland;Sunderland Business School email;internet:[EMAIL PROTECTED] title:Senior IT/Network Technician tel;work:0191 515 3436 tel;cell:07766805820 version:2.1 end:vcard ___ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope-dev )