Page link in the admin

11 posts by 4 authors in: Forums > CMS Builder
Last Post: July 7, 2010   (RSS)

By Vaisoco - June 29, 2010

Hi,

Is there any way to show the value of _link variable in the admin, so the user knows how to link to particular record? If so can it be shown in a nice SEO way?

Thanks

Re: [Jason] Page link in the admin

By flamerz - June 29, 2010

i get "undefined variable record".

sorry about my jump to this post [pirate]

im interested in this too

Re: [flamerz] Page link in the admin

By Jason - June 29, 2010

Hi,

Can you copy and paste the code that you're using in your separator?

Thanks
---------------------------------------------------
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] Page link in the admin

By flamerz - June 29, 2010

this:

<tr>
<td>
Print Invoice:
</td>
<td>
../invoice.php?<?php
echo $record['num'];
?>
</td>
</tr>

Re: [flamerz] Page link in the admin

By Jason - June 29, 2010

Hi,

Is this happening when you're trying to create a new record?

Try changing your code to this:

<tr>
<td>
Print Invoice:
</td>
<td>
<?php if($record):?>
../invoice.php?<?php
echo $record['num'];
?>
<?php endif ?>
</td>
</tr>


If you're creating a new record, then $record has no value yet. This change will only display information if the record has been created.

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/

Re: [Jason] Page link in the admin

By flamerz - June 29, 2010

no, this happen with database records.

the error message (with new code too) is:

Notice: Undefined variable: record in C:\Archivos de programa\NuSphere\TechPlat\apache\htdocs\cbeta\cmsAdmin\lib\common.php(432) : eval()'d code on line 6

Re: [flamerz] Page link in the admin

By Jason - June 30, 2010

Hi,

If you could email me your CMS login and FTP details to jason@interactivetools.com, I can take a closer look at it.

Only email this information, don't post it to the forum.

Thanks.
---------------------------------------------------
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] Page link in the admin

By flamerz - June 30, 2010 - edited: June 30, 2010

wops!

Jason, your code works fine.. but NOT work in the latest CMSB beta!

i post a message in the beta test to this thread.

thanks!!!

Re: [flamerz] Page link in the admin

By Chris - July 6, 2010

Hi flamerz,

You'll need to use $RECORD instead of $record in the latest beta.

I hope this helps! Please let us know if you have any questions.
All the best,
Chris