Display Admin only info inside CMSB section
4 posts by 2 authors in: Forums > CMS Builder
Last Post: July 21, 2011 (RSS)
Hi There,
How can I display information which can only be edited by an 'admin' INSIDE a CMSB section that an 'editor' would use to edit information?
I am hoping to be able to string together info using php, for example:
I was thinking I could use a separator to display the information. So in the HTML part I could have:
Hope this makes sense!!
Thanks.
Paul.
How can I display information which can only be edited by an 'admin' INSIDE a CMSB section that an 'editor' would use to edit information?
I am hoping to be able to string together info using php, for example:
I was thinking I could use a separator to display the information. So in the HTML part I could have:
<tr>
<td colspan='2'><?php echo 'Your user number is ' . $record[usernumber] . ' and your title is ' . $record[titlename] ?>
</td>
</tr>
Hope this makes sense!!
Thanks.
Paul.
Re: [Pixels & Beats] Display Admin only info inside CMSB section
By Jason - July 20, 2011
Hi Paul,
If you are trying to output information from the record currently being edited, you can try this:
Give that a try and see if it does what you're looking for.
Hope this helps
If you are trying to output information from the record currently being edited, you can try this:
<?php if (@$RECORD):?>
<tr>
<td colspan='2'><?php echo 'Your user number is ' . $RECORD['usernumber'] . ' and your title is ' . $RECORD['titlename']; ?>
</td>
</tr>
<?php endif ?>
Give that a try and see if it does what you're looking for.
Hope this helps
---------------------------------------------------
Jason Sauchuk - Project Manager
interactivetools.com
Hire me! Save time by getting our experts to help with your project.
http://www.interactivetools.com/consulting/
Jason Sauchuk - Project Manager
interactivetools.com
Hire me! Save time by getting our experts to help with your project.
http://www.interactivetools.com/consulting/
Re: [Jason] Display Admin only info inside CMSB section
Sweet! Thanks Jason. Will give that a go and let you know :)
Re: [Jason] Display Admin only info inside CMSB section
Works great!!
CMSB = WIN!
CMSB = WIN!