 |

douglasbraun
New User
Apr 9, 2008, 5:52 AM
Post #1 of 3
(134 views)
Shortcut
|
|
_link corrupted
|
Can't Post
|
|
The retreived _link looks like: services_subpage2.php?h2_span_style_color_888888_Document_Management_span_h2-1/" This portion doesn't belong: h2_span_style_color_888888_Document_Management_span_h2 It is actually a variant of a field called "title" that looks like this: <h2><span style="color: #888888;">Document Management</span></h2> I'm not certain how the _link is merging with the title field. I'm actually trying to build a link around the title when it comes up with this peculiar result. But it turns out the _link is corrupted even when being echoed by itself. The code is: <?php foreach ( $listRows as $record ): ?><a href=" <?php echo $record['_link'] ?>" title="Click here for more information" > <?php echo $record['title'] ?></a>
|
|
|  |
 |

Dave
Staff
/ Moderator

Apr 9, 2008, 7:48 AM
Post #2 of 3
(129 views)
Shortcut
|
|
Re: [douglasbraun] _link corrupted
[In reply to]
|
Can't Post
|
|
Hi Douglas, The option called 'titleField' in the list viewers is used to add content to the url. It looks like this:
$options['titleField'] = 'title'; And gets added to the url like this: services_subpage2.php?content_of_title_field-1/ You could just blank out that field and no extra content would be used in the url: $options['titleField'] = ''; Or you could use another fieldname. Some users create a "filename" field for that purpose. Would either of those work for you? Hope that helps, if you have any other questions or if I can provide more detail just let me know! Dave Edis - Senior Developer interactivetools.com
|
|
|  |
 |

douglasbraun
New User
Apr 9, 2008, 10:12 AM
Post #3 of 3
(124 views)
Shortcut
|
That'll do. Makes sense. Thanks You Dave
|
|
|  |
|