php in cmsb text field
3 posts by 2 authors in: Forums > CMS Builder
Last Post: June 13, 2011 (RSS)
By zaba - June 13, 2011
I want to put some php in a text field that will work at runtime. Basically I have an includes file containing meta tags, and the title and description tag are pulled in from the meta tag table in cmsb. However there are certain instances where I want to pull in the news story title as the meta title instead of just some keyed text.
for instance
the meta tag include file contains stuff like this
if ($meta_page =='news') {
$title=$meta_tagsRecord['news_title'];
$description=$meta_tagsRecord['news_description'] ;
}
and I want to put in cmsb text field for meta_tags news title something like
<?php echo $newsDRecord['heading'] ?/>
but instead of printing the result it just shows <?php echo $newsDRecord['heading'] ?/> as text, which is not the desired result.
any ideas or confused as to what I am trying to do, please respond either way... thanks
for instance
the meta tag include file contains stuff like this
if ($meta_page =='news') {
$title=$meta_tagsRecord['news_title'];
$description=$meta_tagsRecord['news_description'] ;
}
and I want to put in cmsb text field for meta_tags news title something like
<?php echo $newsDRecord['heading'] ?/>
but instead of printing the result it just shows <?php echo $newsDRecord['heading'] ?/> as text, which is not the desired result.
any ideas or confused as to what I am trying to do, please respond either way... thanks
Re: [zaba] php in cmsb text field
By zaba - June 13, 2011
don't worry I found my answer in this post
http://www.interactivetools.com/iforum/Products_C2/CMS_Builder_F35/Try_to_display_code_in_the_WYSIWYG_P88076/gforum.cgi?post=83371;search_string=php%20textbox;t=search_engine#83371
thanks
http://www.interactivetools.com/iforum/Products_C2/CMS_Builder_F35/Try_to_display_code_in_the_WYSIWYG_P88076/gforum.cgi?post=83371;search_string=php%20textbox;t=search_engine#83371
thanks
Re: [zaba] php in cmsb text field
By Jason - June 13, 2011
Hi,
Glad that everything is working for you now. Please let us know if you have any other questions.
Glad that everything is working for you now. Please let us know if you have any other questions.
---------------------------------------------------
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/