Filename Fields
2 posts by 2 authors in: Forums > CMS Builder
Last Post: March 4, 2012 (RSS)
By bashful - March 3, 2012
Hi,
I am trying to add 3 fields to the ViewerUrls section. I want to be able to show in the browsers address bar - the company name, town and county.
when I add the 3 fields into the Filename bit it will only shown 1 of the filed names and not the other 2.
Can you please let me know if there is a setting which only allows 1 field to show only. I wanted this for SEO purposes.
Thanks
I am trying to add 3 fields to the ViewerUrls section. I want to be able to show in the browsers address bar - the company name, town and county.
when I add the 3 fields into the Filename bit it will only shown 1 of the filed names and not the other 2.
Can you please let me know if there is a setting which only allows 1 field to show only. I wanted this for SEO purposes.
Thanks
Re: [bashful] Filename Fields
By Jason - March 4, 2012
Hi,
CMS Builder will use the first field in the filename fields list that has a value for the current record. If you want more than 1 value, you will need to manually construct your own like.
For example, if your fields were called company_name, town, and county, you could create a variable called $link like this:
Hope this helps
CMS Builder will use the first field in the filename fields list that has a value for the current record. If you want more than 1 value, you will need to manually construct your own like.
For example, if your fields were called company_name, town, and county, you could create a variable called $link like this:
$link = "myPage.php?".getFilenameFieldValue($record, 'company_name').getFilenameFieldValue($record, 'town').getFilenameFieldValue($record, 'county').$record['num'];
Hope this helps
---------------------------------------------------
Jason Sauchuk - Project Manager
interactivetools.com
Hire me! Save time by getting our experts to help with your project.
http://www.interactivetools.com/consulting/
Jason Sauchuk - Project Manager
interactivetools.com
Hire me! Save time by getting our experts to help with your project.
http://www.interactivetools.com/consulting/