Home | Products | Consulting | Forums | Support | Order | 1-800-752-0455
  Main
Index
Search
Posts
Who's
Online
Log
In

Home: Products: CMS Builder:
_link corrupted

 

 


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:


Code
$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
Re: [Dave] _link corrupted [In reply to] Can't Post

That'll do. Makes sense.

Thanks You Dave

 
 
 


Search for (options)
Products
CMS Builder
Article Manager
Realty Manager
Listings Manager
Order Now
Services
Priority Consulting
Support
Online Documentation
Support Forums
Support Homepage
Company Info
12 reasons to choose us!
Meet the team
Monthly newsletter
Contact Us
Toll Free: 1-800-752-0455
Phone: (604) 689-3347
Sales | Support
Conditions of Use | Privacy Policy | Copyright © interactivetools.com 2008
#201 - 2730 Commercial Drive, Vancouver BC Canada V5N 5P4