We have setup a system where members of a web site can edit their pages and designate what categories they show up under. When a user clicks a category, they see a list of members that belong to that category.
Now some members cannot have a profile page, but they still have to appear in the list. So we made it so that we check to see if the content area is empty. If so, we list the comany via pagetitle but we do not surround it in a link. If the content area does have content, then the profile can be linked to and we wrap a link tag around it. So ifempty = no link - else link.
Now members can edit their profile and select the category they are in using Newspublisher. Leaving the content blank is the easy way to ensure that they appear in the list but are not linked to. However, Newspublisher insists that the content field is required. Is there a way to make it unrequired?
-
- 24,544 Posts
Try using the &required property with a comma separated list of the fields you want to require -- that will override the defaults -- e.g.,:
&required=`pagetitle,longtitle,introtext`
---------------------------------------------------------------------------------------------------------------
PLEASE, PLEASE specify the version of MODX you are using . . . PLEASE!
MODX info for everyone:
http://bobsguides.com/modx.html
Great thanks. Worked wonderfully.