Professional Web Applications Themes

PHP in links being editable by Contribute - Macromedia Contribute General Discussion

I need a bit of help with Contribute editing links with PHP script in them, because currently when one of the admin girls at work tries to deactivate a link they get this message: ?you cannot perform this action in this region of the page? the link is within a cell of a table and looks like this: <a href="bookingform.php?coursecode=08-0340&coursename=WorkSafe Victoria Approved Initial Level Course for HSR's, Managers and Supervisors (5 Days)&date=Tuesdays 15th, 22nd, 29th July, 5th, 12th August&location=<?php echo $location;?>"_blank>BOOK</a> when I change the script <?php echo $location;?> to what the variable $location equals they are able to edit ...

  1. #1

    Default PHP in links being editable by Contribute

    I need a bit of help with Contribute editing links with PHP script in them,
    because currently when one of the admin girls at work tries to deactivate a
    link they get this message:
    ?you cannot perform this action in this region of the page?

    the link is within a cell of a table and looks like this:
    <a href="bookingform.php?coursecode=08-0340&coursename=WorkSafe Victoria
    Approved Initial Level Course for HSR's, Managers and Supervisors (5
    Days)&date=Tuesdays 15th, 22nd, 29th July, 5th, 12th August&location=<?php echo
    $location;?>"_blank>BOOK</a>


    when I change the script <?php echo $location;?> to what the variable
    $location equals they are able to edit the link. To give an example,
    when I change the link to this:

    <a href="bookingform.php?coursecode=08-0340&coursename=WorkSafe Victoria
    Approved Initial Level Course for HSR's, Managers and Supervisors (5
    Days)&date=Tuesdays 15th, 22nd, 29th July, 5th, 12th August&location=107
    Princes Hwy, Trafalgar"_blank>BOOK</a>


    they can deactivate the link with out a problem. Is there any reason that a
    link can?t have PHP script in it and be edited by Contribute?

    Any help with this would be greatly appreciated.


    developerStu Guest

  2. #2

    Default Re: PHP in links being editable by Contribute

    Hi,

    php scripts are identified by the tags. In the first case, the code has the
    php tag, i.e you are fetching the location value using the php script and so
    people would not be able to edit any of the regions involving php. The user
    will be able to see the php shield. In the second case, its just another link
    so the user will be able to edit the link etc as you have removed the php tag.

    Go to administer website -> edit role settings -> editing, if you give allow
    editing of forms php tags, then user will be able to delete the php shield
    shown in the html while editing.

    Thanks,
    Radhika

    radsraman Guest

Similar Threads

  1. User's Can't Create Links in Editable Regions
    By kevinreiss in forum Macromedia Contribute General Discussion
    Replies: 5
    Last Post: February 8th, 04:40 PM
  2. Size of editable regions in Contribute?
    By hopeness in forum Macromedia Contribute General Discussion
    Replies: 0
    Last Post: February 3rd, 02:54 PM
  3. Templates with non-editable links
    By bmarklyn in forum Dreamweaver AppDev
    Replies: 0
    Last Post: May 26th, 02:17 AM
  4. Contribute 2 can't make links in editable region
    By Bryan English in forum Macromedia Contribute General Discussion
    Replies: 1
    Last Post: May 9th, 01:17 PM
  5. Problems making links within editable region
    By Bryan English in forum Macromedia Contribute General Discussion
    Replies: 0
    Last Post: April 12th, 07:07 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139