[support] Why would one role be able to click collapsible fieldsets....and another role couldn't?

Neil Coghlan neil at esl-lounge.com
Wed Oct 27 19:05:16 UTC 2010


Thanks for the suggestion Dave. The html is fine. I've stripped my tpl 
template back to ONLY this fieldset and the same thing happens....admin 
role sees clickable link, lower role sees red unclickable text.

the entire content of my tpl file is now:

<fieldset class="collapsible collapsed">
<legend>View Map (click to open)</legend>

<img style="margin:2px;" 
src="http://maps.google.com/staticmap?center=<?php print 
$node->field_team_coordinates[0]['view'] 
?>&zoom=15&size=240x250&markers=<?php print 
$node->field_coordinates[0]['view'] ?>,midyellow&key=123456" border="0">

</fieldset>

it's almost as if the lower roles don't have access to that field, but I 
don't have any field access modules operating. Is there any reason why 
javascript wouldn't be working for those roles? The odd thing is, when I 
use web dev firefox add-on to disable javascript, the fieldset is open 
by default so I don't think that's the problem either.

*slowly going crazy*

On 27/10/2010 15:37, Metzler, David wrote:
> In my experience the most common cause is invalid HTML, specifically
> unclosed tags and such.  Run your page through the W3C validator to
> check.
>
> Dave
>
> -----Original Message-----
> From: support-bounces at drupal.org [mailto:support-bounces at drupal.org] On
> Behalf Of Neil Coghlan
> Sent: Wednesday, October 27, 2010 11:01 AM
> To: support at drupal.org
> Subject: [support] Why would one role be able to click collapsible
> fieldsets....and another role couldn't?
>
> I know the answer to this is blindingly obvious but I've been very deep
> in the drupal forest in the last few weeks and can't see any individual
> trees anymore!
>
> High role (admin!) can see clickable link which expands a fieldset.
> Log out
> Log in as any other role - link has turned into red text, no link, can't
> expand.
>
> is it something on the permissions page that would do this?
>
> it's not my template...I do have a couple of php conditionals wrapping
> the fieldset but it's nothing to do with roles
>
> <?php if ($node->field_team_coordinates[0]['value']) : ?>  <?php if
> ($page != 0): ?>
>
> 1. only show fieldset if field is filled out 2. only show fieldset on
> node view, not on index pages, teasers, etc.
>
> what could be un-hyperlinking the fieldset?
>
> Neil
> --
> [ Drupal support list | http://lists.drupal.org/ ]
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.drupal.org/pipermail/support/attachments/20101027/a68d1c49/attachment.html 


More information about the support mailing list