 | |  |
 |

virgodesign
User
Jul 4, 2008, 6:25 PM
Post #1 of 3
(165 views)
Shortcut
|
|
Remove a menu link but display other links ?
|
Can't Post
|
|
Hi Dave, How are you ? The page I want to modify is http://www.31square.com/projects.php If you look at the "Projects" box on the right, you will see I have all my menu links for the multi-page record "Titles". What I want to do is remove the link "Projects" which is record ?4 "Projects". Sorry haven't been working on CMS Builder in a while so not quite right in my terminology there. Here is the CMS Builder code: <?php $options = array(); $options['tableName'] = 'projects'; $options['titleField'] = ''; $options['viewerUrl'] = 'projects.php'; $options['perPage'] = ''; // (optional) The number of records to display per page. Example: '5'; Defaults to 10. $options['orderBy'] = ''; $options['pageNum'] = ''; // (optional) Page number of results to display. Example: '1'; Defaults to ?page=# value, or 1 if undefined $options['where'] = ''; $options['useSeoUrls'] = ''; list($listRows, $listDetails) = getListRows($options); ?> <p class="p5"> <?php foreach ($listRows as $record): ?> <a href="<?php echo $record['_link'] ?>"><?php echo $record['title'] ?></a><br /> <?php endforeach ?> </p> Thanks so much Dave !! Avrom
|
|
|  |
 |

Dave
Staff
/ Moderator

Jul 4, 2008, 6:31 PM
Post #2 of 3
(163 views)
Shortcut
|
|
Re: [virgodesign] Remove a menu link but display other links ?
[In reply to]
|
Can't Post
|
|
Hi Avrom, try this (in red):
<?php foreach ($listRows as $record): ?> <?php if ($record['num'] == 4) { continue; } ?> <a href="<?php echo $record['_link'] ?>"><?php echo $record['title'] ?></a><br /> <?php endforeach ?> Let me know if that works for you! :) Dave Edis - Senior Developer interactivetools.com
|
|
|  |
 |

virgodesign
User
Jul 4, 2008, 6:45 PM
Post #3 of 3
(162 views)
Shortcut
|
|
Re: [Dave] Remove a menu link but display other links ?
[In reply to]
|
Can't Post
|
|
Hi Dave, Works perfectly ! And wow such fast support :) !! ^^ Cheers Avrom
|
|
|  |
|