Adding a link on a Section Editor

5 posts by 2 authors in: Forums > CMS Builder
Last Post: December 19, 2008   (RSS)

Dave-

My client wants to add a link on one of their Section Editors so they can quickly get to another page on their site after they've finished adding data...I've looked around a bit in the CMS code and haven't yet located where I could add this link...Can you point me in the right direction before I proceed???

Many thanks, Rick

Re: [Dave] Adding a link on a Section Editor

On the list page, maybe to the left of one of the Create buttons...

Re: [rcrofoot] Adding a link on a Section Editor

By Dave - December 18, 2008

Hi Rick,

Here's how to hard code it.

- Open /lib/menus/default/list.php
- Make a backup copy
- search for "_disableAdd", this occurs twice in the page once for the top and once for the bottom buttons.
- add the code in red just above that line:

<td align="right">

<?php if ($menu == "yourMenuName"): ?>
Your message here.
<?php endif ?>


<?php if (!@$schema['_disableAdd']): ?>
<input type="submit" name="action=add" value="<?php _e('Create') ?>" />
<?php endif ?>


The name of your menu will be in the url when you are on the editor list page like this: admin.php?menu=yourMenuName

Hope that helps!
Dave Edis - Senior Developer
interactivetools.com

Re: [Dave] Adding a link on a Section Editor

Dave-

Thanks for the help in adding the link...I originally added it to list.php, but realized afterwards that it really needed to be in the Login window under "Forgot Password", so I added it to login.php...Works fine...

Thanks again...Rick