_link corrupted

3 posts by 2 authors in: Forums > CMS Builder
Last Post: April 9, 2008   (RSS)

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>

Re: [douglasbraun] _link corrupted

By Dave - April 9, 2008

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